Skip to content

Commit

Permalink
fix(fs): Fix DebouncedEvent type to match what notify-rs returns (#848)
Browse files Browse the repository at this point in the history
* fix(fs): Fix DebouncedEvent type to match what notify-rs returns

* Update fix-debounced-event-type.md
  • Loading branch information
fitztrev authored Dec 27, 2023
1 parent c601230 commit 85f8419
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-debounced-event-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fs-js": patch
---

Fix `DebouncedEvent` type to correctly represent the actual type.
4 changes: 2 additions & 2 deletions plugins/fs/guest-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,8 @@ type RawEventKind =
* @since 2.0.0
*/
type DebouncedEvent =
| { kind: "any"; path: string }
| { kind: "AnyContinous"; path: string };
| { kind: "Any"; path: string }[]
| { kind: "AnyContinuous"; path: string }[];

/**
* @since 2.0.0
Expand Down

0 comments on commit 85f8419

Please sign in to comment.