forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine no-unnecessary-type-assertion rule to not flag necessary asser…
…tions (palantir#3120) * Refine no-unnecessary-type-assertion rule to not flag necessary assertions Type assertions prevent a type from being widened in a couple of situations, such as in an object literal or the inferred return type of a function. * Fix lint errors. * Use isObjectType to avoid cast
- Loading branch information
1 parent
68c167d
commit 12dface
Showing
3 changed files
with
30 additions
and
0 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