Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85f8419

Browse files
authored
fix(fs): Fix DebouncedEvent type to match what notify-rs returns (#848)
* fix(fs): Fix DebouncedEvent type to match what notify-rs returns * Update fix-debounced-event-type.md
1 parent c601230 commit 85f8419

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fs-js": patch
3+
---
4+
5+
Fix `DebouncedEvent` type to correctly represent the actual type.

plugins/fs/guest-js/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,8 +1127,8 @@ type RawEventKind =
11271127
* @since 2.0.0
11281128
*/
11291129
type DebouncedEvent =
1130-
| { kind: "any"; path: string }
1131-
| { kind: "AnyContinous"; path: string };
1130+
| { kind: "Any"; path: string }[]
1131+
| { kind: "AnyContinuous"; path: string }[];
11321132

11331133
/**
11341134
* @since 2.0.0

0 commit comments

Comments
 (0)