-
-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TypeScript error about getFile not existing
This error was shown because getFile is a method of the more specific type FileSystemFileHandle, not the base FileSystemHandle: src/app.js:844:29 - error TS2339: Property 'getFile' does not exist on type 'FileSystemHandle'. 844 file = await handle.getFile(); ~~~~~~~ Found 1 error in src/app.js:844 Use instanceof for type narrowing. Back down to zero errors!
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -282,6 +282,7 @@ | |
"webglcontextlost", | ||
"webglcontextrestored", | ||
"webp", | ||
"wicg", | ||
"Winamp", | ||
"WINTRAP", | ||
"woah", | ||
|
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