-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [TS4.7] support type parameters for
typeof
(#5067)
- Loading branch information
1 parent
38c44a8
commit 836de79
Showing
6 changed files
with
432 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import type { AST_NODE_TYPES } from '../../ast-node-types'; | ||
import type { BaseNode } from '../../base/BaseNode'; | ||
import type { TSTypeParameterInstantiation } from '../../special/spec'; | ||
import type { EntityName } from '../../unions/EntityName'; | ||
|
||
export interface TSTypeQuery extends BaseNode { | ||
type: AST_NODE_TYPES.TSTypeQuery; | ||
exprName: EntityName; | ||
typeParameters?: TSTypeParameterInstantiation; | ||
} |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/typescript/types/typeof-with-type-parameters.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 @@ | ||
let x: typeof y.z<w>; |
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.