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" }; /**