From 7de603ebff4c8900d1cc24644c5c5a2dd06ab48b Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Wed, 20 Dec 2023 06:03:34 -0500 Subject: [PATCH] fix(fs-watch): Fix DebouncedEvent type to match what notify-rs returns (#840) --- plugins/fs-watch/guest-js/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/fs-watch/guest-js/index.ts b/plugins/fs-watch/guest-js/index.ts index d5370decb..25de28d18 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 });