Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "node_modules/@babel/types/lib/index.d"

Index

Interfaces

Type aliases

Functions

Type aliases

Binary

Block

BlockParent

Class

Comment

CommentTypeShorthand

CommentTypeShorthand: "leading" | "inner" | "trailing"

CompletionStatement

Conditional

Declaration

EnumBody

EnumMember

ExportDeclaration

Expression

ExpressionWrapper

Flow

FlowBaseAnnotation

FlowDeclaration

FlowPredicate

FlowType

For

ForXStatement

Function

FunctionParent

Immutable

JSX

LVal

Literal

Loop

Method

ModuleDeclaration

ModuleSpecifier

Node

Node: AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | MixedTypeAnnotation | ModuleDeclaration | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Statement | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | TSAnyKeyword | TSArrayType | TSAsExpression | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TryStatement | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression

NumberLiteral

NumberLiteral: NumericLiteral
deprecated

Use NumericLiteral

ObjectMember

Pattern

PatternLike

Private

Property

Pureish

RegexLiteral

RegexLiteral: RegExpLiteral
deprecated

Use RegExpLiteral

RestProperty

RestProperty: RestElement
deprecated

Use RestElement

Scopable

SpreadProperty

SpreadProperty: SpreadElement
deprecated

Use SpreadElement

Statement

TSEntityName

TSEntityName: Identifier | TSQualifiedName

TSType

TSTypeElement

Terminatorless

TraversalAncestors

TraversalAncestors: ReadonlyArray<object>

TraversalHandler

TraversalHandler<T>: function

Type parameters

  • T

Type declaration

TraversalHandlers

TraversalHandlers<T>: object

Type parameters

  • T

Type declaration

UnaryLike

UserWhitespacable

While

Functions

_import

  • Returns Import

_super

  • Returns Super

addComment

  • addComment<T>(node: T, type: CommentTypeShorthand, content: string, line?: undefined | false | true): T
  • Type parameters

    Parameters

    Returns T

addComments

  • Type parameters

    Parameters

    Returns T

anyTypeAnnotation

appendToMemberExpression

  • appendToMemberExpression<T>(member: T, append: any, computed?: undefined | false | true): T
  • Type parameters

    Parameters

    • member: T
    • append: any
    • Optional computed: undefined | false | true

    Returns T

argumentPlaceholder

arrayExpression

arrayPattern

arrayTypeAnnotation

arrowFunctionExpression

assignmentExpression

assignmentPattern

awaitExpression

bigIntLiteral

  • Parameters

    • value: string

    Returns BigIntLiteral

binaryExpression

  • binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: Expression, right: Expression): BinaryExpression
  • Parameters

    • operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<="
    • left: Expression
    • right: Expression

    Returns BinaryExpression

bindExpression

  • Parameters

    • object: any
    • callee: any

    Returns BindExpression

blockStatement

booleanLiteral

  • Parameters

    • value: boolean

    Returns BooleanLiteral

booleanLiteralTypeAnnotation

booleanTypeAnnotation

breakStatement

  • Parameters

    Returns BreakStatement

buildChildren

  • buildChildren(node: object): Array

buildMatchMemberExpression

  • buildMatchMemberExpression(match: string, allowPartial?: undefined | false | true): function
  • Parameters

    • match: string
    • Optional allowPartial: undefined | false | true

    Returns function

      • (node: Node | null | undefined): node is MemberExpression
      • Parameters

        • node: Node | null | undefined

        Returns node is MemberExpression

callExpression

catchClause

classBody

classDeclaration

classExpression

classImplements

classMethod

classPrivateMethod

  • classPrivateMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: PrivateName, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, _static?: undefined | false | true, abstract?: boolean | null, access?: "public" | "private" | "protected" | null, accessibility?: "public" | "private" | "protected" | null, async?: undefined | false | true, computed?: undefined | false | true, decorators?: Array<Decorator> | null, generator?: undefined | false | true, optional?: boolean | null, returnType?: any | null, typeParameters?: any | null): ClassPrivateMethod
  • Parameters

    • kind: "get" | "set" | "method" | "constructor" | undefined
    • key: PrivateName
    • params: Array<Identifier | Pattern | RestElement | TSParameterProperty>
    • body: BlockStatement
    • Optional _static: undefined | false | true
    • Optional abstract: boolean | null
    • Optional access: "public" | "private" | "protected" | null
    • Optional accessibility: "public" | "private" | "protected" | null
    • Optional async: undefined | false | true
    • Optional computed: undefined | false | true
    • Optional decorators: Array<Decorator> | null
    • Optional generator: undefined | false | true
    • Optional optional: boolean | null
    • Optional returnType: any | null
    • Optional typeParameters: any | null

    Returns ClassPrivateMethod

classPrivateProperty

classProperty

  • Parameters

    • key: Identifier | StringLiteral | NumericLiteral | Expression
    • Optional value: Expression | null
    • Optional typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null
    • Optional decorators: Array<Decorator> | null
    • Optional computed: undefined | false | true
    • Optional _static: undefined | false | true
    • Optional abstract: boolean | null
    • Optional accessibility: "public" | "private" | "protected" | null
    • Optional declare: boolean | null
    • Optional definite: boolean | null
    • Optional optional: boolean | null
    • Optional readonly: boolean | null

    Returns ClassProperty

clone

  • clone<T>(n: T): T
  • Type parameters

    Parameters

    • n: T

    Returns T

cloneDeep

  • cloneDeep<T>(n: T): T
  • Type parameters

    Parameters

    • n: T

    Returns T

cloneNode

  • cloneNode<T>(n: T, deep?: undefined | false | true): T
  • Type parameters

    Parameters

    • n: T
    • Optional deep: undefined | false | true

    Returns T

cloneWithoutLoc

  • cloneWithoutLoc<T>(n: T): T
  • Type parameters

    Parameters

    • n: T

    Returns T

conditionalExpression

continueStatement

createTypeAnnotationBasedOnTypeof

createUnionTypeAnnotation

  • Type parameters

    Parameters

    • types: [T]

    Returns T

  • Parameters

    Returns UnionTypeAnnotation

debuggerStatement

declareClass

declareExportAllDeclaration

declareExportDeclaration

declareFunction

declareInterface

declareModule

declareModuleExports

declareOpaqueType

declareTypeAlias

declareVariable

declaredPredicate

  • Parameters

    Returns DeclaredPredicate

decorator

  • Parameters

    Returns Decorator

directive

directiveLiteral

  • Parameters

    • value: string

    Returns DirectiveLiteral

doExpression

doWhileStatement

emptyStatement

  • Returns EmptyStatement

emptyTypeAnnotation

ensureBlock

enumBooleanBody

  • Parameters

    Returns EnumBooleanBody

enumBooleanMember

enumDeclaration

enumDefaultedMember

enumNumberBody

  • Parameters

    Returns EnumNumberBody

enumNumberMember

enumStringBody

enumStringMember

enumSymbolBody

existsTypeAnnotation

exportAllDeclaration

exportDefaultDeclaration

exportDefaultSpecifier

exportNamedDeclaration

exportNamespaceSpecifier

exportSpecifier

expressionStatement

file

  • file(program: Program, comments: any, tokens: any): File
  • Parameters

    • program: Program
    • comments: any
    • tokens: any

    Returns File

forInStatement

forOfStatement

forStatement

functionDeclaration

functionExpression

functionTypeAnnotation

functionTypeParam

  • Parameters

    • name: Identifier | null | undefined
    • typeAnnotation: FlowType
    • Optional optional: boolean | null

    Returns FunctionTypeParam

genericTypeAnnotation

