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

Function isErrorType

test/fixtures/snapshot/typescript.js:55718–55722  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

55716 return type && (type.flags & 1 /* TypeFlags.Any */) !== 0;
55717 }
55718 function isErrorType(type) {
55719 // The only 'any' types that have alias symbols are those manufactured by getTypeFromTypeAliasReference for
55720 // a reference to an unresolved symbol. We want those to behave like the errorType.
55721 return type === errorType || !!(type.flags & 1 /* TypeFlags.Any */ && type.aliasSymbol);
55722 }
55723 // Return the type of a binding element parent. We check SymbolLinks first to see if a type has been
55724 // assigned by contextual typing.
55725 function getTypeForBindingElementParent(node, checkMode) {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…