-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace Window type with reduced WindowLike type
If comlink is used with typescript, where only compilerOptions.lib "webworker" without "dom" is configured, the error "Cannot find name 'Window'" is thrown. This PR replaces the Window type with a custom type WindowLike that declares the minimal required functionality to work.
- Loading branch information
1 parent
ce7cd97
commit 9508f29
Showing
2 changed files
with
19 additions
and
4 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