diff --git a/.changes/fix-debounced-event-type.md b/.changes/fix-debounced-event-type.md new file mode 100644 index 00000000..2563827d --- /dev/null +++ b/.changes/fix-debounced-event-type.md @@ -0,0 +1,5 @@ +--- +"fs-js": patch +--- + +Fix `DebouncedEvent` type to correctly represent the actual type. diff --git a/plugins/fs/guest-js/index.ts b/plugins/fs/guest-js/index.ts index 1e1c0e60..3fa00f28 100644 --- a/plugins/fs/guest-js/index.ts +++ b/plugins/fs/guest-js/index.ts @@ -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