mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
* Cherry-pick PR #40005 into release-4.0
Component commits:
fa1ed85593 feat(40004): make isNamedTupleMember public
* Update LKG
Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com>
Co-authored-by: typescript-bot <typescript@microsoft.com>
This commit is contained in:
co-authored by
Alexander T
typescript-bot
parent
7558de69b1
commit
6620b251ef
@@ -177,6 +177,10 @@ namespace ts {
|
||||
return node.kind === SyntaxKind.TupleType;
|
||||
}
|
||||
|
||||
export function isNamedTupleMember(node: Node): node is NamedTupleMember {
|
||||
return node.kind === SyntaxKind.NamedTupleMember;
|
||||
}
|
||||
|
||||
export function isOptionalTypeNode(node: Node): node is OptionalTypeNode {
|
||||
return node.kind === SyntaxKind.OptionalType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user