getBindingIdentifiers

  • getBindingIdentifiers(node: Node, duplicates: true, outerOnly?: undefined | false | true): Record<string, Array<Identifier>>
  • getBindingIdentifiers(node: Node, duplicates?: undefined | false, outerOnly?: undefined | false | true): Record<string, Identifier>
  • getBindingIdentifiers(node: Node, duplicates: boolean, outerOnly?: undefined | false | true): Record<string, Identifier | Array<Identifier>>
  • Parameters

    • node: Node
    • duplicates: true
    • Optional outerOnly: undefined | false | true

    Returns Record<string, Array<Identifier>>

  • Parameters

    • node: Node
    • Optional duplicates: undefined | false
    • Optional outerOnly: undefined | false | true

    Returns Record<string, Identifier>

  • Parameters

    • node: Node
    • duplicates: boolean
    • Optional outerOnly: undefined | false | true

    Returns Record<string, Identifier | Array<Identifier>>

getOuterBindingIdentifiers

  • Parameters

    • node: Node
    • duplicates: true

    Returns Record<string, Array<Identifier>>

  • Parameters

    • node: Node
    • Optional duplicates: undefined | false

    Returns Record<string, Identifier>

  • Parameters

    • node: Node
    • duplicates: boolean

    Returns Record<string, Identifier | Array<Identifier>>

identifier

ifStatement

importDeclaration

importDefaultSpecifier

importNamespaceSpecifier

importSpecifier

  • Parameters

    Returns ImportSpecifier

inferredPredicate

inheritInnerComments

  • inheritInnerComments(node: Node, parent: Node): void
  • Parameters

    Returns void

inheritLeadingComments

  • inheritLeadingComments(node: Node, parent: Node): void
  • Parameters

    Returns void

inheritTrailingComments

  • inheritTrailingComments(node: Node, parent: Node): void
  • Parameters

    Returns void

inherits

  • inherits<T>(child: T, parent: Node | null | undefined): T
  • Type parameters

    • T: Node | null | undefined

    Parameters

    • child: T
    • parent: Node | null | undefined

    Returns T

inheritsComments

  • inheritsComments<T>(node: T, parent: Node): void
  • Type parameters

    Parameters

    • node: T
    • parent: Node

    Returns void

interfaceDeclaration

interfaceExtends

interfaceTypeAnnotation

interpreterDirective

  • Parameters

    • value: string

    Returns InterpreterDirective

intersectionTypeAnnotation

is

  • is<T>(type: T, n: Node | null | undefined, required?: undefined): n is Extract<Node, object>
  • is<T, P>(type: T, n: Node | null | undefined, required: Partial<P>): n is P
  • is<P>(type: string, n: Node | null | undefined, required: Partial<P>): n is P
  • is(type: string, n: Node | null | undefined, required?: Partial<Node>): n is Node
  • Type parameters

    • T: "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassDeclaration" | "ClassExpression" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "OptionalMemberExpression" | "PipelinePrimaryTopicReference" | "OptionalCallExpression" | "Import" | "TSAsExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "RestElement" | "ObjectPattern" | "TSParameterProperty" | "LabeledStatement" | "Noop" | "ObjectProperty" | "PipelineBareFunction" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "SpreadElement" | "TryStatement" | "WithStatement" | "TSImportEqualsDeclaration" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "SwitchCase" | "TSAnyKeyword" | "TSArrayType" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TemplateElement" | "V8IntrinsicIdentifier" | "VariableDeclarator"

    Parameters

    • type: T
    • n: Node | null | undefined
    • Optional required: undefined

    Returns n is Extract<Node, object>

  • Type parameters

    • T: "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassDeclaration" | "ClassExpression" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "OptionalMemberExpression" | "PipelinePrimaryTopicReference" | "OptionalCallExpression" | "Import" | "TSAsExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "RestElement" | "ObjectPattern" | "TSParameterProperty" | "LabeledStatement" | "Noop" | "ObjectProperty" | "PipelineBareFunction" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "SpreadElement" | "TryStatement" | "WithStatement" | "TSImportEqualsDeclaration" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "SwitchCase" | "TSAnyKeyword" | "TSArrayType" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TemplateElement" | "V8IntrinsicIdentifier" | "VariableDeclarator"

    • P: Extract<Node, object>

    Parameters

    • type: T
    • n: Node | null | undefined
    • required: Partial<P>

    Returns n is P

  • Type parameters

    Parameters

    • type: string
    • n: Node | null | undefined
    • required: Partial<P>

    Returns n is P

  • Parameters

    Returns n is Node

isAnyTypeAnnotation

  • isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is AnyTypeAnnotation

isArgumentPlaceholder

  • isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ArgumentPlaceholder

isArrayExpression

  • isArrayExpression(node: object | null | undefined, opts?: object | null): node is ArrayExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ArrayExpression

isArrayPattern

  • isArrayPattern(node: object | null | undefined, opts?: object | null): node is ArrayPattern
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ArrayPattern

isArrayTypeAnnotation

  • isArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ArrayTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ArrayTypeAnnotation

isArrowFunctionExpression

  • isArrowFunctionExpression(node: object | null | undefined, opts?: object | null): node is ArrowFunctionExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ArrowFunctionExpression

isAssignmentExpression

  • isAssignmentExpression(node: object | null | undefined, opts?: object | null): node is AssignmentExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is AssignmentExpression

isAssignmentPattern

  • isAssignmentPattern(node: object | null | undefined, opts?: object | null): node is AssignmentPattern
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is AssignmentPattern

isAwaitExpression

  • isAwaitExpression(node: object | null | undefined, opts?: object | null): node is AwaitExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is AwaitExpression

isBigIntLiteral

  • isBigIntLiteral(node: object | null | undefined, opts?: object | null): node is BigIntLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BigIntLiteral

isBinary

  • isBinary(node: object | null | undefined, opts?: object | null): node is Binary
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Binary

isBinaryExpression

  • isBinaryExpression(node: object | null | undefined, opts?: object | null): node is BinaryExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BinaryExpression

isBindExpression

  • isBindExpression(node: object | null | undefined, opts?: object | null): node is BindExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BindExpression

isBinding

  • isBinding(node: Node, parent: Node, grandparent?: Node): boolean
  • Parameters

    Returns boolean

isBlock

  • isBlock(node: object | null | undefined, opts?: object | null): node is Block
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Block

isBlockParent

  • isBlockParent(node: object | null | undefined, opts?: object | null): node is BlockParent
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BlockParent

isBlockScoped

  • isBlockScoped(node: Node): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration
  • Parameters

    Returns node is FunctionDeclaration | ClassDeclaration | VariableDeclaration

isBlockStatement

  • isBlockStatement(node: object | null | undefined, opts?: object | null): node is BlockStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BlockStatement

isBooleanLiteral

  • isBooleanLiteral(node: object | null | undefined, opts?: object | null): node is BooleanLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BooleanLiteral

isBooleanLiteralTypeAnnotation

  • isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanLiteralTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BooleanLiteralTypeAnnotation

isBooleanTypeAnnotation

  • isBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BooleanTypeAnnotation

isBreakStatement

  • isBreakStatement(node: object | null | undefined, opts?: object | null): node is BreakStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is BreakStatement

isCallExpression

  • isCallExpression(node: object | null | undefined, opts?: object | null): node is CallExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is CallExpression

isCatchClause

  • isCatchClause(node: object | null | undefined, opts?: object | null): node is CatchClause
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is CatchClause

isClass

  • isClass(node: object | null | undefined, opts?: object | null): node is Class
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Class

isClassBody

  • isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassBody

isClassDeclaration

  • isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassDeclaration

isClassExpression

  • isClassExpression(node: object | null | undefined, opts?: object | null): node is ClassExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassExpression

isClassImplements

  • isClassImplements(node: object | null | undefined, opts?: object | null): node is ClassImplements
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassImplements

isClassMethod

  • isClassMethod(node: object | null | undefined, opts?: object | null): node is ClassMethod
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassMethod

isClassPrivateMethod

  • isClassPrivateMethod(node: object | null | undefined, opts?: object | null): node is ClassPrivateMethod
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassPrivateMethod

isClassPrivateProperty

  • isClassPrivateProperty(node: object | null | undefined, opts?: object | null): node is ClassPrivateProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassPrivateProperty

