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

This commit is contained in:
Trevor Fitzgerald
2023-12-20 06:03:34 -05:00
committed by GitHub
parent 35d821cbf1
commit 7de603ebff
+2 -2
View File
@@ -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<void> {
await invoke("plugin:fs-watch|unwatch", { id });