fix(fs/wtacher): fix incorrect type for rename events (#947)

This commit is contained in:
Amr Bashir
2024-02-14 15:29:27 +02:00
committed by GitHub
parent 343b1f55af
commit 531123cad0
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"fs-js": "patch"
---
Fix incorrect `WatchEventKindModify` type for `rename` events.
+1 -1
View File
@@ -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" };
/**