How to use the isTSEnumDeclaration function from @babel/types
Find comprehensive JavaScript @babel/types.isTSEnumDeclaration code examples handpicked from public code repositorys.
190 191 192 193 194 195 196 197 198 199
t.isFunctionDeclaration(declaration) || t.isTypeAlias(declaration) || t.isInterfaceDeclaration(declaration) || t.isTSTypeAliasDeclaration(declaration) || t.isTSInterfaceDeclaration(declaration) || t.isTSEnumDeclaration(declaration) || t.isTSDeclareFunction(declaration) || t.isTSDeclareMethod(declaration) ) { let name = declaration.id.name;
6
34
0
+ 3 other calls in file
@babel/types.identifier is the most popular function in @babel/types (20936 examples)