-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Eliminate TypeScript casts (#250)
Eliminate all TypeScript casts from the codebase. Some casts were avoided through simple refactors, others required additional runtime validation. The runtime validation does have some performance cost, which was not measured. But I would expect the impact to be minimal given that it's just doing simple comparison operations. We can optimize if a problem is found. These casts reduced type safety. By eliminating them, TypeScript is better able to check our work.
- Loading branch information
Showing
1 changed file
with
89 additions
and
32 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