diff --git a/plugins/fs-watch/guest-js/index.ts b/plugins/fs-watch/guest-js/index.ts index d5370dec..25de28d1 100644 --- a/plugins/fs-watch/guest-js/index.ts +++ b/plugins/fs-watch/guest-js/index.ts @@ -35,8 +35,8 @@ type RawEventKind = | "other"; export type DebouncedEvent = - | { kind: "any"; path: string } - | { kind: "AnyContinous"; path: string }; + | { kind: "Any"; path: string }[] + | { kind: "AnyContinuous"; path: string }[]; async function unwatch(id: number): Promise { await invoke("plugin:fs-watch|unwatch", { id });