Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
TSSatisfiesExpression
to types and generator
- Loading branch information
1 parent
816b009
commit 3d69eaa
Showing
13 changed files
with
249 additions
and
9 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
packages/babel-generator/test/fixtures/typescript/satisfies/input.js
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 @@ | ||
x satisfies T; | ||
x < y satisfies boolean; // (x < y) satisfies boolean; | ||
x === 1 satisfies number; // x === (1 satisfies number); | ||
x satisfies any satisfies T; |
6 changes: 6 additions & 0 deletions
6
packages/babel-generator/test/fixtures/typescript/satisfies/output.js
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,6 @@ | ||
(x satisfies T); | ||
(x < y satisfies boolean); // (x < y) satisfies boolean; | ||
|
||
x === (1 satisfies number); // x === (1 satisfies number); | ||
|
||
((x satisfies any) satisfies T); |
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
Oops, something went wrong.