Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
asserts this [is type]
parsing support (#10677)
- Loading branch information
1 parent
4cb5e0a
commit d413a30
Showing
14 changed files
with
1,087 additions
and
20 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
4 changes: 4 additions & 0 deletions
4
...bel-parser/test/fixtures/typescript/assert-predicate/asserts-this-with-predicate/input.ts
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Foo { | ||
isBar(): asserts this is Foo {} | ||
isBaz = (): asserts this is Foo => {} | ||
} |
5 changes: 5 additions & 0 deletions
5
...parser/test/fixtures/typescript/assert-predicate/asserts-this-with-predicate/options.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
"typescript", "classProperties" | ||
] | ||
} |
Oops, something went wrong.