isClassProperty

  • isClassProperty(node: object | null | undefined, opts?: object | null): node is ClassProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ClassProperty

isCompletionStatement

  • isCompletionStatement(node: object | null | undefined, opts?: object | null): node is CompletionStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is CompletionStatement

isConditional

  • isConditional(node: object | null | undefined, opts?: object | null): node is Conditional
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Conditional

isConditionalExpression

  • isConditionalExpression(node: object | null | undefined, opts?: object | null): node is ConditionalExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ConditionalExpression

isContinueStatement

  • isContinueStatement(node: object | null | undefined, opts?: object | null): node is ContinueStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ContinueStatement

isDebuggerStatement

  • isDebuggerStatement(node: object | null | undefined, opts?: object | null): node is DebuggerStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DebuggerStatement

isDeclaration

  • isDeclaration(node: object | null | undefined, opts?: object | null): node is Declaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Declaration

isDeclareClass

  • isDeclareClass(node: object | null | undefined, opts?: object | null): node is DeclareClass
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareClass

isDeclareExportAllDeclaration

  • isDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportAllDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareExportAllDeclaration

isDeclareExportDeclaration

  • isDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareExportDeclaration

isDeclareFunction

  • isDeclareFunction(node: object | null | undefined, opts?: object | null): node is DeclareFunction
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareFunction

isDeclareInterface

  • isDeclareInterface(node: object | null | undefined, opts?: object | null): node is DeclareInterface
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareInterface

isDeclareModule

  • isDeclareModule(node: object | null | undefined, opts?: object | null): node is DeclareModule
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareModule

isDeclareModuleExports

  • isDeclareModuleExports(node: object | null | undefined, opts?: object | null): node is DeclareModuleExports
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareModuleExports

isDeclareOpaqueType

  • isDeclareOpaqueType(node: object | null | undefined, opts?: object | null): node is DeclareOpaqueType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareOpaqueType

isDeclareTypeAlias

  • isDeclareTypeAlias(node: object | null | undefined, opts?: object | null): node is DeclareTypeAlias
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareTypeAlias

isDeclareVariable

  • isDeclareVariable(node: object | null | undefined, opts?: object | null): node is DeclareVariable
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclareVariable

isDeclaredPredicate

  • isDeclaredPredicate(node: object | null | undefined, opts?: object | null): node is DeclaredPredicate
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DeclaredPredicate

isDecorator

  • isDecorator(node: object | null | undefined, opts?: object | null): node is Decorator
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Decorator

isDirective

  • isDirective(node: object | null | undefined, opts?: object | null): node is Directive
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Directive

isDirectiveLiteral

  • isDirectiveLiteral(node: object | null | undefined, opts?: object | null): node is DirectiveLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DirectiveLiteral

isDoExpression

  • isDoExpression(node: object | null | undefined, opts?: object | null): node is DoExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DoExpression

isDoWhileStatement

  • isDoWhileStatement(node: object | null | undefined, opts?: object | null): node is DoWhileStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is DoWhileStatement

isEmptyStatement

  • isEmptyStatement(node: object | null | undefined, opts?: object | null): node is EmptyStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EmptyStatement

isEmptyTypeAnnotation

  • isEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is EmptyTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EmptyTypeAnnotation

isEnumBody

  • isEnumBody(node: object | null | undefined, opts?: object | null): node is EnumBody
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumBody

isEnumBooleanBody

  • isEnumBooleanBody(node: object | null | undefined, opts?: object | null): node is EnumBooleanBody
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumBooleanBody

isEnumBooleanMember

  • isEnumBooleanMember(node: object | null | undefined, opts?: object | null): node is EnumBooleanMember
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumBooleanMember

isEnumDeclaration

  • isEnumDeclaration(node: object | null | undefined, opts?: object | null): node is EnumDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumDeclaration

isEnumDefaultedMember

  • isEnumDefaultedMember(node: object | null | undefined, opts?: object | null): node is EnumDefaultedMember
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumDefaultedMember

isEnumMember

  • isEnumMember(node: object | null | undefined, opts?: object | null): node is EnumMember
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumMember

isEnumNumberBody

  • isEnumNumberBody(node: object | null | undefined, opts?: object | null): node is EnumNumberBody
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumNumberBody

isEnumNumberMember

  • isEnumNumberMember(node: object | null | undefined, opts?: object | null): node is EnumNumberMember
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumNumberMember

isEnumStringBody

  • isEnumStringBody(node: object | null | undefined, opts?: object | null): node is EnumStringBody
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumStringBody

isEnumStringMember

  • isEnumStringMember(node: object | null | undefined, opts?: object | null): node is EnumStringMember
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumStringMember

isEnumSymbolBody

  • isEnumSymbolBody(node: object | null | undefined, opts?: object | null): node is EnumSymbolBody
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is EnumSymbolBody

isExistsTypeAnnotation

  • isExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ExistsTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExistsTypeAnnotation

isExportAllDeclaration

  • isExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is ExportAllDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExportAllDeclaration

isExportDeclaration

  • isExportDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExportDeclaration

isExportDefaultDeclaration

  • isExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDefaultDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExportDefaultDeclaration

isExportDefaultSpecifier

  • isExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ExportDefaultSpecifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExportDefaultSpecifier

isExportNamedDeclaration

  • isExportNamedDeclaration(node: object | null | undefined, opts?: object | null): node is ExportNamedDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExportNamedDeclaration

isExportNamespaceSpecifier

  • isExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ExportNamespaceSpecifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExportNamespaceSpecifier

isExportSpecifier

  • isExportSpecifier(node: object | null | undefined, opts?: object | null): node is ExportSpecifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExportSpecifier

isExpression

  • isExpression(node: object | null | undefined, opts?: object | null): node is Expression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Expression

isExpressionStatement

  • isExpressionStatement(node: object | null | undefined, opts?: object | null): node is ExpressionStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExpressionStatement

isExpressionWrapper

  • isExpressionWrapper(node: object | null | undefined, opts?: object | null): node is ExpressionWrapper
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ExpressionWrapper

isFile

  • isFile(node: object | null | undefined, opts?: object | null): node is File
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is File

isFlow

  • isFlow(node: object | null | undefined, opts?: object | null): node is Flow
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Flow

isFlowBaseAnnotation

  • isFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): node is FlowBaseAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FlowBaseAnnotation

isFlowDeclaration

  • isFlowDeclaration(node: object | null | undefined, opts?: object | null): node is FlowDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FlowDeclaration

isFlowPredicate

  • isFlowPredicate(node: object | null | undefined, opts?: object | null): node is FlowPredicate
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FlowPredicate

isFlowType

  • isFlowType(node: object | null | undefined, opts?: object | null): node is FlowType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FlowType

isFor

  • isFor(node: object | null | undefined, opts?: object | null): node is For
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is For

isForInStatement

  • isForInStatement(node: object | null | undefined, opts?: object | null): node is ForInStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ForInStatement

isForOfStatement

  • isForOfStatement(node: object | null | undefined, opts?: object | null): node is ForOfStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ForOfStatement

isForStatement

  • isForStatement(node: object | null | undefined, opts?: object | null): node is ForStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ForStatement

isForXStatement

  • isForXStatement(node: object | null | undefined, opts?: object | null): node is ForXStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ForXStatement

isFunction

  • isFunction(node: object | null | undefined, opts?: object | null): node is Function
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Function

isFunctionDeclaration

  • isFunctionDeclaration(node: object | null | undefined, opts?: object | null): node is FunctionDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FunctionDeclaration

isFunctionExpression

  • isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FunctionExpression

isFunctionParent

  • isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FunctionParent

isFunctionTypeAnnotation

  • isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FunctionTypeAnnotation

isFunctionTypeParam

  • isFunctionTypeParam(node: object | null | undefined, opts?: object | null): node is FunctionTypeParam
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is FunctionTypeParam

