From 531123cad0a381eb3e1b9cd98b2901ed4b6aa35f Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 14 Feb 2024 15:29:27 +0200 Subject: [PATCH] fix(fs/wtacher): fix incorrect type for rename events (#947) --- .changes/fs-watcher-rename-event-type.md | 5 +++++ plugins/fs/guest-js/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fs-watcher-rename-event-type.md diff --git a/.changes/fs-watcher-rename-event-type.md b/.changes/fs-watcher-rename-event-type.md new file mode 100644 index 00000000..f6cbbea9 --- /dev/null +++ b/.changes/fs-watcher-rename-event-type.md @@ -0,0 +1,5 @@ +--- +"fs-js": "patch" +--- + +Fix incorrect `WatchEventKindModify` type for `rename` events. diff --git a/plugins/fs/guest-js/index.ts b/plugins/fs/guest-js/index.ts index feb1d663..7592595f 100644 --- a/plugins/fs/guest-js/index.ts +++ b/plugins/fs/guest-js/index.ts @@ -1150,7 +1150,7 @@ type WatchEventKindModify = | "extended" | "other"; } - | { kind: "name"; mode: "any" | "to" | "from" | "both" | "other" } + | { kind: "rename"; mode: "any" | "to" | "from" | "both" | "other" } | { kind: "other" }; /**