fix(41176): Missing Compiler API predicate function: isTemplateLiteralTypeNode (#41177)

This commit is contained in:
Oleksandr T
2020-10-23 21:15:04 +03:00
committed by GitHub
parent 94b0e0e389
commit e5ca77626e
3 changed files with 6 additions and 0 deletions

View File

@@ -237,6 +237,10 @@ namespace ts {
return node.kind === SyntaxKind.TemplateLiteralTypeSpan;
}
export function isTemplateLiteralTypeNode(node: Node): node is TemplateLiteralTypeNode {
return node.kind === SyntaxKind.TemplateLiteralType;
}
// Binding patterns
export function isObjectBindingPattern(node: Node): node is ObjectBindingPattern {