isGenericTypeAnnotation

  • isGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): node is GenericTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is GenericTypeAnnotation

isIdentifier

  • isIdentifier(node: object | null | undefined, opts?: object | null): node is Identifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Identifier

isIfStatement

  • isIfStatement(node: object | null | undefined, opts?: object | null): node is IfStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is IfStatement

isImmutable

  • isImmutable(node: object | null | undefined, opts?: object | null): node is Immutable
  • isImmutable(node: Node): node is Immutable
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Immutable

  • Parameters

    Returns node is Immutable

isImport

  • isImport(node: object | null | undefined, opts?: object | null): node is Import
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Import

isImportDeclaration

  • isImportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ImportDeclaration

isImportDefaultSpecifier

  • isImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ImportDefaultSpecifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ImportDefaultSpecifier

isImportNamespaceSpecifier

  • isImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ImportNamespaceSpecifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ImportNamespaceSpecifier

isImportSpecifier

  • isImportSpecifier(node: object | null | undefined, opts?: object | null): node is ImportSpecifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ImportSpecifier

isInferredPredicate

  • isInferredPredicate(node: object | null | undefined, opts?: object | null): node is InferredPredicate
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is InferredPredicate

isInterfaceDeclaration

  • isInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is InterfaceDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is InterfaceDeclaration

isInterfaceExtends

  • isInterfaceExtends(node: object | null | undefined, opts?: object | null): node is InterfaceExtends
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is InterfaceExtends

isInterfaceTypeAnnotation

  • isInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): node is InterfaceTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is InterfaceTypeAnnotation

isInterpreterDirective

  • isInterpreterDirective(node: object | null | undefined, opts?: object | null): node is InterpreterDirective
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is InterpreterDirective

isIntersectionTypeAnnotation

  • isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is IntersectionTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is IntersectionTypeAnnotation

isJSX

  • isJSX(node: object | null | undefined, opts?: object | null): node is JSX
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSX

isJSXAttribute

  • isJSXAttribute(node: object | null | undefined, opts?: object | null): node is JSXAttribute
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXAttribute

isJSXClosingElement

  • isJSXClosingElement(node: object | null | undefined, opts?: object | null): node is JSXClosingElement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXClosingElement

isJSXClosingFragment

  • isJSXClosingFragment(node: object | null | undefined, opts?: object | null): node is JSXClosingFragment
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXClosingFragment

isJSXElement

  • isJSXElement(node: object | null | undefined, opts?: object | null): node is JSXElement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXElement

isJSXEmptyExpression

  • isJSXEmptyExpression(node: object | null | undefined, opts?: object | null): node is JSXEmptyExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXEmptyExpression

isJSXExpressionContainer

  • isJSXExpressionContainer(node: object | null | undefined, opts?: object | null): node is JSXExpressionContainer
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXExpressionContainer

isJSXFragment

  • isJSXFragment(node: object | null | undefined, opts?: object | null): node is JSXFragment
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXFragment

isJSXIdentifier

  • isJSXIdentifier(node: object | null | undefined, opts?: object | null): node is JSXIdentifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXIdentifier

isJSXMemberExpression

  • isJSXMemberExpression(node: object | null | undefined, opts?: object | null): node is JSXMemberExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXMemberExpression

isJSXNamespacedName

  • isJSXNamespacedName(node: object | null | undefined, opts?: object | null): node is JSXNamespacedName
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXNamespacedName

isJSXOpeningElement

  • isJSXOpeningElement(node: object | null | undefined, opts?: object | null): node is JSXOpeningElement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXOpeningElement

isJSXOpeningFragment

  • isJSXOpeningFragment(node: object | null | undefined, opts?: object | null): node is JSXOpeningFragment
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXOpeningFragment

isJSXSpreadAttribute

  • isJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): node is JSXSpreadAttribute
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXSpreadAttribute

isJSXSpreadChild

  • isJSXSpreadChild(node: object | null | undefined, opts?: object | null): node is JSXSpreadChild
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXSpreadChild

isJSXText

  • isJSXText(node: object | null | undefined, opts?: object | null): node is JSXText
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is JSXText

isLVal

  • isLVal(node: object | null | undefined, opts?: object | null): node is LVal
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is LVal

isLabeledStatement

  • isLabeledStatement(node: object | null | undefined, opts?: object | null): node is LabeledStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is LabeledStatement

isLet

  • isLet(node: Node): node is VariableDeclaration
  • Parameters

    Returns node is VariableDeclaration

isLiteral

  • isLiteral(node: object | null | undefined, opts?: object | null): node is Literal
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Literal

isLogicalExpression

  • isLogicalExpression(node: object | null | undefined, opts?: object | null): node is LogicalExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is LogicalExpression

isLoop

  • isLoop(node: object | null | undefined, opts?: object | null): node is Loop
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Loop

isMemberExpression

  • isMemberExpression(node: object | null | undefined, opts?: object | null): node is MemberExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is MemberExpression

isMetaProperty

  • isMetaProperty(node: object | null | undefined, opts?: object | null): node is MetaProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is MetaProperty

isMethod

  • isMethod(node: object | null | undefined, opts?: object | null): node is Method
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Method

isMixedTypeAnnotation

  • isMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): node is MixedTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is MixedTypeAnnotation

isModuleDeclaration

  • isModuleDeclaration(node: object | null | undefined, opts?: object | null): node is ModuleDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ModuleDeclaration

isModuleSpecifier

  • isModuleSpecifier(node: object | null | undefined, opts?: object | null): node is ModuleSpecifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ModuleSpecifier

isNewExpression

  • isNewExpression(node: object | null | undefined, opts?: object | null): node is NewExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is NewExpression

isNode

  • isNode(node: object | null | undefined): node is Node
  • Parameters

    • node: object | null | undefined

    Returns node is Node

isNodesEquivalent

  • isNodesEquivalent<T>(a: T, b: any): b is T
  • isNodesEquivalent(a: any, b: any): boolean
  • Type parameters

    Parameters

    • a: T
    • b: any

    Returns b is T

  • Parameters

    • a: any
    • b: any

    Returns boolean

isNoop

  • isNoop(node: object | null | undefined, opts?: object | null): node is Noop
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Noop

isNullLiteral

  • isNullLiteral(node: object | null | undefined, opts?: object | null): node is NullLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is NullLiteral

isNullLiteralTypeAnnotation

  • isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullLiteralTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is NullLiteralTypeAnnotation

isNullableTypeAnnotation

  • isNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullableTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is NullableTypeAnnotation

isNumberLiteral

  • isNumberLiteral(node: object | null | undefined, opts?: object | null): boolean
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns boolean

isNumberLiteralTypeAnnotation

  • isNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberLiteralTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is NumberLiteralTypeAnnotation

isNumberTypeAnnotation

  • isNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is NumberTypeAnnotation

isNumericLiteral

  • isNumericLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is NumericLiteral

isObjectExpression

  • isObjectExpression(node: object | null | undefined, opts?: object | null): node is ObjectExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectExpression

isObjectMember

  • isObjectMember(node: object | null | undefined, opts?: object | null): node is ObjectMember
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectMember

isObjectMethod

  • isObjectMethod(node: object | null | undefined, opts?: object | null): node is ObjectMethod
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectMethod

isObjectPattern

  • isObjectPattern(node: object | null | undefined, opts?: object | null): node is ObjectPattern
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectPattern

isObjectProperty

  • isObjectProperty(node: object | null | undefined, opts?: object | null): node is ObjectProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectProperty

isObjectTypeAnnotation

  • isObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ObjectTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectTypeAnnotation

isObjectTypeCallProperty

  • isObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeCallProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectTypeCallProperty

isObjectTypeIndexer

  • isObjectTypeIndexer(node: object | null | undefined, opts?: object | null): node is ObjectTypeIndexer
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectTypeIndexer

