How to use the isTSNumberKeyword function from @babel/types
Find comprehensive JavaScript @babel/types.isTSNumberKeyword code examples handpicked from public code repositorys.
GitHub: gityoog/march-mp
38 39 40 41 42 43 44 45 46 47
else if (t.isTSPropertySignature(property) && property.typeAnnotation) { if (t.isIdentifier(property.key)) { const type = property.typeAnnotation.typeAnnotation; result.push(t.objectProperty(property.key, t.isTSStringKeyword(type) ? t.identifier('String') : t.isTSNumberKeyword(type) ? t.identifier('Number') : t.isTSBooleanKeyword(type) ? t.identifier('Boolean') : t.identifier('null')));
2
10
0
+ 8 other calls in file
@babel/types.identifier is the most popular function in @babel/types (20936 examples)