How to use the TypeFlags function from typescript
Find comprehensive JavaScript typescript.TypeFlags code examples handpicked from public code repositorys.
418 419 420 421 422 423 424 425
} function isAny(type, orUnknown) { if (orUnknown === void 0) { orUnknown = false; } return (type !== undefined && (tsutils_1.isTypeFlagSet(type, ts.TypeFlags.Any) || (orUnknown && tsutils_1.isTypeFlagSet(type, ts.TypeFlags.Unknown)))); } var templateObject_1, templateObject_2;
0
0
1
+ 1577 other calls in file
74 75 76 77 78 79 80 81 82 83
return { type: currentType, base }; } function isPrimitive(type) { const F = ts.TypeFlags; return (type.getFlags() & (F.String | F.StringLiteral | F.Number | F.NumberLiteral | F.Boolean | F.BooleanLiteral | F.Null | F.Undefined | F.Enum | F.EnumLiteral)) !== 0; } function isPropsUnion(type, node) {
0
0
2
+ 27 other calls in file
typescript.SyntaxKind is the most popular function in typescript (82777 examples)