isObjectTypeInternalSlot

  • isObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): node is ObjectTypeInternalSlot
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectTypeInternalSlot

isObjectTypeProperty

  • isObjectTypeProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectTypeProperty

isObjectTypeSpreadProperty

  • isObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeSpreadProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ObjectTypeSpreadProperty

isOpaqueType

  • isOpaqueType(node: object | null | undefined, opts?: object | null): node is OpaqueType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is OpaqueType

isOptionalCallExpression

  • isOptionalCallExpression(node: object | null | undefined, opts?: object | null): node is OptionalCallExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is OptionalCallExpression

isOptionalMemberExpression

  • isOptionalMemberExpression(node: object | null | undefined, opts?: object | null): node is OptionalMemberExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is OptionalMemberExpression

isParenthesizedExpression

  • isParenthesizedExpression(node: object | null | undefined, opts?: object | null): node is ParenthesizedExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ParenthesizedExpression

isPattern

  • isPattern(node: object | null | undefined, opts?: object | null): node is Pattern
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Pattern

isPatternLike

  • isPatternLike(node: object | null | undefined, opts?: object | null): node is PatternLike
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is PatternLike

isPipelineBareFunction

  • isPipelineBareFunction(node: object | null | undefined, opts?: object | null): node is PipelineBareFunction
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is PipelineBareFunction

isPipelinePrimaryTopicReference

  • isPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): node is PipelinePrimaryTopicReference
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is PipelinePrimaryTopicReference

isPipelineTopicExpression

  • isPipelineTopicExpression(node: object | null | undefined, opts?: object | null): node is PipelineTopicExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is PipelineTopicExpression

isPlaceholder

  • isPlaceholder(node: object | null | undefined, opts?: object | null): node is Placeholder
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Placeholder

isPlaceholderType

  • isPlaceholderType(placeholderType: "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassDeclaration" | "ClassExpression" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "OptionalMemberExpression" | "PipelinePrimaryTopicReference" | "OptionalCallExpression" | "Import" | "TSAsExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "RestElement" | "ObjectPattern" | "TSParameterProperty" | "LabeledStatement" | "Noop" | "ObjectProperty" | "PipelineBareFunction" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "SpreadElement" | "TryStatement" | "WithStatement" | "TSImportEqualsDeclaration" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "SwitchCase" | "TSAnyKeyword" | "TSArrayType" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TemplateElement" | "V8IntrinsicIdentifier" | "VariableDeclarator", targetType: "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassDeclaration" | "ClassExpression" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "OptionalMemberExpression" | "PipelinePrimaryTopicReference" | "OptionalCallExpression" | "Import" | "TSAsExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "RestElement" | "ObjectPattern" | "TSParameterProperty" | "LabeledStatement" | "Noop" | "ObjectProperty" | "PipelineBareFunction" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "SpreadElement" | "TryStatement" | "WithStatement" | "TSImportEqualsDeclaration" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "SwitchCase" | "TSAnyKeyword" | "TSArrayType" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TemplateElement" | "V8IntrinsicIdentifier" | "VariableDeclarator"): boolean
  • Parameters

    • placeholderType: "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassDeclaration" | "ClassExpression" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "OptionalMemberExpression" | "PipelinePrimaryTopicReference" | "OptionalCallExpression" | "Import" | "TSAsExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "RestElement" | "ObjectPattern" | "TSParameterProperty" | "LabeledStatement" | "Noop" | "ObjectProperty" | "PipelineBareFunction" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "SpreadElement" | "TryStatement" | "WithStatement" | "TSImportEqualsDeclaration" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "SwitchCase" | "TSAnyKeyword" | "TSArrayType" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TemplateElement" | "V8IntrinsicIdentifier" | "VariableDeclarator"
    • targetType: "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassDeclaration" | "ClassExpression" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "OptionalMemberExpression" | "PipelinePrimaryTopicReference" | "OptionalCallExpression" | "Import" | "TSAsExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "RestElement" | "ObjectPattern" | "TSParameterProperty" | "LabeledStatement" | "Noop" | "ObjectProperty" | "PipelineBareFunction" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "SpreadElement" | "TryStatement" | "WithStatement" | "TSImportEqualsDeclaration" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "SwitchCase" | "TSAnyKeyword" | "TSArrayType" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TemplateElement" | "V8IntrinsicIdentifier" | "VariableDeclarator"

    Returns boolean

isPrivate

  • isPrivate(node: object | null | undefined, opts?: object | null): node is Private
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Private

isPrivateName

  • isPrivateName(node: object | null | undefined, opts?: object | null): node is PrivateName
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is PrivateName

isProgram

  • isProgram(node: object | null | undefined, opts?: object | null): node is Program
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Program

isProperty

  • isProperty(node: object | null | undefined, opts?: object | null): node is Property
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Property

isPureish

  • isPureish(node: object | null | undefined, opts?: object | null): node is Pureish
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Pureish

isQualifiedTypeIdentifier

  • isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): node is QualifiedTypeIdentifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is QualifiedTypeIdentifier

isReferenced

  • isReferenced(node: Node, parent: Node, grandparent?: Node): boolean
  • Parameters

    Returns boolean

isRegExpLiteral

  • isRegExpLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is RegExpLiteral

isRegexLiteral

  • isRegexLiteral(node: object | null | undefined, opts?: object | null): boolean
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns boolean

isRestElement

  • isRestElement(node: object | null | undefined, opts?: object | null): node is RestElement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is RestElement

isRestProperty

  • isRestProperty(node: object | null | undefined, opts?: object | null): boolean
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns boolean

isReturnStatement

  • isReturnStatement(node: object | null | undefined, opts?: object | null): node is ReturnStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ReturnStatement

isScopable

  • isScopable(node: object | null | undefined, opts?: object | null): node is Scopable
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Scopable

isScope

  • isScope(node: Node, parent: Node): node is Scopable
  • Parameters

    Returns node is Scopable

isSequenceExpression

  • isSequenceExpression(node: object | null | undefined, opts?: object | null): node is SequenceExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is SequenceExpression

isSpecifierDefault

  • Parameters

    Returns boolean

isSpreadElement

  • isSpreadElement(node: object | null | undefined, opts?: object | null): node is SpreadElement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is SpreadElement

isSpreadProperty

  • isSpreadProperty(node: object | null | undefined, opts?: object | null): boolean
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns boolean

isStatement

  • isStatement(node: object | null | undefined, opts?: object | null): node is Statement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Statement

isStringLiteral

  • isStringLiteral(node: object | null | undefined, opts?: object | null): node is StringLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is StringLiteral

isStringLiteralTypeAnnotation

  • isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringLiteralTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is StringLiteralTypeAnnotation

isStringTypeAnnotation

  • isStringTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is StringTypeAnnotation

isSuper

  • isSuper(node: object | null | undefined, opts?: object | null): node is Super
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Super

isSwitchCase

  • isSwitchCase(node: object | null | undefined, opts?: object | null): node is SwitchCase
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is SwitchCase

isSwitchStatement

  • isSwitchStatement(node: object | null | undefined, opts?: object | null): node is SwitchStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is SwitchStatement

isTSAnyKeyword

  • isTSAnyKeyword(node: object | null | undefined, opts?: object | null): node is TSAnyKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSAnyKeyword

isTSArrayType

  • isTSArrayType(node: object | null | undefined, opts?: object | null): node is TSArrayType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSArrayType

isTSAsExpression

  • isTSAsExpression(node: object | null | undefined, opts?: object | null): node is TSAsExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSAsExpression

isTSBigIntKeyword

  • isTSBigIntKeyword(node: object | null | undefined, opts?: object | null): node is TSBigIntKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSBigIntKeyword

isTSBooleanKeyword

  • isTSBooleanKeyword(node: object | null | undefined, opts?: object | null): node is TSBooleanKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSBooleanKeyword

