-
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(isolate): use TypeScript unknown to force casting types
BREAKING CHANGE: If you use JavaScript, there are no breaking changes. If you use TypeScript, then from now onwards isolate() returns sink types that are never type "any", but instead returns "unknown". Often it may infer the correct type, but when it cannot infer the type, it will return "unknown" which means you are forced to type cast it to the correct type. This is better than "any", because "any" is like JavaScript and gives little type safety.
- Loading branch information
Showing
2 changed files
with
17 additions
and
13 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