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;
fork icon6
star icon34
watch icon0

+ 3 other calls in file

Other functions in @babel/types

Sorted by popularity

function icon

@babel/types.identifier is the most popular function in @babel/types (20936 examples)