isTSCallSignatureDeclaration

  • isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSCallSignatureDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSCallSignatureDeclaration

isTSConditionalType

  • isTSConditionalType(node: object | null | undefined, opts?: object | null): node is TSConditionalType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSConditionalType

isTSConstructSignatureDeclaration

  • isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSConstructSignatureDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSConstructSignatureDeclaration

isTSConstructorType

  • isTSConstructorType(node: object | null | undefined, opts?: object | null): node is TSConstructorType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSConstructorType

isTSDeclareFunction

  • isTSDeclareFunction(node: object | null | undefined, opts?: object | null): node is TSDeclareFunction
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSDeclareFunction

isTSDeclareMethod

  • isTSDeclareMethod(node: object | null | undefined, opts?: object | null): node is TSDeclareMethod
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSDeclareMethod

isTSEntityName

  • isTSEntityName(node: object | null | undefined, opts?: object | null): node is TSEntityName
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSEntityName

isTSEnumDeclaration

  • isTSEnumDeclaration(node: object | null | undefined, opts?: object | null): node is TSEnumDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSEnumDeclaration

isTSEnumMember

  • isTSEnumMember(node: object | null | undefined, opts?: object | null): node is TSEnumMember
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSEnumMember

isTSExportAssignment

  • isTSExportAssignment(node: object | null | undefined, opts?: object | null): node is TSExportAssignment
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSExportAssignment

isTSExpressionWithTypeArguments

  • isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): node is TSExpressionWithTypeArguments
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSExpressionWithTypeArguments

isTSExternalModuleReference

  • isTSExternalModuleReference(node: object | null | undefined, opts?: object | null): node is TSExternalModuleReference
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSExternalModuleReference

isTSFunctionType

  • isTSFunctionType(node: object | null | undefined, opts?: object | null): node is TSFunctionType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSFunctionType

isTSImportEqualsDeclaration

  • isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): node is TSImportEqualsDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSImportEqualsDeclaration

isTSImportType

  • isTSImportType(node: object | null | undefined, opts?: object | null): node is TSImportType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSImportType

isTSIndexSignature

  • isTSIndexSignature(node: object | null | undefined, opts?: object | null): node is TSIndexSignature
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSIndexSignature

isTSIndexedAccessType

  • isTSIndexedAccessType(node: object | null | undefined, opts?: object | null): node is TSIndexedAccessType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSIndexedAccessType

isTSInferType

  • isTSInferType(node: object | null | undefined, opts?: object | null): node is TSInferType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSInferType

isTSInterfaceBody

  • isTSInterfaceBody(node: object | null | undefined, opts?: object | null): node is TSInterfaceBody
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSInterfaceBody

isTSInterfaceDeclaration

  • isTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is TSInterfaceDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSInterfaceDeclaration

isTSIntersectionType

  • isTSIntersectionType(node: object | null | undefined, opts?: object | null): node is TSIntersectionType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSIntersectionType

isTSLiteralType

  • isTSLiteralType(node: object | null | undefined, opts?: object | null): node is TSLiteralType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSLiteralType

isTSMappedType

  • isTSMappedType(node: object | null | undefined, opts?: object | null): node is TSMappedType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSMappedType

isTSMethodSignature

  • isTSMethodSignature(node: object | null | undefined, opts?: object | null): node is TSMethodSignature
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSMethodSignature

isTSModuleBlock

  • isTSModuleBlock(node: object | null | undefined, opts?: object | null): node is TSModuleBlock
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSModuleBlock

isTSModuleDeclaration

  • isTSModuleDeclaration(node: object | null | undefined, opts?: object | null): node is TSModuleDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSModuleDeclaration

isTSNamespaceExportDeclaration

  • isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): node is TSNamespaceExportDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSNamespaceExportDeclaration

isTSNeverKeyword

  • isTSNeverKeyword(node: object | null | undefined, opts?: object | null): node is TSNeverKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSNeverKeyword

isTSNonNullExpression

  • isTSNonNullExpression(node: object | null | undefined, opts?: object | null): node is TSNonNullExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSNonNullExpression

isTSNullKeyword

  • isTSNullKeyword(node: object | null | undefined, opts?: object | null): node is TSNullKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSNullKeyword

isTSNumberKeyword

  • isTSNumberKeyword(node: object | null | undefined, opts?: object | null): node is TSNumberKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSNumberKeyword

isTSObjectKeyword

  • isTSObjectKeyword(node: object | null | undefined, opts?: object | null): node is TSObjectKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSObjectKeyword

isTSOptionalType

  • isTSOptionalType(node: object | null | undefined, opts?: object | null): node is TSOptionalType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSOptionalType

isTSParameterProperty

  • isTSParameterProperty(node: object | null | undefined, opts?: object | null): node is TSParameterProperty
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSParameterProperty

isTSParenthesizedType

  • isTSParenthesizedType(node: object | null | undefined, opts?: object | null): node is TSParenthesizedType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSParenthesizedType

isTSPropertySignature

  • isTSPropertySignature(node: object | null | undefined, opts?: object | null): node is TSPropertySignature
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSPropertySignature

isTSQualifiedName

  • isTSQualifiedName(node: object | null | undefined, opts?: object | null): node is TSQualifiedName
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSQualifiedName

isTSRestType

  • isTSRestType(node: object | null | undefined, opts?: object | null): node is TSRestType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSRestType

isTSStringKeyword

  • isTSStringKeyword(node: object | null | undefined, opts?: object | null): node is TSStringKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSStringKeyword

isTSSymbolKeyword

  • isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSSymbolKeyword

isTSThisType

  • isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSThisType

isTSTupleType

  • isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTupleType

isTSType

  • isTSType(node: object | null | undefined, opts?: object | null): node is TSType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSType

isTSTypeAliasDeclaration

  • isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeAliasDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeAliasDeclaration

isTSTypeAnnotation

  • isTSTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TSTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeAnnotation

isTSTypeAssertion

  • isTSTypeAssertion(node: object | null | undefined, opts?: object | null): node is TSTypeAssertion
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeAssertion

isTSTypeElement

  • isTSTypeElement(node: object | null | undefined, opts?: object | null): node is TSTypeElement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeElement

isTSTypeLiteral

  • isTSTypeLiteral(node: object | null | undefined, opts?: object | null): node is TSTypeLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeLiteral

isTSTypeOperator

  • isTSTypeOperator(node: object | null | undefined, opts?: object | null): node is TSTypeOperator
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeOperator

isTSTypeParameter

  • isTSTypeParameter(node: object | null | undefined, opts?: object | null): node is TSTypeParameter
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeParameter

isTSTypeParameterDeclaration

  • isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeParameterDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeParameterDeclaration

isTSTypeParameterInstantiation

  • isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TSTypeParameterInstantiation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeParameterInstantiation

isTSTypePredicate

  • isTSTypePredicate(node: object | null | undefined, opts?: object | null): node is TSTypePredicate
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypePredicate

isTSTypeQuery

  • isTSTypeQuery(node: object | null | undefined, opts?: object | null): node is TSTypeQuery
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeQuery

isTSTypeReference

  • isTSTypeReference(node: object | null | undefined, opts?: object | null): node is TSTypeReference
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSTypeReference

isTSUndefinedKeyword

  • isTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): node is TSUndefinedKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSUndefinedKeyword

isTSUnionType

  • isTSUnionType(node: object | null | undefined, opts?: object | null): node is TSUnionType
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSUnionType

isTSUnknownKeyword

  • isTSUnknownKeyword(node: object | null | undefined, opts?: object | null): node is TSUnknownKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSUnknownKeyword

isTSVoidKeyword

  • isTSVoidKeyword(node: object | null | undefined, opts?: object | null): node is TSVoidKeyword
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TSVoidKeyword

isTaggedTemplateExpression

  • isTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): node is TaggedTemplateExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TaggedTemplateExpression

isTemplateElement

  • isTemplateElement(node: object | null | undefined, opts?: object | null): node is TemplateElement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TemplateElement

