MCPcopy Index your code
hub / github.com/nodejs/node / isTypeAssertion

Function isTypeAssertion

test/fixtures/snapshot/typescript.js:79530–79535  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

79528 return links.resolvedType;
79529 }
79530 function isTypeAssertion(node) {
79531 node = ts.skipParentheses(node, /*excludeJSDocTypeAssertions*/ true);
79532 return node.kind === 211 /* SyntaxKind.TypeAssertionExpression */ ||
79533 node.kind === 229 /* SyntaxKind.AsExpression */ ||
79534 ts.isJSDocTypeAssertion(node);
79535 }
79536 function checkDeclarationInitializer(declaration, checkMode, contextualType) {
79537 var initializer = ts.getEffectiveInitializer(declaration);
79538 var type = getQuickTypeOfExpression(initializer) ||

Callers 2

helperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…