How to use the isTSQualifiedName function from @babel/types

Find comprehensive JavaScript @babel/types.isTSQualifiedName code examples handpicked from public code repositorys.

669
670
671
672
673
674
675
676
677
678
function isReactComponent(path) {
  if (path.isFunction()) {
    if (
      path.node.returnType &&
      t.isTSTypeReference(path.node.returnType.typeAnnotation) &&
      t.isTSQualifiedName(path.node.returnType.typeAnnotation.typeName) &&
      t.isIdentifier(path.node.returnType.typeAnnotation.typeName.left, {name: 'JSX'}) &&
      t.isIdentifier(path.node.returnType.typeAnnotation.typeName.right, {name: 'Element'})
    ) {
      return true;
fork icon689
star icon0
watch icon0

+ 461 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)