isTemplateLiteral

  • isTemplateLiteral(node: object | null | undefined, opts?: object | null): node is TemplateLiteral
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TemplateLiteral

isTerminatorless

  • isTerminatorless(node: object | null | undefined, opts?: object | null): node is Terminatorless
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Terminatorless

isThisExpression

  • isThisExpression(node: object | null | undefined, opts?: object | null): node is ThisExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ThisExpression

isThisTypeAnnotation

  • isThisTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ThisTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ThisTypeAnnotation

isThrowStatement

  • isThrowStatement(node: object | null | undefined, opts?: object | null): node is ThrowStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is ThrowStatement

isTryStatement

  • isTryStatement(node: object | null | undefined, opts?: object | null): node is TryStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TryStatement

isTupleTypeAnnotation

  • isTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TupleTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TupleTypeAnnotation

isType

  • isType<T>(nodetype: string, targetType: T): nodetype is T
  • isType(nodetype: string | null | undefined, targetType: string): boolean
  • Type parameters

    • T: "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassDeclaration" | "ClassExpression" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "OptionalMemberExpression" | "PipelinePrimaryTopicReference" | "OptionalCallExpression" | "Import" | "TSAsExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "RestElement" | "ObjectPattern" | "TSParameterProperty" | "LabeledStatement" | "Noop" | "ObjectProperty" | "PipelineBareFunction" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "SpreadElement" | "TryStatement" | "WithStatement" | "TSImportEqualsDeclaration" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "SwitchCase" | "TSAnyKeyword" | "TSArrayType" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TemplateElement" | "V8IntrinsicIdentifier" | "VariableDeclarator"

    Parameters

    • nodetype: string
    • targetType: T

    Returns nodetype is T

  • Parameters

    • nodetype: string | null | undefined
    • targetType: string

    Returns boolean

isTypeAlias

  • isTypeAlias(node: object | null | undefined, opts?: object | null): node is TypeAlias
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TypeAlias

isTypeAnnotation

  • isTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TypeAnnotation

isTypeCastExpression

  • isTypeCastExpression(node: object | null | undefined, opts?: object | null): node is TypeCastExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TypeCastExpression

isTypeParameter

  • isTypeParameter(node: object | null | undefined, opts?: object | null): node is TypeParameter
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TypeParameter

isTypeParameterDeclaration

  • isTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TypeParameterDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TypeParameterDeclaration

isTypeParameterInstantiation

  • isTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TypeParameterInstantiation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TypeParameterInstantiation

isTypeofTypeAnnotation

  • isTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeofTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is TypeofTypeAnnotation

isUnaryExpression

  • isUnaryExpression(node: object | null | undefined, opts?: object | null): node is UnaryExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is UnaryExpression

isUnaryLike

  • isUnaryLike(node: object | null | undefined, opts?: object | null): node is UnaryLike
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is UnaryLike

isUnionTypeAnnotation

  • isUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is UnionTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is UnionTypeAnnotation

isUpdateExpression

  • isUpdateExpression(node: object | null | undefined, opts?: object | null): node is UpdateExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is UpdateExpression

isUserWhitespacable

  • isUserWhitespacable(node: object | null | undefined, opts?: object | null): node is UserWhitespacable
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is UserWhitespacable

isV8IntrinsicIdentifier

  • isV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): node is V8IntrinsicIdentifier
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is V8IntrinsicIdentifier

