fix(fs): Fix DebouncedEvent type to match what notify-rs returns (#848)

* fix(fs): Fix DebouncedEvent type to match what notify-rs returns

* Update fix-debounced-event-type.md
This commit is contained in:
Trevor Fitzgerald
2023-12-27 08:39:05 -05:00
committed by GitHub
parent c60123093d
commit 85f8419682
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"fs-js": patch
---
Fix `DebouncedEvent` type to correctly represent the actual type.
+2 -2
View File
@@ -1127,8 +1127,8 @@ type RawEventKind =
* @since 2.0.0
*/
type DebouncedEvent =
| { kind: "any"; path: string }
| { kind: "AnyContinous"; path: string };
| { kind: "Any"; path: string }[]
| { kind: "AnyContinuous"; path: string }[];
/**
* @since 2.0.0