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
pull/857/head
Trevor Fitzgerald 1 year ago committed by GitHub
parent c60123093d
commit 85f8419682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,5 @@
---
"fs-js": patch
---
Fix `DebouncedEvent` type to correctly represent the actual type.

@ -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

Loading…
Cancel
Save