isValidES3Identifier

  • isValidES3Identifier(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

isValidIdentifier

  • isValidIdentifier(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

isVar

  • isVar(node: Node): node is VariableDeclaration
  • Parameters

    Returns node is VariableDeclaration

isVariableDeclaration

  • isVariableDeclaration(node: object | null | undefined, opts?: object | null): node is VariableDeclaration
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is VariableDeclaration

isVariableDeclarator

  • isVariableDeclarator(node: object | null | undefined, opts?: object | null): node is VariableDeclarator
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is VariableDeclarator

isVariance

  • isVariance(node: object | null | undefined, opts?: object | null): node is Variance
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is Variance

isVoidTypeAnnotation

  • isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is VoidTypeAnnotation

isWhile

  • isWhile(node: object | null | undefined, opts?: object | null): node is While
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is While

isWhileStatement

  • isWhileStatement(node: object | null | undefined, opts?: object | null): node is WhileStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is WhileStatement

isWithStatement

  • isWithStatement(node: object | null | undefined, opts?: object | null): node is WithStatement
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is WithStatement

isYieldExpression

  • isYieldExpression(node: object | null | undefined, opts?: object | null): node is YieldExpression
  • Parameters

    • node: object | null | undefined
    • Optional opts: object | null

    Returns node is YieldExpression

jsxAttribute

jsxClosingElement

jsxClosingFragment

jsxElement

jsxEmptyExpression

jsxExpressionContainer

jsxFragment

jsxIdentifier

  • Parameters

    • name: string

    Returns JSXIdentifier

jsxMemberExpression

jsxNamespacedName

jsxOpeningElement

jsxOpeningFragment

jsxSpreadAttribute

jsxSpreadChild

jsxText

  • Parameters

    • value: string

    Returns JSXText

labeledStatement

logicalExpression

matchesPattern

  • matchesPattern(node: Node | null | undefined, match: string | ReadonlyArray<string>, allowPartial?: undefined | false | true): node is MemberExpression
  • Parameters

    • node: Node | null | undefined
    • match: string | ReadonlyArray<string>
    • Optional allowPartial: undefined | false | true

    Returns node is MemberExpression

memberExpression

  • memberExpression(object: Expression, property: any, computed?: undefined | false | true, optional?: true | false | null): MemberExpression
  • Parameters

    • object: Expression
    • property: any
    • Optional computed: undefined | false | true
    • Optional optional: true | false | null

    Returns MemberExpression

metaProperty

mixedTypeAnnotation

newExpression

noop

  • Returns Noop

nullLiteral

  • Returns NullLiteral

nullLiteralTypeAnnotation

nullableTypeAnnotation

numberLiteralTypeAnnotation

numberTypeAnnotation

numericLiteral

  • Parameters

    • value: number

    Returns NumericLiteral

objectExpression

objectMethod

objectPattern

objectProperty

  • Parameters

    • key: any
    • value: Expression | PatternLike
    • Optional computed: undefined | false | true
    • Optional shorthand: undefined | false | true
    • Optional decorators: Array<Decorator> | null

    Returns ObjectProperty

objectTypeAnnotation

objectTypeCallProperty

objectTypeIndexer

objectTypeInternalSlot

objectTypeProperty

  • Parameters

    • key: Identifier | StringLiteral
    • value: FlowType
    • Optional variance: Variance | null
    • Optional kind: "init" | "get" | "set" | null
    • Optional optional: boolean | null
    • Optional proto: boolean | null
    • Optional _static: boolean | null

    Returns ObjectTypeProperty

objectTypeSpreadProperty

opaqueType

optionalCallExpression

optionalMemberExpression

  • Parameters

    • object: Expression
    • property: any
    • computed: boolean | undefined
    • optional: boolean

    Returns OptionalMemberExpression

parenthesizedExpression

pipelineBareFunction

pipelinePrimaryTopicReference

pipelineTopicExpression

placeholder

  • placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: Identifier): Placeholder
  • Parameters

    • expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern"
    • name: Identifier

    Returns Placeholder

prependToMemberExpression

privateName

program

  • Parameters

    Returns Program

qualifiedTypeIdentifier

regExpLiteral

  • regExpLiteral(pattern: string, flags?: undefined | string): RegExpLiteral
  • Parameters

    • pattern: string
    • Optional flags: undefined | string

    Returns RegExpLiteral

removeComments

  • removeComments<T>(node: T): T
  • Type parameters

    Parameters

    • node: T

    Returns T

removeProperties

  • removeProperties(n: Node, opts?: object | null): void
  • Parameters

    • n: Node
    • Optional opts: object | null

    Returns void

removePropertiesDeep

  • removePropertiesDeep<T>(n: T, opts?: object | null): T
  • Type parameters

    Parameters

    • n: T
    • Optional opts: object | null

    Returns T

removeTypeDuplicates

  • removeTypeDuplicates(types: ReadonlyArray<FlowType | false | null | undefined>): FlowType[]
  • Parameters

    • types: ReadonlyArray<FlowType | false | null | undefined>

    Returns FlowType[]

restElement

returnStatement

  • Parameters

    Returns ReturnStatement

sequenceExpression

shallowEqual

  • shallowEqual<T>(actual: object, expected: T): actual is T
  • Type parameters

    • T: object

    Parameters

    • actual: object
    • expected: T

    Returns actual is T

spreadElement

stringLiteral

  • Parameters

    • value: string

    Returns StringLiteral

stringLiteralTypeAnnotation

stringTypeAnnotation

switchCase

  • Parameters

    Returns SwitchCase

switchStatement

taggedTemplateExpression

templateElement

  • templateElement(value: object, tail?: undefined | false | true): TemplateElement
  • Parameters

    • value: object
      • Optional cooked?: undefined | string
      • raw: string
    • Optional tail: undefined | false | true

    Returns TemplateElement

templateLiteral

thisExpression

  • Returns ThisExpression

thisTypeAnnotation

throwStatement

toBindingIdentifierName

  • toBindingIdentifierName(name: object | null | undefined): string
  • Parameters

    • name: object | null | undefined

    Returns string

toBlock

toComputedKey

toExpression

toIdentifier

  • toIdentifier(name: object | null | undefined): string
  • Parameters

    • name: object | null | undefined

    Returns string

toKeyAlias

  • Parameters

    Returns string

toSequenceExpression

  • Parameters

    • nodes: ReadonlyArray<Node>
    • scope: object
      • buildUndefinedNode: function
        • buildUndefinedNode(): Node
        • Returns Node

      • push: function
        • push(value: object): void
        • Parameters

          Returns void

    Returns SequenceExpression | undefined

toStatement

traverse

traverseFast

  • Type parameters

    • T

    Parameters

    Returns void

tryStatement

tsAnyKeyword

  • Returns TSAnyKeyword

tsArrayType

  • Parameters

    Returns TSArrayType

tsAsExpression

tsBigIntKeyword

  • Returns TSBigIntKeyword

tsBooleanKeyword

  • Returns TSBooleanKeyword

tsCallSignatureDeclaration

tsConditionalType

tsConstructSignatureDeclaration

tsConstructorType

tsDeclareFunction

tsDeclareMethod

tsEnumDeclaration

tsEnumMember

tsExportAssignment

tsExpressionWithTypeArguments

tsExternalModuleReference

tsFunctionType

tsImportEqualsDeclaration

tsImportType

tsIndexSignature

tsIndexedAccessType

tsInferType

tsInterfaceBody

tsInterfaceDeclaration

tsIntersectionType

tsLiteralType

tsMappedType

  • Parameters

    • typeParameter: TSTypeParameter
    • Optional typeAnnotation: TSType | null
    • Optional optional: boolean | null
    • Optional readonly: boolean | null

    Returns TSMappedType

tsMethodSignature

tsModuleBlock

  • Parameters

    Returns TSModuleBlock

tsModuleDeclaration

tsNamespaceExportDeclaration

tsNeverKeyword

  • Returns TSNeverKeyword

tsNonNullExpression

tsNullKeyword

  • Returns TSNullKeyword

tsNumberKeyword

  • Returns TSNumberKeyword

tsObjectKeyword

  • Returns TSObjectKeyword

tsOptionalType

  • Parameters

    Returns TSOptionalType

tsParameterProperty

  • Parameters

    • parameter: Identifier | AssignmentPattern
    • Optional accessibility: "public" | "private" | "protected" | null
    • Optional readonly: boolean | null

    Returns TSParameterProperty

tsParenthesizedType

tsPropertySignature

  • Parameters

    • key: Expression
    • Optional typeAnnotation: TSTypeAnnotation | null
    • Optional initializer: Expression | null
    • Optional computed: boolean | null
    • Optional optional: boolean | null
    • Optional readonly: boolean | null

    Returns TSPropertySignature

tsQualifiedName

tsRestType

  • Parameters

    Returns TSRestType

tsStringKeyword

  • Returns TSStringKeyword

tsSymbolKeyword

  • Returns TSSymbolKeyword

tsThisType

  • Returns TSThisType

tsTupleType

  • Parameters

    Returns TSTupleType

tsTypeAliasDeclaration

tsTypeAnnotation

  • Parameters

    Returns TSTypeAnnotation

tsTypeAssertion

tsTypeLiteral

tsTypeOperator

  • Parameters

    • typeAnnotation: TSType
    • Optional operator: string | null

    Returns TSTypeOperator

tsTypeParameter

  • Parameters

    • constraint: TSType | null | undefined
    • _default: TSType | null | undefined
    • name: string

    Returns TSTypeParameter

tsTypeParameterDeclaration

tsTypeParameterInstantiation

tsTypePredicate

tsTypeQuery

tsTypeReference

tsUndefinedKeyword

tsUnionType

  • Parameters

    Returns TSUnionType

tsUnknownKeyword

  • Returns TSUnknownKeyword

tsVoidKeyword

  • Returns TSVoidKeyword

tupleTypeAnnotation

typeAlias

typeAnnotation

  • Parameters

    Returns TypeAnnotation

typeCastExpression

typeParameter

  • Parameters

    Returns TypeParameter

typeParameterDeclaration

typeParameterInstantiation

typeofTypeAnnotation

unaryExpression

  • unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: undefined | false | true): UnaryExpression
  • Parameters

    • operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof"
    • argument: Expression
    • Optional prefix: undefined | false | true

    Returns UnaryExpression

unionTypeAnnotation

updateExpression

  • Parameters

    • operator: "++" | "--"
    • argument: Expression
    • Optional prefix: undefined | false | true

    Returns UpdateExpression

v8IntrinsicIdentifier

  • Parameters

    • name: string

    Returns V8IntrinsicIdentifier

validate

  • validate<T, K>(n: Node | null | undefined, key: K, value: T[K]): void
  • validate(n: Node, key: string, value: any): void
  • Type parameters

    • T: Node

    • K: keyof T

    Parameters

    • n: Node | null | undefined
    • key: K
    • value: T[K]

    Returns void

  • Parameters

    • n: Node
    • key: string
    • value: any

    Returns void

valueToNode

  • Parameters

    • value: undefined

    Returns Identifier

  • Parameters

    • value: boolean

    Returns BooleanLiteral

  • Parameters

    • value: null

    Returns NullLiteral

  • Parameters

    • value: string

    Returns StringLiteral

  • Parameters

    • value: number

    Returns NumericLiteral | BinaryExpression | UnaryExpression

  • Parameters

    • value: RegExp

    Returns RegExpLiteral

  • Parameters

    • value: ReadonlyArray<undefined | boolean | null | string | number | RegExp | object>

    Returns ArrayExpression

  • Parameters

    • value: object

    Returns ObjectExpression

  • Parameters

    • value: undefined | boolean | null | string | number | RegExp | object

    Returns Expression

variableDeclaration

  • Parameters

    • kind: "var" | "let" | "const"
    • declarations: Array<VariableDeclarator>
    • Optional declare: boolean | null

    Returns VariableDeclaration

variableDeclarator

  • Parameters

    • id: LVal
    • Optional init: Expression | null
    • Optional definite: boolean | null

    Returns VariableDeclarator

variance

  • variance(kind: "minus" | "plus"): Variance
  • Parameters

    • kind: "minus" | "plus"

    Returns Variance

voidTypeAnnotation

whileStatement

withStatement

yieldExpression

  • Parameters

    • Optional argument: Expression | null
    • Optional delegate: undefined | false | true

    Returns YieldExpression

Generated using TypeDoc