Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(typescript-estree): add tests for optional variance syntax
- Loading branch information
1 parent
0a74ba8
commit 0eb5560
Showing
5 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/typescript/types/optional-variance-in-and-out.src.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 @@ | ||
type Mapper<in T, out U> = (x: T) => U; |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/typescript/types/optional-variance-in-out.src.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 @@ | ||
type Processor<in out T> = (x: T) => T; |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/typescript/types/optional-variance-in.src.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 @@ | ||
type Consumer<in T> = (x: T) => void; |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/typescript/types/optional-variance-out.src.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 @@ | ||
type Provider<out T> = () => 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