-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bbd9cf
commit c2fdea0
Showing
13 changed files
with
109 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"noEmit": true, | ||
"strict": false, | ||
"lib": ["ESNext", "DOM", "DOM.Iterable"], | ||
"types": [], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
// File System Observer | ||
// Explainer: https://github.com/whatwg/fs/blob/main/proposals/FileSystemObserver.md | ||
|
||
interface FileSystemObserver { | ||
observe(handle: FileSystemHandle, options?: FileSystemObserverObserveOptions): Promise<void>; | ||
unobserve(handle: FileSystemHandle): void; | ||
disconnect(): void; | ||
} | ||
|
||
declare var FileSystemObserver: { | ||
prototype: FileSystemObserver; | ||
new(callback: FileSystemObserverCallback): FileSystemObserver; | ||
}; | ||
|
||
type FileSystemObserverCallback = (records: FileSystemChangeRecord[], observer: FileSystemObserver) => void; | ||
|
||
type FileSystemChangeType = ( | ||
| "created" | ||
| "deleted" | ||
| "modified" | ||
| "moved" | ||
| "unsupported" | ||
| "errored" | ||
); | ||
|
||
interface FileSystemObserverObserveOptions { | ||
recursive?: boolean; | ||
} | ||
|
||
interface FileSystemChangeRecord { | ||
readonly root: FileSystemHandle; | ||
readonly changedHandle: FileSystemHandle; | ||
readonly relativePathComponents: ReadonlyArray<string>; | ||
readonly type: FileSystemChangeType; | ||
readonly relativePathMovedFrom: FileSystemHandle | null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters