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

Function isPatternLiteralType

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

Source from the content-addressed store, hash-verified

62249 return !!(type.flags & (1 /* TypeFlags.Any */ | 4 /* TypeFlags.String */ | 8 /* TypeFlags.Number */ | 64 /* TypeFlags.BigInt */));
62250 }
62251 function isPatternLiteralType(type) {
62252 return !!(type.flags & 134217728 /* TypeFlags.TemplateLiteral */) && ts.every(type.types, isPatternLiteralPlaceholderType);
62253 }
62254 function isGenericType(type) {
62255 return !!getGenericObjectFlags(type);
62256 }

Callers 6

isValidIndexKeyTypeFunction · 0.85
getGenericObjectFlagsFunction · 0.85
getTypeFactsFunction · 0.85

Calls 1

everyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…