@babel/types
- Version 7.27.7
- Published
- 2.6 MB
- 2 dependencies
- MIT license
Install
npm i @babel/types
yarn add @babel/types
pnpm add @babel/types
Overview
Babel Types is a Lodash-esque utility library for AST nodes
Index
Functions
- addComment()
- addComments()
- anyTypeAnnotation()
- appendToMemberExpression()
- argumentPlaceholder()
- arrayExpression()
- arrayPattern()
- arrayTypeAnnotation()
- arrowFunctionExpression()
- assertAccessor()
- assertAnyTypeAnnotation()
- assertArgumentPlaceholder()
- assertArrayExpression()
- assertArrayPattern()
- assertArrayTypeAnnotation()
- assertArrowFunctionExpression()
- assertAssignmentExpression()
- assertAssignmentPattern()
- assertAwaitExpression()
- assertBigIntLiteral()
- assertBinary()
- assertBinaryExpression()
- assertBindExpression()
- assertBlock()
- assertBlockParent()
- assertBlockStatement()
- assertBooleanLiteral()
- assertBooleanLiteralTypeAnnotation()
- assertBooleanTypeAnnotation()
- assertBreakStatement()
- assertCallExpression()
- assertCatchClause()
- assertClass()
- assertClassAccessorProperty()
- assertClassBody()
- assertClassDeclaration()
- assertClassExpression()
- assertClassImplements()
- assertClassMethod()
- assertClassPrivateMethod()
- assertClassPrivateProperty()
- assertClassProperty()
- assertCompletionStatement()
- assertConditional()
- assertConditionalExpression()
- assertContinueStatement()
- assertDebuggerStatement()
- assertDecimalLiteral()
- assertDeclaration()
- assertDeclareClass()
- assertDeclaredPredicate()
- assertDeclareExportAllDeclaration()
- assertDeclareExportDeclaration()
- assertDeclareFunction()
- assertDeclareInterface()
- assertDeclareModule()
- assertDeclareModuleExports()
- assertDeclareOpaqueType()
- assertDeclareTypeAlias()
- assertDeclareVariable()
- assertDecorator()
- assertDirective()
- assertDirectiveLiteral()
- assertDoExpression()
- assertDoWhileStatement()
- assertEmptyStatement()
- assertEmptyTypeAnnotation()
- assertEnumBody()
- assertEnumBooleanBody()
- assertEnumBooleanMember()
- assertEnumDeclaration()
- assertEnumDefaultedMember()
- assertEnumMember()
- assertEnumNumberBody()
- assertEnumNumberMember()
- assertEnumStringBody()
- assertEnumStringMember()
- assertEnumSymbolBody()
- assertExistsTypeAnnotation()
- assertExportAllDeclaration()
- assertExportDeclaration()
- assertExportDefaultDeclaration()
- assertExportDefaultSpecifier()
- assertExportNamedDeclaration()
- assertExportNamespaceSpecifier()
- assertExportSpecifier()
- assertExpression()
- assertExpressionStatement()
- assertExpressionWrapper()
- assertFile()
- assertFlow()
- assertFlowBaseAnnotation()
- assertFlowDeclaration()
- assertFlowPredicate()
- assertFlowType()
- assertFor()
- assertForInStatement()
- assertForOfStatement()
- assertForStatement()
- assertForXStatement()
- assertFunction()
- assertFunctionDeclaration()
- assertFunctionExpression()
- assertFunctionParent()
- assertFunctionTypeAnnotation()
- assertFunctionTypeParam()
- assertGenericTypeAnnotation()
- assertIdentifier()
- assertIfStatement()
- assertImmutable()
- assertImport()
- assertImportAttribute()
- assertImportDeclaration()
- assertImportDefaultSpecifier()
- assertImportExpression()
- assertImportNamespaceSpecifier()
- assertImportOrExportDeclaration()
- assertImportSpecifier()
- assertIndexedAccessType()
- assertInferredPredicate()
- assertInterfaceDeclaration()
- assertInterfaceExtends()
- assertInterfaceTypeAnnotation()
- assertInterpreterDirective()
- assertIntersectionTypeAnnotation()
- assertJSX()
- assertJSXAttribute()
- assertJSXClosingElement()
- assertJSXClosingFragment()
- assertJSXElement()
- assertJSXEmptyExpression()
- assertJSXExpressionContainer()
- assertJSXFragment()
- assertJSXIdentifier()
- assertJSXMemberExpression()
- assertJSXNamespacedName()
- assertJSXOpeningElement()
- assertJSXOpeningFragment()
- assertJSXSpreadAttribute()
- assertJSXSpreadChild()
- assertJSXText()
- assertLabeledStatement()
- assertLiteral()
- assertLogicalExpression()
- assertLoop()
- assertLVal()
- assertMemberExpression()
- assertMetaProperty()
- assertMethod()
- assertMiscellaneous()
- assertMixedTypeAnnotation()
- assertModuleDeclaration()
- assertModuleExpression()
- assertModuleSpecifier()
- assertNewExpression()
- assertNode()
- assertNoop()
- assertNullableTypeAnnotation()
- assertNullLiteral()
- assertNullLiteralTypeAnnotation()
- assertNumberLiteral()
- assertNumberLiteralTypeAnnotation()
- assertNumberTypeAnnotation()
- assertNumericLiteral()
- assertObjectExpression()
- assertObjectMember()
- assertObjectMethod()
- assertObjectPattern()
- assertObjectProperty()
- assertObjectTypeAnnotation()
- assertObjectTypeCallProperty()
- assertObjectTypeIndexer()
- assertObjectTypeInternalSlot()
- assertObjectTypeProperty()
- assertObjectTypeSpreadProperty()
- assertOpaqueType()
- assertOptionalCallExpression()
- assertOptionalIndexedAccessType()
- assertOptionalMemberExpression()
- assertParenthesizedExpression()
- assertPattern()
- assertPatternLike()
- assertPipelineBareFunction()
- assertPipelinePrimaryTopicReference()
- assertPipelineTopicExpression()
- assertPlaceholder()
- assertPrivate()
- assertPrivateName()
- assertProgram()
- assertProperty()
- assertPureish()
- assertQualifiedTypeIdentifier()
- assertRecordExpression()
- assertRegexLiteral()
- assertRegExpLiteral()
- assertRestElement()
- assertRestProperty()
- assertReturnStatement()
- assertScopable()
- assertSequenceExpression()
- assertSpreadElement()
- assertSpreadProperty()
- assertStandardized()
- assertStatement()
- assertStaticBlock()
- assertStringLiteral()
- assertStringLiteralTypeAnnotation()
- assertStringTypeAnnotation()
- assertSuper()
- assertSwitchCase()
- assertSwitchStatement()
- assertSymbolTypeAnnotation()
- assertTaggedTemplateExpression()
- assertTemplateElement()
- assertTemplateLiteral()
- assertTerminatorless()
- assertThisExpression()
- assertThisTypeAnnotation()
- assertThrowStatement()
- assertTopicReference()
- assertTryStatement()
- assertTSAnyKeyword()
- assertTSArrayType()
- assertTSAsExpression()
- assertTSBaseType()
- assertTSBigIntKeyword()
- assertTSBooleanKeyword()
- assertTSCallSignatureDeclaration()
- assertTSConditionalType()
- assertTSConstructorType()
- assertTSConstructSignatureDeclaration()
- assertTSDeclareFunction()
- assertTSDeclareMethod()
- assertTSEntityName()
- assertTSEnumBody()
- assertTSEnumDeclaration()
- assertTSEnumMember()
- assertTSExportAssignment()
- assertTSExpressionWithTypeArguments()
- assertTSExternalModuleReference()
- assertTSFunctionType()
- assertTSImportEqualsDeclaration()
- assertTSImportType()
- assertTSIndexedAccessType()
- assertTSIndexSignature()
- assertTSInferType()
- assertTSInstantiationExpression()
- assertTSInterfaceBody()
- assertTSInterfaceDeclaration()
- assertTSIntersectionType()
- assertTSIntrinsicKeyword()
- assertTSLiteralType()
- assertTSMappedType()
- assertTSMethodSignature()
- assertTSModuleBlock()
- assertTSModuleDeclaration()
- assertTSNamedTupleMember()
- assertTSNamespaceExportDeclaration()
- assertTSNeverKeyword()
- assertTSNonNullExpression()
- assertTSNullKeyword()
- assertTSNumberKeyword()
- assertTSObjectKeyword()
- assertTSOptionalType()
- assertTSParameterProperty()
- assertTSParenthesizedType()
- assertTSPropertySignature()
- assertTSQualifiedName()
- assertTSRestType()
- assertTSSatisfiesExpression()
- assertTSStringKeyword()
- assertTSSymbolKeyword()
- assertTSTemplateLiteralType()
- assertTSThisType()
- assertTSTupleType()
- assertTSType()
- assertTSTypeAliasDeclaration()
- assertTSTypeAnnotation()
- assertTSTypeAssertion()
- assertTSTypeElement()
- assertTSTypeLiteral()
- assertTSTypeOperator()
- assertTSTypeParameter()
- assertTSTypeParameterDeclaration()
- assertTSTypeParameterInstantiation()
- assertTSTypePredicate()
- assertTSTypeQuery()
- assertTSTypeReference()
- assertTSUndefinedKeyword()
- assertTSUnionType()
- assertTSUnknownKeyword()
- assertTSVoidKeyword()
- assertTupleExpression()
- assertTupleTypeAnnotation()
- assertTypeAlias()
- assertTypeAnnotation()
- assertTypeCastExpression()
- assertTypeofTypeAnnotation()
- assertTypeParameter()
- assertTypeParameterDeclaration()
- assertTypeParameterInstantiation()
- assertTypeScript()
- assertUnaryExpression()
- assertUnaryLike()
- assertUnionTypeAnnotation()
- assertUpdateExpression()
- assertUserWhitespacable()
- assertV8IntrinsicIdentifier()
- assertVariableDeclaration()
- assertVariableDeclarator()
- assertVariance()
- assertVoidTypeAnnotation()
- assertWhile()
- assertWhileStatement()
- assertWithStatement()
- assertYieldExpression()
- assignmentExpression()
- assignmentPattern()
- awaitExpression()
- bigIntLiteral()
- binaryExpression()
- bindExpression()
- blockStatement()
- booleanLiteral()
- booleanLiteralTypeAnnotation()
- booleanTypeAnnotation()
- breakStatement()
- buildChildren()
- buildMatchMemberExpression()
- callExpression()
- catchClause()
- classAccessorProperty()
- classBody()
- classDeclaration()
- classExpression()
- classImplements()
- classMethod()
- classPrivateMethod()
- classPrivateProperty()
- classProperty()
- clone()
- cloneDeep()
- cloneDeepWithoutLoc()
- cloneNode()
- cloneWithoutLoc()
- conditionalExpression()
- continueStatement()
- createFlowUnionType()
- createTypeAnnotationBasedOnTypeof()
- createUnionTypeAnnotation()
- debuggerStatement()
- decimalLiteral()
- declareClass()
- declaredPredicate()
- declareExportAllDeclaration()
- declareExportDeclaration()
- declareFunction()
- declareInterface()
- declareModule()
- declareModuleExports()
- declareOpaqueType()
- declareTypeAlias()
- declareVariable()
- decorator()
- directive()
- directiveLiteral()
- doExpression()
- doWhileStatement()
- emptyStatement()
- emptyTypeAnnotation()
- ensureBlock()
- enumBooleanBody()
- enumBooleanMember()
- enumDeclaration()
- enumDefaultedMember()
- enumNumberBody()
- enumNumberMember()
- enumStringBody()
- enumStringMember()
- enumSymbolBody()
- existsTypeAnnotation()
- exportAllDeclaration()
- exportDefaultDeclaration()
- exportDefaultSpecifier()
- exportNamedDeclaration()
- exportNamespaceSpecifier()
- exportSpecifier()
- expressionStatement()
- file()
- forInStatement()
- forOfStatement()
- forStatement()
- functionDeclaration()
- functionExpression()
- functionTypeAnnotation()
- functionTypeParam()
- genericTypeAnnotation()
- getBindingIdentifiers()
- getOuterBindingIdentifiers()
- identifier()
- ifStatement()
- import()
- importAttribute()
- importDeclaration()
- importDefaultSpecifier()
- importExpression()
- importNamespaceSpecifier()
- importSpecifier()
- indexedAccessType()
- inferredPredicate()
- inheritInnerComments()
- inheritLeadingComments()
- inherits()
- inheritsComments()
- inheritTrailingComments()
- interfaceDeclaration()
- interfaceExtends()
- interfaceTypeAnnotation()
- interpreterDirective()
- intersectionTypeAnnotation()
- is()
- isAccessor()
- isAnyTypeAnnotation()
- isArgumentPlaceholder()
- isArrayExpression()
- isArrayPattern()
- isArrayTypeAnnotation()
- isArrowFunctionExpression()
- isAssignmentExpression()
- isAssignmentPattern()
- isAwaitExpression()
- isBigIntLiteral()
- isBinary()
- isBinaryExpression()
- isBindExpression()
- isBinding()
- isBlock()
- isBlockParent()
- isBlockScoped()
- isBlockStatement()
- isBooleanLiteral()
- isBooleanLiteralTypeAnnotation()
- isBooleanTypeAnnotation()
- isBreakStatement()
- isCallExpression()
- isCatchClause()
- isClass()
- isClassAccessorProperty()
- isClassBody()
- isClassDeclaration()
- isClassExpression()
- isClassImplements()
- isClassMethod()
- isClassPrivateMethod()
- isClassPrivateProperty()
- isClassProperty()
- isCompletionStatement()
- isConditional()
- isConditionalExpression()
- isContinueStatement()
- isDebuggerStatement()
- isDecimalLiteral()
- isDeclaration()
- isDeclareClass()
- isDeclaredPredicate()
- isDeclareExportAllDeclaration()
- isDeclareExportDeclaration()
- isDeclareFunction()
- isDeclareInterface()
- isDeclareModule()
- isDeclareModuleExports()
- isDeclareOpaqueType()
- isDeclareTypeAlias()
- isDeclareVariable()
- isDecorator()
- isDirective()
- isDirectiveLiteral()
- isDoExpression()
- isDoWhileStatement()
- isEmptyStatement()
- isEmptyTypeAnnotation()
- isEnumBody()
- isEnumBooleanBody()
- isEnumBooleanMember()
- isEnumDeclaration()
- isEnumDefaultedMember()
- isEnumMember()
- isEnumNumberBody()
- isEnumNumberMember()
- isEnumStringBody()
- isEnumStringMember()
- isEnumSymbolBody()
- isExistsTypeAnnotation()
- isExportAllDeclaration()
- isExportDeclaration()
- isExportDefaultDeclaration()
- isExportDefaultSpecifier()
- isExportNamedDeclaration()
- isExportNamespaceSpecifier()
- isExportSpecifier()
- isExpression()
- isExpressionStatement()
- isExpressionWrapper()
- isFile()
- isFlow()
- isFlowBaseAnnotation()
- isFlowDeclaration()
- isFlowPredicate()
- isFlowType()
- isFor()
- isForInStatement()
- isForOfStatement()
- isForStatement()
- isForXStatement()
- isFunction()
- isFunctionDeclaration()
- isFunctionExpression()
- isFunctionParent()
- isFunctionTypeAnnotation()
- isFunctionTypeParam()
- isGenericTypeAnnotation()
- isIdentifier()
- isIfStatement()
- isImmutable()
- isImport()
- isImportAttribute()
- isImportDeclaration()
- isImportDefaultSpecifier()
- isImportExpression()
- isImportNamespaceSpecifier()
- isImportOrExportDeclaration()
- isImportSpecifier()
- isIndexedAccessType()
- isInferredPredicate()
- isInterfaceDeclaration()
- isInterfaceExtends()
- isInterfaceTypeAnnotation()
- isInterpreterDirective()
- isIntersectionTypeAnnotation()
- isJSX()
- isJSXAttribute()
- isJSXClosingElement()
- isJSXClosingFragment()
- isJSXElement()
- isJSXEmptyExpression()
- isJSXExpressionContainer()
- isJSXFragment()
- isJSXIdentifier()
- isJSXMemberExpression()
- isJSXNamespacedName()
- isJSXOpeningElement()
- isJSXOpeningFragment()
- isJSXSpreadAttribute()
- isJSXSpreadChild()
- isJSXText()
- isLabeledStatement()
- isLet()
- isLiteral()
- isLogicalExpression()
- isLoop()
- isLVal()
- isMemberExpression()
- isMetaProperty()
- isMethod()
- isMiscellaneous()
- isMixedTypeAnnotation()
- isModuleDeclaration()
- isModuleExpression()
- isModuleSpecifier()
- isNewExpression()
- isNode()
- isNodesEquivalent()
- isNoop()
- isNullableTypeAnnotation()
- isNullLiteral()
- isNullLiteralTypeAnnotation()
- isNumberLiteral()
- isNumberLiteralTypeAnnotation()
- isNumberTypeAnnotation()
- isNumericLiteral()
- isObjectExpression()
- isObjectMember()
- isObjectMethod()
- isObjectPattern()
- isObjectProperty()
- isObjectTypeAnnotation()
- isObjectTypeCallProperty()
- isObjectTypeIndexer()
- isObjectTypeInternalSlot()
- isObjectTypeProperty()
- isObjectTypeSpreadProperty()
- isOpaqueType()
- isOptionalCallExpression()
- isOptionalIndexedAccessType()
- isOptionalMemberExpression()
- isParenthesizedExpression()
- isPattern()
- isPatternLike()
- isPipelineBareFunction()
- isPipelinePrimaryTopicReference()
- isPipelineTopicExpression()
- isPlaceholder()
- isPlaceholderType()
- isPrivate()
- isPrivateName()
- isProgram()
- isProperty()
- isPureish()
- isQualifiedTypeIdentifier()
- isRecordExpression()
- isReferenced()
- isRegexLiteral()
- isRegExpLiteral()
- isRestElement()
- isRestProperty()
- isReturnStatement()
- isScopable()
- isScope()
- isSequenceExpression()
- isSpecifierDefault()
- isSpreadElement()
- isSpreadProperty()
- isStandardized()
- isStatement()
- isStaticBlock()
- isStringLiteral()
- isStringLiteralTypeAnnotation()
- isStringTypeAnnotation()
- isSuper()
- isSwitchCase()
- isSwitchStatement()
- isSymbolTypeAnnotation()
- isTaggedTemplateExpression()
- isTemplateElement()
- isTemplateLiteral()
- isTerminatorless()
- isThisExpression()
- isThisTypeAnnotation()
- isThrowStatement()
- isTopicReference()
- isTryStatement()
- isTSAnyKeyword()
- isTSArrayType()
- isTSAsExpression()
- isTSBaseType()
- isTSBigIntKeyword()
- isTSBooleanKeyword()
- isTSCallSignatureDeclaration()
- isTSConditionalType()
- isTSConstructorType()
- isTSConstructSignatureDeclaration()
- isTSDeclareFunction()
- isTSDeclareMethod()
- isTSEntityName()
- isTSEnumBody()
- isTSEnumDeclaration()
- isTSEnumMember()
- isTSExportAssignment()
- isTSExpressionWithTypeArguments()
- isTSExternalModuleReference()
- isTSFunctionType()
- isTSImportEqualsDeclaration()
- isTSImportType()
- isTSIndexedAccessType()
- isTSIndexSignature()
- isTSInferType()
- isTSInstantiationExpression()
- isTSInterfaceBody()
- isTSInterfaceDeclaration()
- isTSIntersectionType()
- isTSIntrinsicKeyword()
- isTSLiteralType()
- isTSMappedType()
- isTSMethodSignature()
- isTSModuleBlock()
- isTSModuleDeclaration()
- isTSNamedTupleMember()
- isTSNamespaceExportDeclaration()
- isTSNeverKeyword()
- isTSNonNullExpression()
- isTSNullKeyword()
- isTSNumberKeyword()
- isTSObjectKeyword()
- isTSOptionalType()
- isTSParameterProperty()
- isTSParenthesizedType()
- isTSPropertySignature()
- isTSQualifiedName()
- isTSRestType()
- isTSSatisfiesExpression()
- isTSStringKeyword()
- isTSSymbolKeyword()
- isTSTemplateLiteralType()
- isTSThisType()
- isTSTupleType()
- isTSType()
- isTSTypeAliasDeclaration()
- isTSTypeAnnotation()
- isTSTypeAssertion()
- isTSTypeElement()
- isTSTypeLiteral()
- isTSTypeOperator()
- isTSTypeParameter()
- isTSTypeParameterDeclaration()
- isTSTypeParameterInstantiation()
- isTSTypePredicate()
- isTSTypeQuery()
- isTSTypeReference()
- isTSUndefinedKeyword()
- isTSUnionType()
- isTSUnknownKeyword()
- isTSVoidKeyword()
- isTupleExpression()
- isTupleTypeAnnotation()
- isType()
- isTypeAlias()
- isTypeAnnotation()
- isTypeCastExpression()
- isTypeofTypeAnnotation()
- isTypeParameter()
- isTypeParameterDeclaration()
- isTypeParameterInstantiation()
- isTypeScript()
- isUnaryExpression()
- isUnaryLike()
- isUnionTypeAnnotation()
- isUpdateExpression()
- isUserWhitespacable()
- isV8IntrinsicIdentifier()
- isValidES3Identifier()
- isValidIdentifier()
- isVar()
- isVariableDeclaration()
- isVariableDeclarator()
- isVariance()
- isVoidTypeAnnotation()
- isWhile()
- isWhileStatement()
- isWithStatement()
- isYieldExpression()
- jsxAttribute()
- jsxClosingElement()
- jsxClosingFragment()
- jsxElement()
- jsxEmptyExpression()
- jsxExpressionContainer()
- jsxFragment()
- jsxIdentifier()
- jsxMemberExpression()
- jsxNamespacedName()
- jsxOpeningElement()
- jsxOpeningFragment()
- jsxSpreadAttribute()
- jsxSpreadChild()
- jsxText()
- labeledStatement()
- logicalExpression()
- matchesPattern()
- memberExpression()
- metaProperty()
- mixedTypeAnnotation()
- moduleExpression()
- newExpression()
- noop()
- nullableTypeAnnotation()
- nullLiteral()
- nullLiteralTypeAnnotation()
- numberLiteralTypeAnnotation()
- numberTypeAnnotation()
- numericLiteral()
- objectExpression()
- objectMethod()
- objectPattern()
- objectProperty()
- objectTypeAnnotation()
- objectTypeCallProperty()
- objectTypeIndexer()
- objectTypeInternalSlot()
- objectTypeProperty()
- objectTypeSpreadProperty()
- opaqueType()
- optionalCallExpression()
- optionalIndexedAccessType()
- optionalMemberExpression()
- parenthesizedExpression()
- pipelineBareFunction()
- pipelinePrimaryTopicReference()
- pipelineTopicExpression()
- placeholder()
- prependToMemberExpression()
- privateName()
- program()
- qualifiedTypeIdentifier()
- recordExpression()
- regExpLiteral()
- removeComments()
- removeProperties()
- removePropertiesDeep()
- removeTypeDuplicates()
- restElement()
- returnStatement()
- sequenceExpression()
- shallowEqual()
- spreadElement()
- staticBlock()
- stringLiteral()
- stringLiteralTypeAnnotation()
- stringTypeAnnotation()
- super()
- switchCase()
- switchStatement()
- symbolTypeAnnotation()
- taggedTemplateExpression()
- templateElement()
- templateLiteral()
- thisExpression()
- thisTypeAnnotation()
- throwStatement()
- toBindingIdentifierName()
- toBlock()
- toComputedKey()
- toExpression()
- toIdentifier()
- toKeyAlias()
- topicReference()
- toSequenceExpression()
- toStatement()
- traverse()
- traverseFast()
- tryStatement()
- tsAnyKeyword()
- tsArrayType()
- tsAsExpression()
- tsBigIntKeyword()
- tsBooleanKeyword()
- tsCallSignatureDeclaration()
- tsConditionalType()
- tsConstructorType()
- tsConstructSignatureDeclaration()
- tsDeclareFunction()
- tsDeclareMethod()
- tsEnumBody()
- tsEnumDeclaration()
- tsEnumMember()
- tsExportAssignment()
- tsExpressionWithTypeArguments()
- tsExternalModuleReference()
- tsFunctionType()
- tsImportEqualsDeclaration()
- tsImportType()
- tsIndexedAccessType()
- tsIndexSignature()
- tsInferType()
- tsInstantiationExpression()
- tsInterfaceBody()
- tsInterfaceDeclaration()
- tsIntersectionType()
- tsIntrinsicKeyword()
- tsLiteralType()
- tsMappedType()
- tsMethodSignature()
- tsModuleBlock()
- tsModuleDeclaration()
- tsNamedTupleMember()
- tsNamespaceExportDeclaration()
- tsNeverKeyword()
- tsNonNullExpression()
- tsNullKeyword()
- tsNumberKeyword()
- tsObjectKeyword()
- tsOptionalType()
- tsParameterProperty()
- tsParenthesizedType()
- tsPropertySignature()
- tsQualifiedName()
- tsRestType()
- tsSatisfiesExpression()
- tsStringKeyword()
- tsSymbolKeyword()
- tsTemplateLiteralType()
- tsThisType()
- tsTupleType()
- tsTypeAliasDeclaration()
- tsTypeAnnotation()
- tsTypeAssertion()
- tsTypeLiteral()
- tsTypeOperator()
- tsTypeParameter()
- tsTypeParameterDeclaration()
- tsTypeParameterInstantiation()
- tsTypePredicate()
- tsTypeQuery()
- tsTypeReference()
- tsUndefinedKeyword()
- tsUnionType()
- tsUnknownKeyword()
- tsVoidKeyword()
- tupleExpression()
- tupleTypeAnnotation()
- typeAlias()
- typeAnnotation()
- typeCastExpression()
- typeofTypeAnnotation()
- typeParameter()
- typeParameterDeclaration()
- typeParameterInstantiation()
- unaryExpression()
- unionTypeAnnotation()
- updateExpression()
- v8IntrinsicIdentifier()
- validate()
- valueToNode()
- variableDeclaration()
- variableDeclarator()
- variance()
- voidTypeAnnotation()
- whileStatement()
- withStatement()
- yieldExpression()
Interfaces
Aliases
- Accessor
- Binary
- Block
- BlockParent
- Class
- CompletionStatement
- Conditional
- Declaration
- EnumBody
- EnumMember
- ExportDeclaration
- Expression
- ExpressionWrapper
- Flow
- FlowBaseAnnotation
- FlowDeclaration
- FlowPredicate
- FlowType
- For
- ForXStatement
- Function
- FunctionParent
- Immutable
- ImportOrExportDeclaration
- JSX
- Literal
- Loop
- LVal
- Method
- Miscellaneous
- ModuleDeclaration
- ModuleSpecifier
- ObjectMember
- Pattern
- PatternLike
- Private
- Property
- Pureish
- Scopable
- Standardized
- Statement
- Terminatorless
- TSBaseType
- TSEntityName
- TSType
- TSTypeElement
- TypeScript
- UnaryLike
- UserWhitespacable
- While
Type Aliases
- Accessor
- Binary
- Block
- BlockParent
- Class
- Comment
- CommentTypeShorthand
- CompletionStatement
- Conditional
- Declaration
- EnumBody
- EnumMember
- ExportDeclaration
- Expression
- ExpressionWrapper
- Flow
- FlowBaseAnnotation
- FlowDeclaration
- FlowPredicate
- FlowType
- For
- ForXStatement
- Function
- FunctionParent
- Immutable
- ImportOrExportDeclaration
- JSX
- Literal
- Loop
- LVal
- Method
- Miscellaneous
- ModuleDeclaration
- ModuleSpecifier
- Node
- NumberLiteral
- ObjectMember
- Pattern
- PatternLike
- Private
- Property
- Pureish
- RegexLiteral
- RestProperty
- Scopable
- SpreadProperty
- Standardized
- Statement
- Terminatorless
- TraversalAncestors
- TraversalHandler
- TraversalHandlers
- TSBaseType
- TSEntityName
- TSType
- TSTypeElement
- TypeScript
- UnaryLike
- UserWhitespacable
- While
Functions
function addComment
addComment: <T extends Node>( node: T, type: CommentTypeShorthand, content: string, line?: boolean) => T;
function addComments
addComments: <T extends Node>( node: T, type: CommentTypeShorthand, comments: ReadonlyArray<Comment>) => T;
function anyTypeAnnotation
anyTypeAnnotation: () => AnyTypeAnnotation;
function appendToMemberExpression
appendToMemberExpression: < T extends Pick<MemberExpression, 'object' | 'property'>>( member: T, append: MemberExpression['property'], computed?: boolean) => T;
function argumentPlaceholder
argumentPlaceholder: () => ArgumentPlaceholder;
function arrayExpression
arrayExpression: ( elements?: Array<null | Expression | SpreadElement>) => ArrayExpression;
function arrayPattern
arrayPattern: (elements: Array<null | PatternLike | LVal>) => ArrayPattern;
function arrayTypeAnnotation
arrayTypeAnnotation: (elementType: FlowType) => ArrayTypeAnnotation;
function arrowFunctionExpression
arrowFunctionExpression: ( params: Array<Identifier | Pattern | RestElement>, body: BlockStatement | Expression, async?: boolean) => ArrowFunctionExpression;
function assertAccessor
assertAccessor: (node: object | null | undefined, opts?: object | null) => void;
function assertAnyTypeAnnotation
assertAnyTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertArgumentPlaceholder
assertArgumentPlaceholder: ( node: object | null | undefined, opts?: object | null) => void;
function assertArrayExpression
assertArrayExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertArrayPattern
assertArrayPattern: ( node: object | null | undefined, opts?: object | null) => void;
function assertArrayTypeAnnotation
assertArrayTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertArrowFunctionExpression
assertArrowFunctionExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertAssignmentExpression
assertAssignmentExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertAssignmentPattern
assertAssignmentPattern: ( node: object | null | undefined, opts?: object | null) => void;
function assertAwaitExpression
assertAwaitExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertBigIntLiteral
assertBigIntLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertBinary
assertBinary: (node: object | null | undefined, opts?: object | null) => void;
function assertBinaryExpression
assertBinaryExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertBindExpression
assertBindExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertBlock
assertBlock: (node: object | null | undefined, opts?: object | null) => void;
function assertBlockParent
assertBlockParent: ( node: object | null | undefined, opts?: object | null) => void;
function assertBlockStatement
assertBlockStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertBooleanLiteral
assertBooleanLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertBooleanLiteralTypeAnnotation
assertBooleanLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertBooleanTypeAnnotation
assertBooleanTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertBreakStatement
assertBreakStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertCallExpression
assertCallExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertCatchClause
assertCatchClause: ( node: object | null | undefined, opts?: object | null) => void;
function assertClass
assertClass: (node: object | null | undefined, opts?: object | null) => void;
function assertClassAccessorProperty
assertClassAccessorProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertClassBody
assertClassBody: (node: object | null | undefined, opts?: object | null) => void;
function assertClassDeclaration
assertClassDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertClassExpression
assertClassExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertClassImplements
assertClassImplements: ( node: object | null | undefined, opts?: object | null) => void;
function assertClassMethod
assertClassMethod: ( node: object | null | undefined, opts?: object | null) => void;
function assertClassPrivateMethod
assertClassPrivateMethod: ( node: object | null | undefined, opts?: object | null) => void;
function assertClassPrivateProperty
assertClassPrivateProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertClassProperty
assertClassProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertCompletionStatement
assertCompletionStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertConditional
assertConditional: ( node: object | null | undefined, opts?: object | null) => void;
function assertConditionalExpression
assertConditionalExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertContinueStatement
assertContinueStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertDebuggerStatement
assertDebuggerStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertDecimalLiteral
assertDecimalLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclaration
assertDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareClass
assertDeclareClass: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclaredPredicate
assertDeclaredPredicate: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareExportAllDeclaration
assertDeclareExportAllDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareExportDeclaration
assertDeclareExportDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareFunction
assertDeclareFunction: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareInterface
assertDeclareInterface: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareModule
assertDeclareModule: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareModuleExports
assertDeclareModuleExports: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareOpaqueType
assertDeclareOpaqueType: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareTypeAlias
assertDeclareTypeAlias: ( node: object | null | undefined, opts?: object | null) => void;
function assertDeclareVariable
assertDeclareVariable: ( node: object | null | undefined, opts?: object | null) => void;
function assertDecorator
assertDecorator: (node: object | null | undefined, opts?: object | null) => void;
function assertDirective
assertDirective: (node: object | null | undefined, opts?: object | null) => void;
function assertDirectiveLiteral
assertDirectiveLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertDoExpression
assertDoExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertDoWhileStatement
assertDoWhileStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertEmptyStatement
assertEmptyStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertEmptyTypeAnnotation
assertEmptyTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumBody
assertEnumBody: (node: object | null | undefined, opts?: object | null) => void;
function assertEnumBooleanBody
assertEnumBooleanBody: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumBooleanMember
assertEnumBooleanMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumDeclaration
assertEnumDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumDefaultedMember
assertEnumDefaultedMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumMember
assertEnumMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumNumberBody
assertEnumNumberBody: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumNumberMember
assertEnumNumberMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumStringBody
assertEnumStringBody: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumStringMember
assertEnumStringMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertEnumSymbolBody
assertEnumSymbolBody: ( node: object | null | undefined, opts?: object | null) => void;
function assertExistsTypeAnnotation
assertExistsTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertExportAllDeclaration
assertExportAllDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertExportDeclaration
assertExportDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertExportDefaultDeclaration
assertExportDefaultDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertExportDefaultSpecifier
assertExportDefaultSpecifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertExportNamedDeclaration
assertExportNamedDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertExportNamespaceSpecifier
assertExportNamespaceSpecifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertExportSpecifier
assertExportSpecifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertExpression
assertExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertExpressionStatement
assertExpressionStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertExpressionWrapper
assertExpressionWrapper: ( node: object | null | undefined, opts?: object | null) => void;
function assertFile
assertFile: (node: object | null | undefined, opts?: object | null) => void;
function assertFlow
assertFlow: (node: object | null | undefined, opts?: object | null) => void;
function assertFlowBaseAnnotation
assertFlowBaseAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertFlowDeclaration
assertFlowDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertFlowPredicate
assertFlowPredicate: ( node: object | null | undefined, opts?: object | null) => void;
function assertFlowType
assertFlowType: (node: object | null | undefined, opts?: object | null) => void;
function assertFor
assertFor: (node: object | null | undefined, opts?: object | null) => void;
function assertForInStatement
assertForInStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertForOfStatement
assertForOfStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertForStatement
assertForStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertForXStatement
assertForXStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertFunction
assertFunction: (node: object | null | undefined, opts?: object | null) => void;
function assertFunctionDeclaration
assertFunctionDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertFunctionExpression
assertFunctionExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertFunctionParent
assertFunctionParent: ( node: object | null | undefined, opts?: object | null) => void;
function assertFunctionTypeAnnotation
assertFunctionTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertFunctionTypeParam
assertFunctionTypeParam: ( node: object | null | undefined, opts?: object | null) => void;
function assertGenericTypeAnnotation
assertGenericTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertIdentifier
assertIdentifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertIfStatement
assertIfStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertImmutable
assertImmutable: (node: object | null | undefined, opts?: object | null) => void;
function assertImport
assertImport: (node: object | null | undefined, opts?: object | null) => void;
function assertImportAttribute
assertImportAttribute: ( node: object | null | undefined, opts?: object | null) => void;
function assertImportDeclaration
assertImportDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertImportDefaultSpecifier
assertImportDefaultSpecifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertImportExpression
assertImportExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertImportNamespaceSpecifier
assertImportNamespaceSpecifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertImportOrExportDeclaration
assertImportOrExportDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertImportSpecifier
assertImportSpecifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertIndexedAccessType
assertIndexedAccessType: ( node: object | null | undefined, opts?: object | null) => void;
function assertInferredPredicate
assertInferredPredicate: ( node: object | null | undefined, opts?: object | null) => void;
function assertInterfaceDeclaration
assertInterfaceDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertInterfaceExtends
assertInterfaceExtends: ( node: object | null | undefined, opts?: object | null) => void;
function assertInterfaceTypeAnnotation
assertInterfaceTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertInterpreterDirective
assertInterpreterDirective: ( node: object | null | undefined, opts?: object | null) => void;
function assertIntersectionTypeAnnotation
assertIntersectionTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSX
assertJSX: (node: object | null | undefined, opts?: object | null) => void;
function assertJSXAttribute
assertJSXAttribute: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXClosingElement
assertJSXClosingElement: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXClosingFragment
assertJSXClosingFragment: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXElement
assertJSXElement: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXEmptyExpression
assertJSXEmptyExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXExpressionContainer
assertJSXExpressionContainer: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXFragment
assertJSXFragment: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXIdentifier
assertJSXIdentifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXMemberExpression
assertJSXMemberExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXNamespacedName
assertJSXNamespacedName: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXOpeningElement
assertJSXOpeningElement: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXOpeningFragment
assertJSXOpeningFragment: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXSpreadAttribute
assertJSXSpreadAttribute: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXSpreadChild
assertJSXSpreadChild: ( node: object | null | undefined, opts?: object | null) => void;
function assertJSXText
assertJSXText: (node: object | null | undefined, opts?: object | null) => void;
function assertLabeledStatement
assertLabeledStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertLiteral
assertLiteral: (node: object | null | undefined, opts?: object | null) => void;
function assertLogicalExpression
assertLogicalExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertLoop
assertLoop: (node: object | null | undefined, opts?: object | null) => void;
function assertLVal
assertLVal: (node: object | null | undefined, opts?: object | null) => void;
function assertMemberExpression
assertMemberExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertMetaProperty
assertMetaProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertMethod
assertMethod: (node: object | null | undefined, opts?: object | null) => void;
function assertMiscellaneous
assertMiscellaneous: ( node: object | null | undefined, opts?: object | null) => void;
function assertMixedTypeAnnotation
assertMixedTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertModuleDeclaration
assertModuleDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertModuleExpression
assertModuleExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertModuleSpecifier
assertModuleSpecifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertNewExpression
assertNewExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertNode
assertNode: (obj: any) => void;
function assertNoop
assertNoop: (node: object | null | undefined, opts?: object | null) => void;
function assertNullableTypeAnnotation
assertNullableTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertNullLiteral
assertNullLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertNullLiteralTypeAnnotation
assertNullLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertNumberLiteral
assertNumberLiteral: ( node: object | null | undefined, opts?: object | null) => void;
Deprecated
Use
assertNumericLiteral
function assertNumberLiteralTypeAnnotation
assertNumberLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertNumberTypeAnnotation
assertNumberTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertNumericLiteral
assertNumericLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectExpression
assertObjectExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectMember
assertObjectMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectMethod
assertObjectMethod: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectPattern
assertObjectPattern: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectProperty
assertObjectProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectTypeAnnotation
assertObjectTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectTypeCallProperty
assertObjectTypeCallProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectTypeIndexer
assertObjectTypeIndexer: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectTypeInternalSlot
assertObjectTypeInternalSlot: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectTypeProperty
assertObjectTypeProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertObjectTypeSpreadProperty
assertObjectTypeSpreadProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertOpaqueType
assertOpaqueType: ( node: object | null | undefined, opts?: object | null) => void;
function assertOptionalCallExpression
assertOptionalCallExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertOptionalIndexedAccessType
assertOptionalIndexedAccessType: ( node: object | null | undefined, opts?: object | null) => void;
function assertOptionalMemberExpression
assertOptionalMemberExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertParenthesizedExpression
assertParenthesizedExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertPattern
assertPattern: (node: object | null | undefined, opts?: object | null) => void;
function assertPatternLike
assertPatternLike: ( node: object | null | undefined, opts?: object | null) => void;
function assertPipelineBareFunction
assertPipelineBareFunction: ( node: object | null | undefined, opts?: object | null) => void;
function assertPipelinePrimaryTopicReference
assertPipelinePrimaryTopicReference: ( node: object | null | undefined, opts?: object | null) => void;
function assertPipelineTopicExpression
assertPipelineTopicExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertPlaceholder
assertPlaceholder: ( node: object | null | undefined, opts?: object | null) => void;
function assertPrivate
assertPrivate: (node: object | null | undefined, opts?: object | null) => void;
function assertPrivateName
assertPrivateName: ( node: object | null | undefined, opts?: object | null) => void;
function assertProgram
assertProgram: (node: object | null | undefined, opts?: object | null) => void;
function assertProperty
assertProperty: (node: object | null | undefined, opts?: object | null) => void;
function assertPureish
assertPureish: (node: object | null | undefined, opts?: object | null) => void;
function assertQualifiedTypeIdentifier
assertQualifiedTypeIdentifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertRecordExpression
assertRecordExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertRegexLiteral
assertRegexLiteral: ( node: object | null | undefined, opts?: object | null) => void;
Deprecated
Use
assertRegExpLiteral
function assertRegExpLiteral
assertRegExpLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertRestElement
assertRestElement: ( node: object | null | undefined, opts?: object | null) => void;
function assertRestProperty
assertRestProperty: ( node: object | null | undefined, opts?: object | null) => void;
Deprecated
Use
assertRestElement
function assertReturnStatement
assertReturnStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertScopable
assertScopable: (node: object | null | undefined, opts?: object | null) => void;
function assertSequenceExpression
assertSequenceExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertSpreadElement
assertSpreadElement: ( node: object | null | undefined, opts?: object | null) => void;
function assertSpreadProperty
assertSpreadProperty: ( node: object | null | undefined, opts?: object | null) => void;
Deprecated
Use
assertSpreadElement
function assertStandardized
assertStandardized: ( node: object | null | undefined, opts?: object | null) => void;
function assertStatement
assertStatement: (node: object | null | undefined, opts?: object | null) => void;
function assertStaticBlock
assertStaticBlock: ( node: object | null | undefined, opts?: object | null) => void;
function assertStringLiteral
assertStringLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertStringLiteralTypeAnnotation
assertStringLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertStringTypeAnnotation
assertStringTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertSuper
assertSuper: (node: object | null | undefined, opts?: object | null) => void;
function assertSwitchCase
assertSwitchCase: ( node: object | null | undefined, opts?: object | null) => void;
function assertSwitchStatement
assertSwitchStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertSymbolTypeAnnotation
assertSymbolTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertTaggedTemplateExpression
assertTaggedTemplateExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertTemplateElement
assertTemplateElement: ( node: object | null | undefined, opts?: object | null) => void;
function assertTemplateLiteral
assertTemplateLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertTerminatorless
assertTerminatorless: ( node: object | null | undefined, opts?: object | null) => void;
function assertThisExpression
assertThisExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertThisTypeAnnotation
assertThisTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertThrowStatement
assertThrowStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertTopicReference
assertTopicReference: ( node: object | null | undefined, opts?: object | null) => void;
function assertTryStatement
assertTryStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSAnyKeyword
assertTSAnyKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSArrayType
assertTSArrayType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSAsExpression
assertTSAsExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSBaseType
assertTSBaseType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSBigIntKeyword
assertTSBigIntKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSBooleanKeyword
assertTSBooleanKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSCallSignatureDeclaration
assertTSCallSignatureDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSConditionalType
assertTSConditionalType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSConstructorType
assertTSConstructorType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSConstructSignatureDeclaration
assertTSConstructSignatureDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSDeclareFunction
assertTSDeclareFunction: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSDeclareMethod
assertTSDeclareMethod: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSEntityName
assertTSEntityName: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSEnumBody
assertTSEnumBody: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSEnumDeclaration
assertTSEnumDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSEnumMember
assertTSEnumMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSExportAssignment
assertTSExportAssignment: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSExpressionWithTypeArguments
assertTSExpressionWithTypeArguments: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSExternalModuleReference
assertTSExternalModuleReference: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSFunctionType
assertTSFunctionType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSImportEqualsDeclaration
assertTSImportEqualsDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSImportType
assertTSImportType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSIndexedAccessType
assertTSIndexedAccessType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSIndexSignature
assertTSIndexSignature: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSInferType
assertTSInferType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSInstantiationExpression
assertTSInstantiationExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSInterfaceBody
assertTSInterfaceBody: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSInterfaceDeclaration
assertTSInterfaceDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSIntersectionType
assertTSIntersectionType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSIntrinsicKeyword
assertTSIntrinsicKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSLiteralType
assertTSLiteralType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSMappedType
assertTSMappedType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSMethodSignature
assertTSMethodSignature: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSModuleBlock
assertTSModuleBlock: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSModuleDeclaration
assertTSModuleDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSNamedTupleMember
assertTSNamedTupleMember: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSNamespaceExportDeclaration
assertTSNamespaceExportDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSNeverKeyword
assertTSNeverKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSNonNullExpression
assertTSNonNullExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSNullKeyword
assertTSNullKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSNumberKeyword
assertTSNumberKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSObjectKeyword
assertTSObjectKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSOptionalType
assertTSOptionalType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSParameterProperty
assertTSParameterProperty: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSParenthesizedType
assertTSParenthesizedType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSPropertySignature
assertTSPropertySignature: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSQualifiedName
assertTSQualifiedName: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSRestType
assertTSRestType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSSatisfiesExpression
assertTSSatisfiesExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSStringKeyword
assertTSStringKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSSymbolKeyword
assertTSSymbolKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTemplateLiteralType
assertTSTemplateLiteralType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSThisType
assertTSThisType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTupleType
assertTSTupleType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSType
assertTSType: (node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeAliasDeclaration
assertTSTypeAliasDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeAnnotation
assertTSTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeAssertion
assertTSTypeAssertion: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeElement
assertTSTypeElement: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeLiteral
assertTSTypeLiteral: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeOperator
assertTSTypeOperator: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeParameter
assertTSTypeParameter: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeParameterDeclaration
assertTSTypeParameterDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeParameterInstantiation
assertTSTypeParameterInstantiation: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypePredicate
assertTSTypePredicate: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeQuery
assertTSTypeQuery: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSTypeReference
assertTSTypeReference: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSUndefinedKeyword
assertTSUndefinedKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSUnionType
assertTSUnionType: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSUnknownKeyword
assertTSUnknownKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTSVoidKeyword
assertTSVoidKeyword: ( node: object | null | undefined, opts?: object | null) => void;
function assertTupleExpression
assertTupleExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertTupleTypeAnnotation
assertTupleTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertTypeAlias
assertTypeAlias: (node: object | null | undefined, opts?: object | null) => void;
function assertTypeAnnotation
assertTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertTypeCastExpression
assertTypeCastExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertTypeofTypeAnnotation
assertTypeofTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertTypeParameter
assertTypeParameter: ( node: object | null | undefined, opts?: object | null) => void;
function assertTypeParameterDeclaration
assertTypeParameterDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertTypeParameterInstantiation
assertTypeParameterInstantiation: ( node: object | null | undefined, opts?: object | null) => void;
function assertTypeScript
assertTypeScript: ( node: object | null | undefined, opts?: object | null) => void;
function assertUnaryExpression
assertUnaryExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertUnaryLike
assertUnaryLike: (node: object | null | undefined, opts?: object | null) => void;
function assertUnionTypeAnnotation
assertUnionTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertUpdateExpression
assertUpdateExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assertUserWhitespacable
assertUserWhitespacable: ( node: object | null | undefined, opts?: object | null) => void;
function assertV8IntrinsicIdentifier
assertV8IntrinsicIdentifier: ( node: object | null | undefined, opts?: object | null) => void;
function assertVariableDeclaration
assertVariableDeclaration: ( node: object | null | undefined, opts?: object | null) => void;
function assertVariableDeclarator
assertVariableDeclarator: ( node: object | null | undefined, opts?: object | null) => void;
function assertVariance
assertVariance: (node: object | null | undefined, opts?: object | null) => void;
function assertVoidTypeAnnotation
assertVoidTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => void;
function assertWhile
assertWhile: (node: object | null | undefined, opts?: object | null) => void;
function assertWhileStatement
assertWhileStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertWithStatement
assertWithStatement: ( node: object | null | undefined, opts?: object | null) => void;
function assertYieldExpression
assertYieldExpression: ( node: object | null | undefined, opts?: object | null) => void;
function assignmentExpression
assignmentExpression: ( operator: string, left: LVal | OptionalMemberExpression, right: Expression) => AssignmentExpression;
function assignmentPattern
assignmentPattern: ( left: | Identifier | ObjectPattern | ArrayPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression, right: Expression) => AssignmentPattern;
function awaitExpression
awaitExpression: (argument: Expression) => AwaitExpression;
function bigIntLiteral
bigIntLiteral: (value: string) => BigIntLiteral;
function binaryExpression
binaryExpression: ( operator: | '+' | '-' | '/' | '%' | '*' | '**' | '&' | '|' | '>>' | '>>>' | '<<' | '^' | '==' | '===' | '!=' | '!==' | 'in' | 'instanceof' | '>' | '<' | '>=' | '<=' | '|>', left: Expression | PrivateName, right: Expression) => BinaryExpression;
function bindExpression
bindExpression: (object: Expression, callee: Expression) => BindExpression;
function blockStatement
blockStatement: ( body: Array<Statement>, directives?: Array<Directive>) => BlockStatement;
function booleanLiteral
booleanLiteral: (value: boolean) => BooleanLiteral;
function booleanLiteralTypeAnnotation
booleanLiteralTypeAnnotation: (value: boolean) => BooleanLiteralTypeAnnotation;
function booleanTypeAnnotation
booleanTypeAnnotation: () => BooleanTypeAnnotation;
function breakStatement
breakStatement: (label?: Identifier | null) => BreakStatement;
function buildChildren
buildChildren: (node: { children: ReadonlyArray< | JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment | JSXEmptyExpression >;}) => JSXElement['children'];
function buildMatchMemberExpression
buildMatchMemberExpression: ( match: string, allowPartial?: boolean) => (node: Node | null | undefined) => node is MemberExpression;
function callExpression
callExpression: ( callee: Expression | Super | V8IntrinsicIdentifier, _arguments: Array<Expression | SpreadElement | ArgumentPlaceholder>) => CallExpression;
function catchClause
catchClause: ( param: Identifier | ArrayPattern | ObjectPattern | null | undefined, body: BlockStatement) => CatchClause;
function classAccessorProperty
classAccessorProperty: ( key: | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression | PrivateName, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean) => ClassAccessorProperty;
function classBody
classBody: ( body: Array< | ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock >) => ClassBody;
function classDeclaration
classDeclaration: ( id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null) => ClassDeclaration;
function classExpression
classExpression: ( id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null) => ClassExpression;
function classImplements
classImplements: ( id: Identifier, typeParameters?: TypeParameterInstantiation | null) => ClassImplements;
function classMethod
classMethod: ( kind: 'get' | 'set' | 'method' | 'constructor' | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean) => ClassMethod;
function classPrivateMethod
classPrivateMethod: ( kind: 'get' | 'set' | 'method' | undefined, key: PrivateName, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, _static?: boolean) => ClassPrivateMethod;
function classPrivateProperty
classPrivateProperty: ( key: PrivateName, value?: Expression | null, decorators?: Array<Decorator> | null, _static?: boolean) => ClassPrivateProperty;
function classProperty
classProperty: ( key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean) => ClassProperty;
function clone
clone: <T extends Node>(n: T) => T;
function cloneDeep
cloneDeep: <T extends Node>(n: T) => T;
function cloneDeepWithoutLoc
cloneDeepWithoutLoc: <T extends Node>(n: T) => T;
function cloneNode
cloneNode: <T extends Node>(n: T, deep?: boolean, withoutLoc?: boolean) => T;
function cloneWithoutLoc
cloneWithoutLoc: <T extends Node>(n: T) => T;
function conditionalExpression
conditionalExpression: ( test: Expression, consequent: Expression, alternate: Expression) => ConditionalExpression;
function continueStatement
continueStatement: (label?: Identifier | null) => ContinueStatement;
function createFlowUnionType
createFlowUnionType: { <T extends FlowType>(types: [T]): T; (types: readonly FlowType[]): UnionTypeAnnotation;};
function createTypeAnnotationBasedOnTypeof
createTypeAnnotationBasedOnTypeof: ( type: | 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol') => | StringTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | BooleanTypeAnnotation | GenericTypeAnnotation;
function createUnionTypeAnnotation
createUnionTypeAnnotation: { <T extends FlowType>(types: [T]): T; (types: readonly FlowType[]): UnionTypeAnnotation;};
function debuggerStatement
debuggerStatement: () => DebuggerStatement;
function decimalLiteral
decimalLiteral: (value: string) => DecimalLiteral;
function declareClass
declareClass: ( id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation) => DeclareClass;
function declaredPredicate
declaredPredicate: (value: Flow) => DeclaredPredicate;
function declareExportAllDeclaration
declareExportAllDeclaration: ( source: StringLiteral, attributes?: Array<ImportAttribute> | null) => DeclareExportAllDeclaration;
function declareExportDeclaration
declareExportDeclaration: ( declaration?: Flow | null, specifiers?: Array<ExportSpecifier | ExportNamespaceSpecifier> | null, source?: StringLiteral | null, attributes?: Array<ImportAttribute> | null) => DeclareExportDeclaration;
function declareFunction
declareFunction: (id: Identifier) => DeclareFunction;
function declareInterface
declareInterface: ( id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation) => DeclareInterface;
function declareModule
declareModule: ( id: Identifier | StringLiteral, body: BlockStatement, kind?: 'CommonJS' | 'ES' | null) => DeclareModule;
function declareModuleExports
declareModuleExports: (typeAnnotation: TypeAnnotation) => DeclareModuleExports;
function declareOpaqueType
declareOpaqueType: ( id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null) => DeclareOpaqueType;
function declareTypeAlias
declareTypeAlias: ( id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType) => DeclareTypeAlias;
function declareVariable
declareVariable: (id: Identifier) => DeclareVariable;
function decorator
decorator: (expression: Expression) => Decorator;
function directive
directive: (value: DirectiveLiteral) => Directive;
function directiveLiteral
directiveLiteral: (value: string) => DirectiveLiteral;
function doExpression
doExpression: (body: BlockStatement, async?: boolean) => DoExpression;
function doWhileStatement
doWhileStatement: (test: Expression, body: Statement) => DoWhileStatement;
function emptyStatement
emptyStatement: () => EmptyStatement;
function emptyTypeAnnotation
emptyTypeAnnotation: () => EmptyTypeAnnotation;
function ensureBlock
ensureBlock: { ( node: Extract<Node, { body: BlockStatement | Statement | Expression }> ): BlockStatement; < K extends | 'body' | 'type' | 'leadingComments' | 'innerComments' | 'trailingComments' | 'start' | 'end' | 'loc' | 'extra' = 'body' >( node: | Extract<ArrayExpression, Record<K, Expression | Statement>> | Extract<AssignmentExpression, Record<K, Expression | Statement>> | Extract<BinaryExpression, Record<K, Expression | Statement>> | Extract<CallExpression, Record<K, Expression | Statement>> | Extract<ConditionalExpression, Record<K, Expression | Statement>> | Extract<FunctionExpression, Record<K, Expression | Statement>> | Extract<Identifier, Record<K, Expression | Statement>> | Extract<StringLiteral, Record<K, Expression | Statement>> | Extract<NumericLiteral, Record<K, Expression | Statement>> | Extract<NullLiteral, Record<K, Expression | Statement>> | Extract<BooleanLiteral, Record<K, Expression | Statement>> | Extract<RegExpLiteral, Record<K, Expression | Statement>> | Extract<LogicalExpression, Record<K, Expression | Statement>> | Extract<MemberExpression, Record<K, Expression | Statement>> | Extract<NewExpression, Record<K, Expression | Statement>> | Extract<ObjectExpression, Record<K, Expression | Statement>> | Extract<SequenceExpression, Record<K, Expression | Statement>> | Extract<ParenthesizedExpression, Record<K, Expression | Statement>> | Extract<ThisExpression, Record<K, Expression | Statement>> | Extract<UnaryExpression, Record<K, Expression | Statement>> | Extract<UpdateExpression, Record<K, Expression | Statement>> | Extract<ArrowFunctionExpression, Record<K, Expression | Statement>> | Extract<ClassExpression, Record<K, Expression | Statement>> | Extract<ImportExpression, Record<K, Expression | Statement>> | Extract<MetaProperty, Record<K, Expression | Statement>> | Extract<Super, Record<K, Expression | Statement>> | Extract<TaggedTemplateExpression, Record<K, Expression | Statement>> | Extract<TemplateLiteral, Record<K, Expression | Statement>> | Extract<YieldExpression, Record<K, Expression | Statement>> | Extract<AwaitExpression, Record<K, Expression | Statement>> | Extract<Import, Record<K, Expression | Statement>> | Extract<BigIntLiteral, Record<K, Expression | Statement>> | Extract<OptionalMemberExpression, Record<K, Expression | Statement>> | Extract<OptionalCallExpression, Record<K, Expression | Statement>> | Extract<TypeCastExpression, Record<K, Expression | Statement>> | Extract<JSXElement, Record<K, Expression | Statement>> | Extract<JSXFragment, Record<K, Expression | Statement>> | Extract<BindExpression, Record<K, Expression | Statement>> | Extract<DoExpression, Record<K, Expression | Statement>> | Extract<RecordExpression, Record<K, Expression | Statement>> | Extract<TupleExpression, Record<K, Expression | Statement>> | Extract<DecimalLiteral, Record<K, Expression | Statement>> | Extract<ModuleExpression, Record<K, Expression | Statement>> | Extract<TopicReference, Record<K, Expression | Statement>> | Extract<PipelineTopicExpression, Record<K, Expression | Statement>> | Extract<PipelineBareFunction, Record<K, Expression | Statement>> | Extract< PipelinePrimaryTopicReference, Record<K, Expression | Statement> > | Extract<TSInstantiationExpression, Record<K, Expression | Statement>> | Extract<TSAsExpression, Record<K, Expression | Statement>> | Extract<TSSatisfiesExpression, Record<K, Expression | Statement>> | Extract<TSTypeAssertion, Record<K, Expression | Statement>> | Extract<TSNonNullExpression, Record<K, Expression | Statement>> | Extract<SpreadElement, Record<K, Expression | Statement>> | Extract<RestElement, Record<K, Expression | Statement>> | Extract<AssignmentPattern, Record<K, Expression | Statement>> | Extract<ArrayPattern, Record<K, Expression | Statement>> | Extract<ObjectPattern, Record<K, Expression | Statement>> | Extract<TSParameterProperty, Record<K, Expression | Statement>> | Extract<PrivateName, Record<K, Expression | Statement>> | Extract<InterpreterDirective, Record<K, Expression | Statement>> | Extract<DirectiveLiteral, Record<K, Expression | Statement>> | Extract<Directive, Record<K, Expression | Statement>> | Extract<BlockStatement, Record<K, Expression | Statement>> | Extract<BreakStatement, Record<K, Expression | Statement>> | Extract<ContinueStatement, Record<K, Expression | Statement>> | Extract<DebuggerStatement, Record<K, Expression | Statement>> | Extract<DoWhileStatement, Record<K, Expression | Statement>> | Extract<EmptyStatement, Record<K, Expression | Statement>> | Extract<ExpressionStatement, Record<K, Expression | Statement>> | Extract<ForInStatement, Record<K, Expression | Statement>> | Extract<ForStatement, Record<K, Expression | Statement>> | Extract<FunctionDeclaration, Record<K, Expression | Statement>> | Extract<IfStatement, Record<K, Expression | Statement>> | Extract<LabeledStatement, Record<K, Expression | Statement>> | Extract<ReturnStatement, Record<K, Expression | Statement>> | Extract<SwitchStatement, Record<K, Expression | Statement>> | Extract<ThrowStatement, Record<K, Expression | Statement>> | Extract<TryStatement, Record<K, Expression | Statement>> | Extract<VariableDeclaration, Record<K, Expression | Statement>> | Extract<WhileStatement, Record<K, Expression | Statement>> | Extract<WithStatement, Record<K, Expression | Statement>> | Extract<ClassDeclaration, Record<K, Expression | Statement>> | Extract<ExportAllDeclaration, Record<K, Expression | Statement>> | Extract<ExportDefaultDeclaration, Record<K, Expression | Statement>> | Extract<ExportNamedDeclaration, Record<K, Expression | Statement>> | Extract<ForOfStatement, Record<K, Expression | Statement>> | Extract<ImportDeclaration, Record<K, Expression | Statement>> | Extract<DeclareClass, Record<K, Expression | Statement>> | Extract<DeclareFunction, Record<K, Expression | Statement>> | Extract<DeclareInterface, Record<K, Expression | Statement>> | Extract<DeclareModule, Record<K, Expression | Statement>> | Extract<DeclareModuleExports, Record<K, Expression | Statement>> | Extract<DeclareTypeAlias, Record<K, Expression | Statement>> | Extract<DeclareOpaqueType, Record<K, Expression | Statement>> | Extract<DeclareVariable, Record<K, Expression | Statement>> | Extract<DeclareExportDeclaration, Record<K, Expression | Statement>> | Extract<DeclareExportAllDeclaration, Record<K, Expression | Statement>> | Extract<InterfaceDeclaration, Record<K, Expression | Statement>> | Extract<OpaqueType, Record<K, Expression | Statement>> | Extract<TypeAlias, Record<K, Expression | Statement>> | Extract<EnumDeclaration, Record<K, Expression | Statement>> | Extract<TSDeclareFunction, Record<K, Expression | Statement>> | Extract<TSInterfaceDeclaration, Record<K, Expression | Statement>> | Extract<TSTypeAliasDeclaration, Record<K, Expression | Statement>> | Extract<TSEnumDeclaration, Record<K, Expression | Statement>> | Extract<TSModuleDeclaration, Record<K, Expression | Statement>> | Extract<TSImportEqualsDeclaration, Record<K, Expression | Statement>> | Extract<TSExportAssignment, Record<K, Expression | Statement>> | Extract< TSNamespaceExportDeclaration, Record<K, Expression | Statement> > | Extract<V8IntrinsicIdentifier, Record<K, Expression | Statement>> | Extract<ArgumentPlaceholder, Record<K, Expression | Statement>> | Extract<CatchClause, Record<K, Expression | Statement>> | Extract<Program, Record<K, Expression | Statement>> | Extract<File, Record<K, Expression | Statement>> | Extract<ObjectMethod, Record<K, Expression | Statement>> | Extract<ObjectProperty, Record<K, Expression | Statement>> | Extract<Decorator, Record<K, Expression | Statement>> | Extract<SwitchCase, Record<K, Expression | Statement>> | Extract<VariableDeclarator, Record<K, Expression | Statement>> | Extract<ClassMethod, Record<K, Expression | Statement>> | Extract<ClassPrivateMethod, Record<K, Expression | Statement>> | Extract<ClassProperty, Record<K, Expression | Statement>> | Extract<ClassPrivateProperty, Record<K, Expression | Statement>> | Extract<ClassAccessorProperty, Record<K, Expression | Statement>> | Extract<TSDeclareMethod, Record<K, Expression | Statement>> | Extract<TSIndexSignature, Record<K, Expression | Statement>> | Extract<StaticBlock, Record<K, Expression | Statement>> | Extract<ClassBody, Record<K, Expression | Statement>> | Extract<ExportSpecifier, Record<K, Expression | Statement>> | Extract<ExportDefaultSpecifier, Record<K, Expression | Statement>> | Extract<ExportNamespaceSpecifier, Record<K, Expression | Statement>> | Extract<ImportSpecifier, Record<K, Expression | Statement>> | Extract<ImportDefaultSpecifier, Record<K, Expression | Statement>> | Extract<ImportNamespaceSpecifier, Record<K, Expression | Statement>> | Extract<TemplateElement, Record<K, Expression | Statement>> | Extract<TSAnyKeyword, Record<K, Expression | Statement>> | Extract<TSBooleanKeyword, Record<K, Expression | Statement>> | Extract<TSBigIntKeyword, Record<K, Expression | Statement>> | Extract<TSIntrinsicKeyword, Record<K, Expression | Statement>> | Extract<TSNeverKeyword, Record<K, Expression | Statement>> | Extract<TSNullKeyword, Record<K, Expression | Statement>> | Extract<TSNumberKeyword, Record<K, Expression | Statement>> | Extract<TSObjectKeyword, Record<K, Expression | Statement>> | Extract<TSStringKeyword, Record<K, Expression | Statement>> | Extract<TSSymbolKeyword, Record<K, Expression | Statement>> | Extract<TSUndefinedKeyword, Record<K, Expression | Statement>> | Extract<TSUnknownKeyword, Record<K, Expression | Statement>> | Extract<TSVoidKeyword, Record<K, Expression | Statement>> | Extract<TSThisType, Record<K, Expression | Statement>> | Extract<TSFunctionType, Record<K, Expression | Statement>> | Extract<TSConstructorType, Record<K, Expression | Statement>> | Extract<TSTypeReference, Record<K, Expression | Statement>> | Extract<TSTypePredicate, Record<K, Expression | Statement>> | Extract<TSTypeQuery, Record<K, Expression | Statement>> | Extract<TSTypeLiteral, Record<K, Expression | Statement>> | Extract<TSArrayType, Record<K, Expression | Statement>> | Extract<TSTupleType, Record<K, Expression | Statement>> | Extract<TSOptionalType, Record<K, Expression | Statement>> | Extract<TSRestType, Record<K, Expression | Statement>> | Extract<TSUnionType, Record<K, Expression | Statement>> | Extract<TSIntersectionType, Record<K, Expression | Statement>> | Extract<TSConditionalType, Record<K, Expression | Statement>> | Extract<TSInferType, Record<K, Expression | Statement>> | Extract<TSParenthesizedType, Record<K, Expression | Statement>> | Extract<TSTypeOperator, Record<K, Expression | Statement>> | Extract<TSIndexedAccessType, Record<K, Expression | Statement>> | Extract<TSMappedType, Record<K, Expression | Statement>> | Extract<TSTemplateLiteralType, Record<K, Expression | Statement>> | Extract<TSLiteralType, Record<K, Expression | Statement>> | Extract< TSExpressionWithTypeArguments, Record<K, Expression | Statement> > | Extract<TSImportType, Record<K, Expression | Statement>> | Extract<TypeAnnotation, Record<K, Expression | Statement>> | Extract<TSTypeAnnotation, Record<K, Expression | Statement>> | Extract<Noop, Record<K, Expression | Statement>> | Extract<ImportAttribute, Record<K, Expression | Statement>> | Extract<AnyTypeAnnotation, Record<K, Expression | Statement>> | Extract<ArrayTypeAnnotation, Record<K, Expression | Statement>> | Extract<BooleanTypeAnnotation, Record<K, Expression | Statement>> | Extract< BooleanLiteralTypeAnnotation, Record<K, Expression | Statement> > | Extract<NullLiteralTypeAnnotation, Record<K, Expression | Statement>> | Extract<ExistsTypeAnnotation, Record<K, Expression | Statement>> | Extract<FunctionTypeAnnotation, Record<K, Expression | Statement>> | Extract<GenericTypeAnnotation, Record<K, Expression | Statement>> | Extract<InterfaceTypeAnnotation, Record<K, Expression | Statement>> | Extract<IntersectionTypeAnnotation, Record<K, Expression | Statement>> | Extract<MixedTypeAnnotation, Record<K, Expression | Statement>> | Extract<EmptyTypeAnnotation, Record<K, Expression | Statement>> | Extract<NullableTypeAnnotation, Record<K, Expression | Statement>> | Extract<NumberLiteralTypeAnnotation, Record<K, Expression | Statement>> | Extract<NumberTypeAnnotation, Record<K, Expression | Statement>> | Extract<ObjectTypeAnnotation, Record<K, Expression | Statement>> | Extract<StringLiteralTypeAnnotation, Record<K, Expression | Statement>> | Extract<StringTypeAnnotation, Record<K, Expression | Statement>> | Extract<SymbolTypeAnnotation, Record<K, Expression | Statement>> | Extract<ThisTypeAnnotation, Record<K, Expression | Statement>> | Extract<TupleTypeAnnotation, Record<K, Expression | Statement>> | Extract<TypeofTypeAnnotation, Record<K, Expression | Statement>> | Extract<UnionTypeAnnotation, Record<K, Expression | Statement>> | Extract<VoidTypeAnnotation, Record<K, Expression | Statement>> | Extract<IndexedAccessType, Record<K, Expression | Statement>> | Extract<OptionalIndexedAccessType, Record<K, Expression | Statement>> | Extract<TypeParameterInstantiation, Record<K, Expression | Statement>> | Extract<ClassImplements, Record<K, Expression | Statement>> | Extract<TypeParameterDeclaration, Record<K, Expression | Statement>> | Extract<InterfaceExtends, Record<K, Expression | Statement>> | Extract<DeclaredPredicate, Record<K, Expression | Statement>> | Extract<FunctionTypeParam, Record<K, Expression | Statement>> | Extract<InferredPredicate, Record<K, Expression | Statement>> | Extract<ObjectTypeInternalSlot, Record<K, Expression | Statement>> | Extract<ObjectTypeCallProperty, Record<K, Expression | Statement>> | Extract<ObjectTypeIndexer, Record<K, Expression | Statement>> | Extract<ObjectTypeProperty, Record<K, Expression | Statement>> | Extract<ObjectTypeSpreadProperty, Record<K, Expression | Statement>> | Extract<QualifiedTypeIdentifier, Record<K, Expression | Statement>> | Extract<TypeParameter, Record<K, Expression | Statement>> | Extract<Variance, Record<K, Expression | Statement>> | Extract<EnumBooleanBody, Record<K, Expression | Statement>> | Extract<EnumNumberBody, Record<K, Expression | Statement>> | Extract<EnumStringBody, Record<K, Expression | Statement>> | Extract<EnumSymbolBody, Record<K, Expression | Statement>> | Extract<EnumBooleanMember, Record<K, Expression | Statement>> | Extract<EnumNumberMember, Record<K, Expression | Statement>> | Extract<EnumStringMember, Record<K, Expression | Statement>> | Extract<EnumDefaultedMember, Record<K, Expression | Statement>> | Extract<JSXIdentifier, Record<K, Expression | Statement>> | Extract<JSXNamespacedName, Record<K, Expression | Statement>> | Extract<JSXExpressionContainer, Record<K, Expression | Statement>> | Extract<JSXAttribute, Record<K, Expression | Statement>> | Extract<JSXMemberExpression, Record<K, Expression | Statement>> | Extract<JSXClosingElement, Record<K, Expression | Statement>> | Extract<JSXOpeningElement, Record<K, Expression | Statement>> | Extract<JSXText, Record<K, Expression | Statement>> | Extract<JSXSpreadChild, Record<K, Expression | Statement>> | Extract<JSXEmptyExpression, Record<K, Expression | Statement>> | Extract<JSXSpreadAttribute, Record<K, Expression | Statement>> | Extract<JSXOpeningFragment, Record<K, Expression | Statement>> | Extract<JSXClosingFragment, Record<K, Expression | Statement>> | Extract<Placeholder, Record<K, Expression | Statement>> | Extract<TSTypeParameterDeclaration, Record<K, Expression | Statement>> | Extract<TSQualifiedName, Record<K, Expression | Statement>> | Extract<TSCallSignatureDeclaration, Record<K, Expression | Statement>> | Extract< TSConstructSignatureDeclaration, Record<K, Expression | Statement> > | Extract<TSPropertySignature, Record<K, Expression | Statement>> | Extract<TSMethodSignature, Record<K, Expression | Statement>> | Extract< TSTypeParameterInstantiation, Record<K, Expression | Statement> > | Extract<TSNamedTupleMember, Record<K, Expression | Statement>> | Extract<TSTypeParameter, Record<K, Expression | Statement>> | Extract<TSInterfaceBody, Record<K, Expression | Statement>> | Extract<TSEnumMember, Record<K, Expression | Statement>> | Extract<TSEnumBody, Record<K, Expression | Statement>> | Extract<TSModuleBlock, Record<K, Expression | Statement>> | Extract<TSExternalModuleReference, Record<K, Expression | Statement>>, key: K ): BlockStatement;};
function enumBooleanBody
enumBooleanBody: (members: Array<EnumBooleanMember>) => EnumBooleanBody;
function enumBooleanMember
enumBooleanMember: (id: Identifier) => EnumBooleanMember;
function enumDeclaration
enumDeclaration: ( id: Identifier, body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody) => EnumDeclaration;
function enumDefaultedMember
enumDefaultedMember: (id: Identifier) => EnumDefaultedMember;
function enumNumberBody
enumNumberBody: (members: Array<EnumNumberMember>) => EnumNumberBody;
function enumNumberMember
enumNumberMember: (id: Identifier, init: NumericLiteral) => EnumNumberMember;
function enumStringBody
enumStringBody: ( members: Array<EnumStringMember | EnumDefaultedMember>) => EnumStringBody;
function enumStringMember
enumStringMember: (id: Identifier, init: StringLiteral) => EnumStringMember;
function enumSymbolBody
enumSymbolBody: (members: Array<EnumDefaultedMember>) => EnumSymbolBody;
function existsTypeAnnotation
existsTypeAnnotation: () => ExistsTypeAnnotation;
function exportAllDeclaration
exportAllDeclaration: (source: StringLiteral) => ExportAllDeclaration;
function exportDefaultDeclaration
exportDefaultDeclaration: ( declaration: | TSDeclareFunction | FunctionDeclaration | ClassDeclaration | Expression) => ExportDefaultDeclaration;
function exportDefaultSpecifier
exportDefaultSpecifier: (exported: Identifier) => ExportDefaultSpecifier;
function exportNamedDeclaration
exportNamedDeclaration: ( declaration?: Declaration | null, specifiers?: Array< ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier >, source?: StringLiteral | null) => ExportNamedDeclaration;
function exportNamespaceSpecifier
exportNamespaceSpecifier: (exported: Identifier) => ExportNamespaceSpecifier;
function exportSpecifier
exportSpecifier: ( local: Identifier, exported: Identifier | StringLiteral) => ExportSpecifier;
function expressionStatement
expressionStatement: (expression: Expression) => ExpressionStatement;
function file
file: ( program: Program, comments?: Array<CommentBlock | CommentLine> | null, tokens?: Array<any> | null) => File;
function forInStatement
forInStatement: ( left: VariableDeclaration | LVal, right: Expression, body: Statement) => ForInStatement;
function forOfStatement
forOfStatement: ( left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean) => ForOfStatement;
function forStatement
forStatement: ( init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement) => ForStatement;
function functionDeclaration
functionDeclaration: ( id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean) => FunctionDeclaration;
function functionExpression
functionExpression: ( id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean) => FunctionExpression;
function functionTypeAnnotation
functionTypeAnnotation: ( typeParameters: TypeParameterDeclaration | null | undefined, params: Array<FunctionTypeParam>, rest: FunctionTypeParam | null | undefined, returnType: FlowType) => FunctionTypeAnnotation;
function functionTypeParam
functionTypeParam: ( name: Identifier | null | undefined, typeAnnotation: FlowType) => FunctionTypeParam;
function genericTypeAnnotation
genericTypeAnnotation: ( id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null) => GenericTypeAnnotation;
function getBindingIdentifiers
getBindingIdentifiers: { (node: Node, duplicates: true, outerOnly?: boolean): Record< string, Array<Identifier> >; (node: Node, duplicates?: false, outerOnly?: boolean): Record< string, Identifier >; (node: Node, duplicates: boolean, outerOnly?: boolean): Record< string, Identifier | Identifier[] >;};
function getOuterBindingIdentifiers
getOuterBindingIdentifiers: { (node: Node, duplicates: true): Record<string, Array<Identifier>>; (node: Node, duplicates?: false): Record<string, Identifier>; (node: Node, duplicates: boolean): Record<string, Identifier | Identifier[]>;};
function identifier
identifier: (name: string) => Identifier;
function ifStatement
ifStatement: ( test: Expression, consequent: Statement, alternate?: Statement | null) => IfStatement;
function import
import: () => Import
function importAttribute
importAttribute: ( key: Identifier | StringLiteral, value: StringLiteral) => ImportAttribute;
function importDeclaration
importDeclaration: ( specifiers: Array< ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier >, source: StringLiteral) => ImportDeclaration;
function importDefaultSpecifier
importDefaultSpecifier: (local: Identifier) => ImportDefaultSpecifier;
function importExpression
importExpression: ( source: Expression, options?: Expression | null) => ImportExpression;
function importNamespaceSpecifier
importNamespaceSpecifier: (local: Identifier) => ImportNamespaceSpecifier;
function importSpecifier
importSpecifier: ( local: Identifier, imported: Identifier | StringLiteral) => ImportSpecifier;
function indexedAccessType
indexedAccessType: ( objectType: FlowType, indexType: FlowType) => IndexedAccessType;
function inferredPredicate
inferredPredicate: () => InferredPredicate;
function inheritInnerComments
inheritInnerComments: (node: Node, parent: Node) => void;
function inheritLeadingComments
inheritLeadingComments: (node: Node, parent: Node) => void;
function inherits
inherits: <T extends Node>(child: T, parent: Node | null | undefined) => T;
function inheritsComments
inheritsComments: <T extends Node>(node: T, parent: Node) => void;
function inheritTrailingComments
inheritTrailingComments: (node: Node, parent: Node) => void;
function interfaceDeclaration
interfaceDeclaration: ( id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation) => InterfaceDeclaration;
function interfaceExtends
interfaceExtends: ( id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null) => InterfaceExtends;
function interfaceTypeAnnotation
interfaceTypeAnnotation: ( _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation) => InterfaceTypeAnnotation;
function interpreterDirective
interpreterDirective: (value: string) => InterpreterDirective;
function intersectionTypeAnnotation
intersectionTypeAnnotation: ( types: Array<FlowType>) => IntersectionTypeAnnotation;
function is
is: { < T extends | 'Identifier' | 'StringLiteral' | 'BlockStatement' | 'ClassBody' | 'ArrayExpression' | 'AssignmentExpression' | 'BinaryExpression' | 'CallExpression' | 'ConditionalExpression' | 'FunctionExpression' | 'NumericLiteral' | 'NullLiteral' | 'BooleanLiteral' | 'RegExpLiteral' | 'LogicalExpression' | 'MemberExpression' | 'NewExpression' | 'ObjectExpression' | 'SequenceExpression' | 'ParenthesizedExpression' | 'ThisExpression' | 'UnaryExpression' | 'UpdateExpression' | 'ArrowFunctionExpression' | 'ClassExpression' | 'ImportExpression' | 'MetaProperty' | 'Super' | 'TaggedTemplateExpression' | 'TemplateLiteral' | 'YieldExpression' | 'AwaitExpression' | 'Import' | 'BigIntLiteral' | 'OptionalMemberExpression' | 'OptionalCallExpression' | 'TypeCastExpression' | 'JSXElement' | 'JSXFragment' | 'BindExpression' | 'DoExpression' | 'RecordExpression' | 'TupleExpression' | 'DecimalLiteral' | 'ModuleExpression' | 'TopicReference' | 'PipelineTopicExpression' | 'PipelineBareFunction' | 'PipelinePrimaryTopicReference' | 'TSInstantiationExpression' | 'TSAsExpression' | 'TSSatisfiesExpression' | 'TSTypeAssertion' | 'TSNonNullExpression' | 'BreakStatement' | 'ContinueStatement' | 'DebuggerStatement' | 'DoWhileStatement' | 'EmptyStatement' | 'ExpressionStatement' | 'ForInStatement' | 'ForStatement' | 'FunctionDeclaration' | 'IfStatement' | 'LabeledStatement' | 'ReturnStatement' | 'SwitchStatement' | 'ThrowStatement' | 'TryStatement' | 'VariableDeclaration' | 'WhileStatement' | 'WithStatement' | 'ClassDeclaration' | 'ExportAllDeclaration' | 'ExportDefaultDeclaration' | 'ExportNamedDeclaration' | 'ForOfStatement' | 'ImportDeclaration' | 'DeclareClass' | 'DeclareFunction' | 'DeclareInterface' | 'DeclareModule' | 'DeclareModuleExports' | 'DeclareTypeAlias' | 'DeclareOpaqueType' | 'DeclareVariable' | 'DeclareExportDeclaration' | 'DeclareExportAllDeclaration' | 'InterfaceDeclaration' | 'OpaqueType' | 'TypeAlias' | 'EnumDeclaration' | 'TSDeclareFunction' | 'TSInterfaceDeclaration' | 'TSTypeAliasDeclaration' | 'TSEnumDeclaration' | 'TSModuleDeclaration' | 'TSImportEqualsDeclaration' | 'TSExportAssignment' | 'TSNamespaceExportDeclaration' | 'Program' | 'ObjectTypeAnnotation' | 'EnumBooleanBody' | 'TSInterfaceBody' | 'TSEnumBody' | 'TSModuleBlock' | 'SpreadElement' | 'RestElement' | 'AssignmentPattern' | 'ArrayPattern' | 'ObjectPattern' | 'TSParameterProperty' | 'PrivateName' | 'InterpreterDirective' | 'DirectiveLiteral' | 'Directive' | 'V8IntrinsicIdentifier' | 'ArgumentPlaceholder' | 'CatchClause' | 'File' | 'ObjectMethod' | 'ObjectProperty' | 'Decorator' | 'SwitchCase' | 'VariableDeclarator' | 'ClassMethod' | 'ClassPrivateMethod' | 'ClassProperty' | 'ClassPrivateProperty' | 'ClassAccessorProperty' | 'TSDeclareMethod' | 'TSIndexSignature' | 'StaticBlock' | 'ExportSpecifier' | 'ExportDefaultSpecifier' | 'ExportNamespaceSpecifier' | 'ImportSpecifier' | 'ImportDefaultSpecifier' | 'ImportNamespaceSpecifier' | 'TemplateElement' | 'TSAnyKeyword' | 'TSBooleanKeyword' | 'TSBigIntKeyword' | 'TSIntrinsicKeyword' | 'TSNeverKeyword' | 'TSNullKeyword' | 'TSNumberKeyword' | 'TSObjectKeyword' | 'TSStringKeyword' | 'TSSymbolKeyword' | 'TSUndefinedKeyword' | 'TSUnknownKeyword' | 'TSVoidKeyword' | 'TSThisType' | 'TSFunctionType' | 'TSConstructorType' | 'TSTypeReference' | 'TSTypePredicate' | 'TSTypeQuery' | 'TSTypeLiteral' | 'TSArrayType' | 'TSTupleType' | 'TSOptionalType' | 'TSRestType' | 'TSUnionType' | 'TSIntersectionType' | 'TSConditionalType' | 'TSInferType' | 'TSParenthesizedType' | 'TSTypeOperator' | 'TSIndexedAccessType' | 'TSMappedType' | 'TSTemplateLiteralType' | 'TSLiteralType' | 'TSExpressionWithTypeArguments' | 'TSImportType' | 'TypeAnnotation' | 'TSTypeAnnotation' | 'Noop' | 'ImportAttribute' | 'AnyTypeAnnotation' | 'ArrayTypeAnnotation' | 'BooleanTypeAnnotation' | 'BooleanLiteralTypeAnnotation' | 'NullLiteralTypeAnnotation' | 'ExistsTypeAnnotation' | 'FunctionTypeAnnotation' | 'GenericTypeAnnotation' | 'InterfaceTypeAnnotation' | 'IntersectionTypeAnnotation' | 'MixedTypeAnnotation' | 'EmptyTypeAnnotation' | 'NullableTypeAnnotation' | 'NumberLiteralTypeAnnotation' | 'NumberTypeAnnotation' | 'StringLiteralTypeAnnotation' | 'StringTypeAnnotation' | 'SymbolTypeAnnotation' | 'ThisTypeAnnotation' | 'TupleTypeAnnotation' | 'TypeofTypeAnnotation' | 'UnionTypeAnnotation' | 'VoidTypeAnnotation' | 'IndexedAccessType' | 'OptionalIndexedAccessType' | 'TypeParameterInstantiation' | 'ClassImplements' | 'TypeParameterDeclaration' | 'InterfaceExtends' | 'DeclaredPredicate' | 'FunctionTypeParam' | 'InferredPredicate' | 'ObjectTypeInternalSlot' | 'ObjectTypeCallProperty' | 'ObjectTypeIndexer' | 'ObjectTypeProperty' | 'ObjectTypeSpreadProperty' | 'QualifiedTypeIdentifier' | 'TypeParameter' | 'Variance' | 'EnumNumberBody' | 'EnumStringBody' | 'EnumSymbolBody' | 'EnumBooleanMember' | 'EnumNumberMember' | 'EnumStringMember' | 'EnumDefaultedMember' | 'JSXIdentifier' | 'JSXNamespacedName' | 'JSXExpressionContainer' | 'JSXAttribute' | 'JSXMemberExpression' | 'JSXClosingElement' | 'JSXOpeningElement' | 'JSXText' | 'JSXSpreadChild' | 'JSXEmptyExpression' | 'JSXSpreadAttribute' | 'JSXOpeningFragment' | 'JSXClosingFragment' | 'Placeholder' | 'TSTypeParameterDeclaration' | 'TSQualifiedName' | 'TSCallSignatureDeclaration' | 'TSConstructSignatureDeclaration' | 'TSPropertySignature' | 'TSMethodSignature' | 'TSTypeParameterInstantiation' | 'TSNamedTupleMember' | 'TSTypeParameter' | 'TSEnumMember' | 'TSExternalModuleReference' >( type: T, n: Node | null | undefined, required?: undefined ): n is | Extract<ArrayExpression, { type: T }> | Extract<AssignmentExpression, { type: T }> | Extract<BinaryExpression, { type: T }> | Extract<CallExpression, { type: T }> | Extract<ConditionalExpression, { type: T }> | Extract<FunctionExpression, { type: T }> | Extract<Identifier, { type: T }> | Extract<StringLiteral, { type: T }> | Extract<NumericLiteral, { type: T }> | Extract<NullLiteral, { type: T }> | Extract<BooleanLiteral, { type: T }> | Extract<RegExpLiteral, { type: T }> | Extract<LogicalExpression, { type: T }> | Extract<MemberExpression, { type: T }> | Extract<NewExpression, { type: T }> | Extract<ObjectExpression, { type: T }> | Extract<SequenceExpression, { type: T }> | Extract<ParenthesizedExpression, { type: T }> | Extract<ThisExpression, { type: T }> | Extract<UnaryExpression, { type: T }> | Extract<UpdateExpression, { type: T }> | Extract<ArrowFunctionExpression, { type: T }> | Extract<ClassExpression, { type: T }> | Extract<ImportExpression, { type: T }> | Extract<MetaProperty, { type: T }> | Extract<Super, { type: T }> | Extract<TaggedTemplateExpression, { type: T }> | Extract<TemplateLiteral, { type: T }> | Extract<YieldExpression, { type: T }> | Extract<AwaitExpression, { type: T }> | Extract<Import, { type: T }> | Extract<BigIntLiteral, { type: T }> | Extract<OptionalMemberExpression, { type: T }> | Extract<OptionalCallExpression, { type: T }> | Extract<TypeCastExpression, { type: T }> | Extract<JSXElement, { type: T }> | Extract<JSXFragment, { type: T }> | Extract<BindExpression, { type: T }> | Extract<DoExpression, { type: T }> | Extract<RecordExpression, { type: T }> | Extract<TupleExpression, { type: T }> | Extract<DecimalLiteral, { type: T }> | Extract<ModuleExpression, { type: T }> | Extract<TopicReference, { type: T }> | Extract<PipelineTopicExpression, { type: T }> | Extract<PipelineBareFunction, { type: T }> | Extract<PipelinePrimaryTopicReference, { type: T }> | Extract<TSInstantiationExpression, { type: T }> | Extract<TSAsExpression, { type: T }> | Extract<TSSatisfiesExpression, { type: T }> | Extract<TSTypeAssertion, { type: T }> | Extract<TSNonNullExpression, { type: T }> | Extract<SpreadElement, { type: T }> | Extract<RestElement, { type: T }> | Extract<AssignmentPattern, { type: T }> | Extract<ArrayPattern, { type: T }> | Extract<ObjectPattern, { type: T }> | Extract<TSParameterProperty, { type: T }> | Extract<PrivateName, { type: T }> | Extract<InterpreterDirective, { type: T }> | Extract<DirectiveLiteral, { type: T }> | Extract<Directive, { type: T }> | Extract<BlockStatement, { type: T }> | Extract<BreakStatement, { type: T }> | Extract<ContinueStatement, { type: T }> | Extract<DebuggerStatement, { type: T }> | Extract<DoWhileStatement, { type: T }> | Extract<EmptyStatement, { type: T }> | Extract<ExpressionStatement, { type: T }> | Extract<ForInStatement, { type: T }> | Extract<ForStatement, { type: T }> | Extract<FunctionDeclaration, { type: T }> | Extract<IfStatement, { type: T }> | Extract<LabeledStatement, { type: T }> | Extract<ReturnStatement, { type: T }> | Extract<SwitchStatement, { type: T }> | Extract<ThrowStatement, { type: T }> | Extract<TryStatement, { type: T }> | Extract<VariableDeclaration, { type: T }> | Extract<WhileStatement, { type: T }> | Extract<WithStatement, { type: T }> | Extract<ClassDeclaration, { type: T }> | Extract<ExportAllDeclaration, { type: T }> | Extract<ExportDefaultDeclaration, { type: T }> | Extract<ExportNamedDeclaration, { type: T }> | Extract<ForOfStatement, { type: T }> | Extract<ImportDeclaration, { type: T }> | Extract<DeclareClass, { type: T }> | Extract<DeclareFunction, { type: T }> | Extract<DeclareInterface, { type: T }> | Extract<DeclareModule, { type: T }> | Extract<DeclareModuleExports, { type: T }> | Extract<DeclareTypeAlias, { type: T }> | Extract<DeclareOpaqueType, { type: T }> | Extract<DeclareVariable, { type: T }> | Extract<DeclareExportDeclaration, { type: T }> | Extract<DeclareExportAllDeclaration, { type: T }> | Extract<InterfaceDeclaration, { type: T }> | Extract<OpaqueType, { type: T }> | Extract<TypeAlias, { type: T }> | Extract<EnumDeclaration, { type: T }> | Extract<TSDeclareFunction, { type: T }> | Extract<TSInterfaceDeclaration, { type: T }> | Extract<TSTypeAliasDeclaration, { type: T }> | Extract<TSEnumDeclaration, { type: T }> | Extract<TSModuleDeclaration, { type: T }> | Extract<TSImportEqualsDeclaration, { type: T }> | Extract<TSExportAssignment, { type: T }> | Extract<TSNamespaceExportDeclaration, { type: T }> | Extract<V8IntrinsicIdentifier, { type: T }> | Extract<ArgumentPlaceholder, { type: T }> | Extract<CatchClause, { type: T }> | Extract<Program, { type: T }> | Extract<File, { type: T }> | Extract<ObjectMethod, { type: T }> | Extract<ObjectProperty, { type: T }> | Extract<Decorator, { type: T }> | Extract<SwitchCase, { type: T }> | Extract<VariableDeclarator, { type: T }> | Extract<ClassMethod, { type: T }> | Extract<ClassPrivateMethod, { type: T }> | Extract<ClassProperty, { type: T }> | Extract<ClassPrivateProperty, { type: T }> | Extract<ClassAccessorProperty, { type: T }> | Extract<TSDeclareMethod, { type: T }> | Extract<TSIndexSignature, { type: T }> | Extract<StaticBlock, { type: T }> | Extract<ClassBody, { type: T }> | Extract<ExportSpecifier, { type: T }> | Extract<ExportDefaultSpecifier, { type: T }> | Extract<ExportNamespaceSpecifier, { type: T }> | Extract<ImportSpecifier, { type: T }> | Extract<ImportDefaultSpecifier, { type: T }> | Extract<ImportNamespaceSpecifier, { type: T }> | Extract<TemplateElement, { type: T }> | Extract<TSAnyKeyword, { type: T }> | Extract<TSBooleanKeyword, { type: T }> | Extract<TSBigIntKeyword, { type: T }> | Extract<TSIntrinsicKeyword, { type: T }> | Extract<TSNeverKeyword, { type: T }> | Extract<TSNullKeyword, { type: T }> | Extract<TSNumberKeyword, { type: T }> | Extract<TSObjectKeyword, { type: T }> | Extract<TSStringKeyword, { type: T }> | Extract<TSSymbolKeyword, { type: T }> | Extract<TSUndefinedKeyword, { type: T }> | Extract<TSUnknownKeyword, { type: T }> | Extract<TSVoidKeyword, { type: T }> | Extract<TSThisType, { type: T }> | Extract<TSFunctionType, { type: T }> | Extract<TSConstructorType, { type: T }> | Extract<TSTypeReference, { type: T }> | Extract<TSTypePredicate, { type: T }> | Extract<TSTypeQuery, { type: T }> | Extract<TSTypeLiteral, { type: T }> | Extract<TSArrayType, { type: T }> | Extract<TSTupleType, { type: T }> | Extract<TSOptionalType, { type: T }> | Extract<TSRestType, { type: T }> | Extract<TSUnionType, { type: T }> | Extract<TSIntersectionType, { type: T }> | Extract<TSConditionalType, { type: T }> | Extract<TSInferType, { type: T }> | Extract<TSParenthesizedType, { type: T }> | Extract<TSTypeOperator, { type: T }> | Extract<TSIndexedAccessType, { type: T }> | Extract<TSMappedType, { type: T }> | Extract<TSTemplateLiteralType, { type: T }> | Extract<TSLiteralType, { type: T }> | Extract<TSExpressionWithTypeArguments, { type: T }> | Extract<TSImportType, { type: T }> | Extract<TypeAnnotation, { type: T }> | Extract<TSTypeAnnotation, { type: T }> | Extract<Noop, { type: T }> | Extract<ImportAttribute, { type: T }> | Extract<AnyTypeAnnotation, { type: T }> | Extract<ArrayTypeAnnotation, { type: T }> | Extract<BooleanTypeAnnotation, { type: T }> | Extract<BooleanLiteralTypeAnnotation, { type: T }> | Extract<NullLiteralTypeAnnotation, { type: T }> | Extract<ExistsTypeAnnotation, { type: T }> | Extract<FunctionTypeAnnotation, { type: T }> | Extract<GenericTypeAnnotation, { type: T }> | Extract<InterfaceTypeAnnotation, { type: T }> | Extract<IntersectionTypeAnnotation, { type: T }> | Extract<MixedTypeAnnotation, { type: T }> | Extract<EmptyTypeAnnotation, { type: T }> | Extract<NullableTypeAnnotation, { type: T }> | Extract<NumberLiteralTypeAnnotation, { type: T }> | Extract<NumberTypeAnnotation, { type: T }> | Extract<ObjectTypeAnnotation, { type: T }> | Extract<StringLiteralTypeAnnotation, { type: T }> | Extract<StringTypeAnnotation, { type: T }> | Extract<SymbolTypeAnnotation, { type: T }> | Extract<ThisTypeAnnotation, { type: T }> | Extract<TupleTypeAnnotation, { type: T }> | Extract<TypeofTypeAnnotation, { type: T }> | Extract<UnionTypeAnnotation, { type: T }> | Extract<VoidTypeAnnotation, { type: T }> | Extract<IndexedAccessType, { type: T }> | Extract<OptionalIndexedAccessType, { type: T }> | Extract<TypeParameterInstantiation, { type: T }> | Extract<ClassImplements, { type: T }> | Extract<TypeParameterDeclaration, { type: T }> | Extract<InterfaceExtends, { type: T }> | Extract<DeclaredPredicate, { type: T }> | Extract<FunctionTypeParam, { type: T }> | Extract<InferredPredicate, { type: T }> | Extract<ObjectTypeInternalSlot, { type: T }> | Extract<ObjectTypeCallProperty, { type: T }> | Extract<ObjectTypeIndexer, { type: T }> | Extract<ObjectTypeProperty, { type: T }> | Extract<ObjectTypeSpreadProperty, { type: T }> | Extract<QualifiedTypeIdentifier, { type: T }> | Extract<TypeParameter, { type: T }> | Extract<Variance, { type: T }> | Extract<EnumBooleanBody, { type: T }> | Extract<EnumNumberBody, { type: T }> | Extract<EnumStringBody, { type: T }> | Extract<EnumSymbolBody, { type: T }> | Extract<EnumBooleanMember, { type: T }> | Extract<EnumNumberMember, { type: T }> | Extract<EnumStringMember, { type: T }> | Extract<EnumDefaultedMember, { type: T }> | Extract<JSXIdentifier, { type: T }> | Extract<JSXNamespacedName, { type: T }> | Extract<JSXExpressionContainer, { type: T }> | Extract<JSXAttribute, { type: T }> | Extract<JSXMemberExpression, { type: T }> | Extract<JSXClosingElement, { type: T }> | Extract<JSXOpeningElement, { type: T }> | Extract<JSXText, { type: T }> | Extract<JSXSpreadChild, { type: T }> | Extract<JSXEmptyExpression, { type: T }> | Extract<JSXSpreadAttribute, { type: T }> | Extract<JSXOpeningFragment, { type: T }> | Extract<JSXClosingFragment, { type: T }> | Extract<Placeholder, { type: T }> | Extract<TSTypeParameterDeclaration, { type: T }> | Extract<TSQualifiedName, { type: T }> | Extract<TSCallSignatureDeclaration, { type: T }> | Extract<TSConstructSignatureDeclaration, { type: T }> | Extract<TSPropertySignature, { type: T }> | Extract<TSMethodSignature, { type: T }> | Extract<TSTypeParameterInstantiation, { type: T }> | Extract<TSNamedTupleMember, { type: T }> | Extract<TSTypeParameter, { type: T }> | Extract<TSInterfaceBody, { type: T }> | Extract<TSEnumMember, { type: T }> | Extract<TSEnumBody, { type: T }> | Extract<TSModuleBlock, { type: T }> | Extract<TSExternalModuleReference, { type: T }>; < T extends | 'Identifier' | 'StringLiteral' | 'BlockStatement' | 'ClassBody' | 'ArrayExpression' | 'AssignmentExpression' | 'BinaryExpression' | 'CallExpression' | 'ConditionalExpression' | 'FunctionExpression' | 'NumericLiteral' | 'NullLiteral' | 'BooleanLiteral' | 'RegExpLiteral' | 'LogicalExpression' | 'MemberExpression' | 'NewExpression' | 'ObjectExpression' | 'SequenceExpression' | 'ParenthesizedExpression' | 'ThisExpression' | 'UnaryExpression' | 'UpdateExpression' | 'ArrowFunctionExpression' | 'ClassExpression' | 'ImportExpression' | 'MetaProperty' | 'Super' | 'TaggedTemplateExpression' | 'TemplateLiteral' | 'YieldExpression' | 'AwaitExpression' | 'Import' | 'BigIntLiteral' | 'OptionalMemberExpression' | 'OptionalCallExpression' | 'TypeCastExpression' | 'JSXElement' | 'JSXFragment' | 'BindExpression' | 'DoExpression' | 'RecordExpression' | 'TupleExpression' | 'DecimalLiteral' | 'ModuleExpression' | 'TopicReference' | 'PipelineTopicExpression' | 'PipelineBareFunction' | 'PipelinePrimaryTopicReference' | 'TSInstantiationExpression' | 'TSAsExpression' | 'TSSatisfiesExpression' | 'TSTypeAssertion' | 'TSNonNullExpression' | 'BreakStatement' | 'ContinueStatement' | 'DebuggerStatement' | 'DoWhileStatement' | 'EmptyStatement' | 'ExpressionStatement' | 'ForInStatement' | 'ForStatement' | 'FunctionDeclaration' | 'IfStatement' | 'LabeledStatement' | 'ReturnStatement' | 'SwitchStatement' | 'ThrowStatement' | 'TryStatement' | 'VariableDeclaration' | 'WhileStatement' | 'WithStatement' | 'ClassDeclaration' | 'ExportAllDeclaration' | 'ExportDefaultDeclaration' | 'ExportNamedDeclaration' | 'ForOfStatement' | 'ImportDeclaration' | 'DeclareClass' | 'DeclareFunction' | 'DeclareInterface' | 'DeclareModule' | 'DeclareModuleExports' | 'DeclareTypeAlias' | 'DeclareOpaqueType' | 'DeclareVariable' | 'DeclareExportDeclaration' | 'DeclareExportAllDeclaration' | 'InterfaceDeclaration' | 'OpaqueType' | 'TypeAlias' | 'EnumDeclaration' | 'TSDeclareFunction' | 'TSInterfaceDeclaration' | 'TSTypeAliasDeclaration' | 'TSEnumDeclaration' | 'TSModuleDeclaration' | 'TSImportEqualsDeclaration' | 'TSExportAssignment' | 'TSNamespaceExportDeclaration' | 'Program' | 'ObjectTypeAnnotation' | 'EnumBooleanBody' | 'TSInterfaceBody' | 'TSEnumBody' | 'TSModuleBlock' | 'SpreadElement' | 'RestElement' | 'AssignmentPattern' | 'ArrayPattern' | 'ObjectPattern' | 'TSParameterProperty' | 'PrivateName' | 'InterpreterDirective' | 'DirectiveLiteral' | 'Directive' | 'V8IntrinsicIdentifier' | 'ArgumentPlaceholder' | 'CatchClause' | 'File' | 'ObjectMethod' | 'ObjectProperty' | 'Decorator' | 'SwitchCase' | 'VariableDeclarator' | 'ClassMethod' | 'ClassPrivateMethod' | 'ClassProperty' | 'ClassPrivateProperty' | 'ClassAccessorProperty' | 'TSDeclareMethod' | 'TSIndexSignature' | 'StaticBlock' | 'ExportSpecifier' | 'ExportDefaultSpecifier' | 'ExportNamespaceSpecifier' | 'ImportSpecifier' | 'ImportDefaultSpecifier' | 'ImportNamespaceSpecifier' | 'TemplateElement' | 'TSAnyKeyword' | 'TSBooleanKeyword' | 'TSBigIntKeyword' | 'TSIntrinsicKeyword' | 'TSNeverKeyword' | 'TSNullKeyword' | 'TSNumberKeyword' | 'TSObjectKeyword' | 'TSStringKeyword' | 'TSSymbolKeyword' | 'TSUndefinedKeyword' | 'TSUnknownKeyword' | 'TSVoidKeyword' | 'TSThisType' | 'TSFunctionType' | 'TSConstructorType' | 'TSTypeReference' | 'TSTypePredicate' | 'TSTypeQuery' | 'TSTypeLiteral' | 'TSArrayType' | 'TSTupleType' | 'TSOptionalType' | 'TSRestType' | 'TSUnionType' | 'TSIntersectionType' | 'TSConditionalType' | 'TSInferType' | 'TSParenthesizedType' | 'TSTypeOperator' | 'TSIndexedAccessType' | 'TSMappedType' | 'TSTemplateLiteralType' | 'TSLiteralType' | 'TSExpressionWithTypeArguments' | 'TSImportType' | 'TypeAnnotation' | 'TSTypeAnnotation' | 'Noop' | 'ImportAttribute' | 'AnyTypeAnnotation' | 'ArrayTypeAnnotation' | 'BooleanTypeAnnotation' | 'BooleanLiteralTypeAnnotation' | 'NullLiteralTypeAnnotation' | 'ExistsTypeAnnotation' | 'FunctionTypeAnnotation' | 'GenericTypeAnnotation' | 'InterfaceTypeAnnotation' | 'IntersectionTypeAnnotation' | 'MixedTypeAnnotation' | 'EmptyTypeAnnotation' | 'NullableTypeAnnotation' | 'NumberLiteralTypeAnnotation' | 'NumberTypeAnnotation' | 'StringLiteralTypeAnnotation' | 'StringTypeAnnotation' | 'SymbolTypeAnnotation' | 'ThisTypeAnnotation' | 'TupleTypeAnnotation' | 'TypeofTypeAnnotation' | 'UnionTypeAnnotation' | 'VoidTypeAnnotation' | 'IndexedAccessType' | 'OptionalIndexedAccessType' | 'TypeParameterInstantiation' | 'ClassImplements' | 'TypeParameterDeclaration' | 'InterfaceExtends' | 'DeclaredPredicate' | 'FunctionTypeParam' | 'InferredPredicate' | 'ObjectTypeInternalSlot' | 'ObjectTypeCallProperty' | 'ObjectTypeIndexer' | 'ObjectTypeProperty' | 'ObjectTypeSpreadProperty' | 'QualifiedTypeIdentifier' | 'TypeParameter' | 'Variance' | 'EnumNumberBody' | 'EnumStringBody' | 'EnumSymbolBody' | 'EnumBooleanMember' | 'EnumNumberMember' | 'EnumStringMember' | 'EnumDefaultedMember' | 'JSXIdentifier' | 'JSXNamespacedName' | 'JSXExpressionContainer' | 'JSXAttribute' | 'JSXMemberExpression' | 'JSXClosingElement' | 'JSXOpeningElement' | 'JSXText' | 'JSXSpreadChild' | 'JSXEmptyExpression' | 'JSXSpreadAttribute' | 'JSXOpeningFragment' | 'JSXClosingFragment' | 'Placeholder' | 'TSTypeParameterDeclaration' | 'TSQualifiedName' | 'TSCallSignatureDeclaration' | 'TSConstructSignatureDeclaration' | 'TSPropertySignature' | 'TSMethodSignature' | 'TSTypeParameterInstantiation' | 'TSNamedTupleMember' | 'TSTypeParameter' | 'TSEnumMember' | 'TSExternalModuleReference', P extends | Extract<ArrayExpression, { type: T }> | Extract<AssignmentExpression, { type: T }> | Extract<BinaryExpression, { type: T }> | Extract<CallExpression, { type: T }> | Extract<ConditionalExpression, { type: T }> | Extract<FunctionExpression, { type: T }> | Extract<Identifier, { type: T }> | Extract<StringLiteral, { type: T }> | Extract<NumericLiteral, { type: T }> | Extract<NullLiteral, { type: T }> | Extract<BooleanLiteral, { type: T }> | Extract<RegExpLiteral, { type: T }> | Extract<LogicalExpression, { type: T }> | Extract<MemberExpression, { type: T }> | Extract<NewExpression, { type: T }> | Extract<ObjectExpression, { type: T }> | Extract<SequenceExpression, { type: T }> | Extract<ParenthesizedExpression, { type: T }> | Extract<ThisExpression, { type: T }> | Extract<UnaryExpression, { type: T }> | Extract<UpdateExpression, { type: T }> | Extract<ArrowFunctionExpression, { type: T }> | Extract<ClassExpression, { type: T }> | Extract<ImportExpression, { type: T }> | Extract<MetaProperty, { type: T }> | Extract<Super, { type: T }> | Extract<TaggedTemplateExpression, { type: T }> | Extract<TemplateLiteral, { type: T }> | Extract<YieldExpression, { type: T }> | Extract<AwaitExpression, { type: T }> | Extract<Import, { type: T }> | Extract<BigIntLiteral, { type: T }> | Extract<OptionalMemberExpression, { type: T }> | Extract<OptionalCallExpression, { type: T }> | Extract<TypeCastExpression, { type: T }> | Extract<JSXElement, { type: T }> | Extract<JSXFragment, { type: T }> | Extract<BindExpression, { type: T }> | Extract<DoExpression, { type: T }> | Extract<RecordExpression, { type: T }> | Extract<TupleExpression, { type: T }> | Extract<DecimalLiteral, { type: T }> | Extract<ModuleExpression, { type: T }> | Extract<TopicReference, { type: T }> | Extract<PipelineTopicExpression, { type: T }> | Extract<PipelineBareFunction, { type: T }> | Extract<PipelinePrimaryTopicReference, { type: T }> | Extract<TSInstantiationExpression, { type: T }> | Extract<TSAsExpression, { type: T }> | Extract<TSSatisfiesExpression, { type: T }> | Extract<TSTypeAssertion, { type: T }> | Extract<TSNonNullExpression, { type: T }> | Extract<SpreadElement, { type: T }> | Extract<RestElement, { type: T }> | Extract<AssignmentPattern, { type: T }> | Extract<ArrayPattern, { type: T }> | Extract<ObjectPattern, { type: T }> | Extract<TSParameterProperty, { type: T }> | Extract<PrivateName, { type: T }> | Extract<InterpreterDirective, { type: T }> | Extract<DirectiveLiteral, { type: T }> | Extract<Directive, { type: T }> | Extract<BlockStatement, { type: T }> | Extract<BreakStatement, { type: T }> | Extract<ContinueStatement, { type: T }> | Extract<DebuggerStatement, { type: T }> | Extract<DoWhileStatement, { type: T }> | Extract<EmptyStatement, { type: T }> | Extract<ExpressionStatement, { type: T }> | Extract<ForInStatement, { type: T }> | Extract<ForStatement, { type: T }> | Extract<FunctionDeclaration, { type: T }> | Extract<IfStatement, { type: T }> | Extract<LabeledStatement, { type: T }> | Extract<ReturnStatement, { type: T }> | Extract<SwitchStatement, { type: T }> | Extract<ThrowStatement, { type: T }> | Extract<TryStatement, { type: T }> | Extract<VariableDeclaration, { type: T }> | Extract<WhileStatement, { type: T }> | Extract<WithStatement, { type: T }> | Extract<ClassDeclaration, { type: T }> | Extract<ExportAllDeclaration, { type: T }> | Extract<ExportDefaultDeclaration, { type: T }> | Extract<ExportNamedDeclaration, { type: T }> | Extract<ForOfStatement, { type: T }> | Extract<ImportDeclaration, { type: T }> | Extract<DeclareClass, { type: T }> | Extract<DeclareFunction, { type: T }> | Extract<DeclareInterface, { type: T }> | Extract<DeclareModule, { type: T }> | Extract<DeclareModuleExports, { type: T }> | Extract<DeclareTypeAlias, { type: T }> | Extract<DeclareOpaqueType, { type: T }> | Extract<DeclareVariable, { type: T }> | Extract<DeclareExportDeclaration, { type: T }> | Extract<DeclareExportAllDeclaration, { type: T }> | Extract<InterfaceDeclaration, { type: T }> | Extract<OpaqueType, { type: T }> | Extract<TypeAlias, { type: T }> | Extract<EnumDeclaration, { type: T }> | Extract<TSDeclareFunction, { type: T }> | Extract<TSInterfaceDeclaration, { type: T }> | Extract<TSTypeAliasDeclaration, { type: T }> | Extract<TSEnumDeclaration, { type: T }> | Extract<TSModuleDeclaration, { type: T }> | Extract<TSImportEqualsDeclaration, { type: T }> | Extract<TSExportAssignment, { type: T }> | Extract<TSNamespaceExportDeclaration, { type: T }> | Extract<V8IntrinsicIdentifier, { type: T }> | Extract<ArgumentPlaceholder, { type: T }> | Extract<CatchClause, { type: T }> | Extract<Program, { type: T }> | Extract<File, { type: T }> | Extract<ObjectMethod, { type: T }> | Extract<ObjectProperty, { type: T }> | Extract<Decorator, { type: T }> | Extract<SwitchCase, { type: T }> | Extract<VariableDeclarator, { type: T }> | Extract<ClassMethod, { type: T }> | Extract<ClassPrivateMethod, { type: T }> | Extract<ClassProperty, { type: T }> | Extract<ClassPrivateProperty, { type: T }> | Extract<ClassAccessorProperty, { type: T }> | Extract<TSDeclareMethod, { type: T }> | Extract<TSIndexSignature, { type: T }> | Extract<StaticBlock, { type: T }> | Extract<ClassBody, { type: T }> | Extract<ExportSpecifier, { type: T }> | Extract<ExportDefaultSpecifier, { type: T }> | Extract<ExportNamespaceSpecifier, { type: T }> | Extract<ImportSpecifier, { type: T }> | Extract<ImportDefaultSpecifier, { type: T }> | Extract<ImportNamespaceSpecifier, { type: T }> | Extract<TemplateElement, { type: T }> | Extract<TSAnyKeyword, { type: T }> | Extract<TSBooleanKeyword, { type: T }> | Extract<TSBigIntKeyword, { type: T }> | Extract<TSIntrinsicKeyword, { type: T }> | Extract<TSNeverKeyword, { type: T }> | Extract<TSNullKeyword, { type: T }> | Extract<TSNumberKeyword, { type: T }> | Extract<TSObjectKeyword, { type: T }> | Extract<TSStringKeyword, { type: T }> | Extract<TSSymbolKeyword, { type: T }> | Extract<TSUndefinedKeyword, { type: T }> | Extract<TSUnknownKeyword, { type: T }> | Extract<TSVoidKeyword, { type: T }> | Extract<TSThisType, { type: T }> | Extract<TSFunctionType, { type: T }> | Extract<TSConstructorType, { type: T }> | Extract<TSTypeReference, { type: T }> | Extract<TSTypePredicate, { type: T }> | Extract<TSTypeQuery, { type: T }> | Extract<TSTypeLiteral, { type: T }> | Extract<TSArrayType, { type: T }> | Extract<TSTupleType, { type: T }> | Extract<TSOptionalType, { type: T }> | Extract<TSRestType, { type: T }> | Extract<TSUnionType, { type: T }> | Extract<TSIntersectionType, { type: T }> | Extract<TSConditionalType, { type: T }> | Extract<TSInferType, { type: T }> | Extract<TSParenthesizedType, { type: T }> | Extract<TSTypeOperator, { type: T }> | Extract<TSIndexedAccessType, { type: T }> | Extract<TSMappedType, { type: T }> | Extract<TSTemplateLiteralType, { type: T }> | Extract<TSLiteralType, { type: T }> | Extract<TSExpressionWithTypeArguments, { type: T }> | Extract<TSImportType, { type: T }> | Extract<TypeAnnotation, { type: T }> | Extract<TSTypeAnnotation, { type: T }> | Extract<Noop, { type: T }> | Extract<ImportAttribute, { type: T }> | Extract<AnyTypeAnnotation, { type: T }> | Extract<ArrayTypeAnnotation, { type: T }> | Extract<BooleanTypeAnnotation, { type: T }> | Extract<BooleanLiteralTypeAnnotation, { type: T }> | Extract<NullLiteralTypeAnnotation, { type: T }> | Extract<ExistsTypeAnnotation, { type: T }> | Extract<FunctionTypeAnnotation, { type: T }> | Extract<GenericTypeAnnotation, { type: T }> | Extract<InterfaceTypeAnnotation, { type: T }> | Extract<IntersectionTypeAnnotation, { type: T }> | Extract<MixedTypeAnnotation, { type: T }> | Extract<EmptyTypeAnnotation, { type: T }> | Extract<NullableTypeAnnotation, { type: T }> | Extract<NumberLiteralTypeAnnotation, { type: T }> | Extract<NumberTypeAnnotation, { type: T }> | Extract<ObjectTypeAnnotation, { type: T }> | Extract<StringLiteralTypeAnnotation, { type: T }> | Extract<StringTypeAnnotation, { type: T }> | Extract<SymbolTypeAnnotation, { type: T }> | Extract<ThisTypeAnnotation, { type: T }> | Extract<TupleTypeAnnotation, { type: T }> | Extract<TypeofTypeAnnotation, { type: T }> | Extract<UnionTypeAnnotation, { type: T }> | Extract<VoidTypeAnnotation, { type: T }> | Extract<IndexedAccessType, { type: T }> | Extract<OptionalIndexedAccessType, { type: T }> | Extract<TypeParameterInstantiation, { type: T }> | Extract<ClassImplements, { type: T }> | Extract<TypeParameterDeclaration, { type: T }> | Extract<InterfaceExtends, { type: T }> | Extract<DeclaredPredicate, { type: T }> | Extract<FunctionTypeParam, { type: T }> | Extract<InferredPredicate, { type: T }> | Extract<ObjectTypeInternalSlot, { type: T }> | Extract<ObjectTypeCallProperty, { type: T }> | Extract<ObjectTypeIndexer, { type: T }> | Extract<ObjectTypeProperty, { type: T }> | Extract<ObjectTypeSpreadProperty, { type: T }> | Extract<QualifiedTypeIdentifier, { type: T }> | Extract<TypeParameter, { type: T }> | Extract<Variance, { type: T }> | Extract<EnumBooleanBody, { type: T }> | Extract<EnumNumberBody, { type: T }> | Extract<EnumStringBody, { type: T }> | Extract<EnumSymbolBody, { type: T }> | Extract<EnumBooleanMember, { type: T }> | Extract<EnumNumberMember, { type: T }> | Extract<EnumStringMember, { type: T }> | Extract<EnumDefaultedMember, { type: T }> | Extract<JSXIdentifier, { type: T }> | Extract<JSXNamespacedName, { type: T }> | Extract<JSXExpressionContainer, { type: T }> | Extract<JSXAttribute, { type: T }> | Extract<JSXMemberExpression, { type: T }> | Extract<JSXClosingElement, { type: T }> | Extract<JSXOpeningElement, { type: T }> | Extract<JSXText, { type: T }> | Extract<JSXSpreadChild, { type: T }> | Extract<JSXEmptyExpression, { type: T }> | Extract<JSXSpreadAttribute, { type: T }> | Extract<JSXOpeningFragment, { type: T }> | Extract<JSXClosingFragment, { type: T }> | Extract<Placeholder, { type: T }> | Extract<TSTypeParameterDeclaration, { type: T }> | Extract<TSQualifiedName, { type: T }> | Extract<TSCallSignatureDeclaration, { type: T }> | Extract<TSConstructSignatureDeclaration, { type: T }> | Extract<TSPropertySignature, { type: T }> | Extract<TSMethodSignature, { type: T }> | Extract<TSTypeParameterInstantiation, { type: T }> | Extract<TSNamedTupleMember, { type: T }> | Extract<TSTypeParameter, { type: T }> | Extract<TSInterfaceBody, { type: T }> | Extract<TSEnumMember, { type: T }> | Extract<TSEnumBody, { type: T }> | Extract<TSModuleBlock, { type: T }> | Extract<TSExternalModuleReference, { type: T }> >( type: T, n: Node, required: Partial<P> ): n is P; <P extends Node>(type: string, n: Node, required: Partial<P>): n is P; (type: string, n: Node, required?: Partial<Node>): n is Node;};
function isAccessor
isAccessor: ( node: object | null | undefined, opts?: object | null) => node is ClassAccessorProperty;
function isAnyTypeAnnotation
isAnyTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is AnyTypeAnnotation;
function isArgumentPlaceholder
isArgumentPlaceholder: ( node: object | null | undefined, opts?: object | null) => node is ArgumentPlaceholder;
function isArrayExpression
isArrayExpression: ( node: object | null | undefined, opts?: object | null) => node is ArrayExpression;
function isArrayPattern
isArrayPattern: ( node: object | null | undefined, opts?: object | null) => node is ArrayPattern;
function isArrayTypeAnnotation
isArrayTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is ArrayTypeAnnotation;
function isArrowFunctionExpression
isArrowFunctionExpression: ( node: object | null | undefined, opts?: object | null) => node is ArrowFunctionExpression;
function isAssignmentExpression
isAssignmentExpression: ( node: object | null | undefined, opts?: object | null) => node is AssignmentExpression;
function isAssignmentPattern
isAssignmentPattern: ( node: object | null | undefined, opts?: object | null) => node is AssignmentPattern;
function isAwaitExpression
isAwaitExpression: ( node: object | null | undefined, opts?: object | null) => node is AwaitExpression;
function isBigIntLiteral
isBigIntLiteral: ( node: object | null | undefined, opts?: object | null) => node is BigIntLiteral;
function isBinary
isBinary: ( node: object | null | undefined, opts?: object | null) => node is Binary;
function isBinaryExpression
isBinaryExpression: ( node: object | null | undefined, opts?: object | null) => node is BinaryExpression;
function isBindExpression
isBindExpression: ( node: object | null | undefined, opts?: object | null) => node is BindExpression;
function isBinding
isBinding: (node: Node, parent: Node, grandparent?: Node) => boolean;
function isBlock
isBlock: ( node: object | null | undefined, opts?: object | null) => node is Block;
function isBlockParent
isBlockParent: ( node: object | null | undefined, opts?: object | null) => node is BlockParent;
function isBlockScoped
isBlockScoped: ( node: Node) => node is FunctionDeclaration | VariableDeclaration | ClassDeclaration;
function isBlockStatement
isBlockStatement: ( node: object | null | undefined, opts?: object | null) => node is BlockStatement;
function isBooleanLiteral
isBooleanLiteral: ( node: object | null | undefined, opts?: object | null) => node is BooleanLiteral;
function isBooleanLiteralTypeAnnotation
isBooleanLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is BooleanLiteralTypeAnnotation;
function isBooleanTypeAnnotation
isBooleanTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is BooleanTypeAnnotation;
function isBreakStatement
isBreakStatement: ( node: object | null | undefined, opts?: object | null) => node is BreakStatement;
function isCallExpression
isCallExpression: ( node: object | null | undefined, opts?: object | null) => node is CallExpression;
function isCatchClause
isCatchClause: ( node: object | null | undefined, opts?: object | null) => node is CatchClause;
function isClass
isClass: ( node: object | null | undefined, opts?: object | null) => node is Class;
function isClassAccessorProperty
isClassAccessorProperty: ( node: object | null | undefined, opts?: object | null) => node is ClassAccessorProperty;
function isClassBody
isClassBody: ( node: object | null | undefined, opts?: object | null) => node is ClassBody;
function isClassDeclaration
isClassDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ClassDeclaration;
function isClassExpression
isClassExpression: ( node: object | null | undefined, opts?: object | null) => node is ClassExpression;
function isClassImplements
isClassImplements: ( node: object | null | undefined, opts?: object | null) => node is ClassImplements;
function isClassMethod
isClassMethod: ( node: object | null | undefined, opts?: object | null) => node is ClassMethod;
function isClassPrivateMethod
isClassPrivateMethod: ( node: object | null | undefined, opts?: object | null) => node is ClassPrivateMethod;
function isClassPrivateProperty
isClassPrivateProperty: ( node: object | null | undefined, opts?: object | null) => node is ClassPrivateProperty;
function isClassProperty
isClassProperty: ( node: object | null | undefined, opts?: object | null) => node is ClassProperty;
function isCompletionStatement
isCompletionStatement: ( node: object | null | undefined, opts?: object | null) => node is CompletionStatement;
function isConditional
isConditional: ( node: object | null | undefined, opts?: object | null) => node is Conditional;
function isConditionalExpression
isConditionalExpression: ( node: object | null | undefined, opts?: object | null) => node is ConditionalExpression;
function isContinueStatement
isContinueStatement: ( node: object | null | undefined, opts?: object | null) => node is ContinueStatement;
function isDebuggerStatement
isDebuggerStatement: ( node: object | null | undefined, opts?: object | null) => node is DebuggerStatement;
function isDecimalLiteral
isDecimalLiteral: ( node: object | null | undefined, opts?: object | null) => node is DecimalLiteral;
function isDeclaration
isDeclaration: ( node: object | null | undefined, opts?: object | null) => node is Declaration;
function isDeclareClass
isDeclareClass: ( node: object | null | undefined, opts?: object | null) => node is DeclareClass;
function isDeclaredPredicate
isDeclaredPredicate: ( node: object | null | undefined, opts?: object | null) => node is DeclaredPredicate;
function isDeclareExportAllDeclaration
isDeclareExportAllDeclaration: ( node: object | null | undefined, opts?: object | null) => node is DeclareExportAllDeclaration;
function isDeclareExportDeclaration
isDeclareExportDeclaration: ( node: object | null | undefined, opts?: object | null) => node is DeclareExportDeclaration;
function isDeclareFunction
isDeclareFunction: ( node: object | null | undefined, opts?: object | null) => node is DeclareFunction;
function isDeclareInterface
isDeclareInterface: ( node: object | null | undefined, opts?: object | null) => node is DeclareInterface;
function isDeclareModule
isDeclareModule: ( node: object | null | undefined, opts?: object | null) => node is DeclareModule;
function isDeclareModuleExports
isDeclareModuleExports: ( node: object | null | undefined, opts?: object | null) => node is DeclareModuleExports;
function isDeclareOpaqueType
isDeclareOpaqueType: ( node: object | null | undefined, opts?: object | null) => node is DeclareOpaqueType;
function isDeclareTypeAlias
isDeclareTypeAlias: ( node: object | null | undefined, opts?: object | null) => node is DeclareTypeAlias;
function isDeclareVariable
isDeclareVariable: ( node: object | null | undefined, opts?: object | null) => node is DeclareVariable;
function isDecorator
isDecorator: ( node: object | null | undefined, opts?: object | null) => node is Decorator;
function isDirective
isDirective: ( node: object | null | undefined, opts?: object | null) => node is Directive;
function isDirectiveLiteral
isDirectiveLiteral: ( node: object | null | undefined, opts?: object | null) => node is DirectiveLiteral;
function isDoExpression
isDoExpression: ( node: object | null | undefined, opts?: object | null) => node is DoExpression;
function isDoWhileStatement
isDoWhileStatement: ( node: object | null | undefined, opts?: object | null) => node is DoWhileStatement;
function isEmptyStatement
isEmptyStatement: ( node: object | null | undefined, opts?: object | null) => node is EmptyStatement;
function isEmptyTypeAnnotation
isEmptyTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is EmptyTypeAnnotation;
function isEnumBody
isEnumBody: ( node: object | null | undefined, opts?: object | null) => node is EnumBody;
function isEnumBooleanBody
isEnumBooleanBody: ( node: object | null | undefined, opts?: object | null) => node is EnumBooleanBody;
function isEnumBooleanMember
isEnumBooleanMember: ( node: object | null | undefined, opts?: object | null) => node is EnumBooleanMember;
function isEnumDeclaration
isEnumDeclaration: ( node: object | null | undefined, opts?: object | null) => node is EnumDeclaration;
function isEnumDefaultedMember
isEnumDefaultedMember: ( node: object | null | undefined, opts?: object | null) => node is EnumDefaultedMember;
function isEnumMember
isEnumMember: ( node: object | null | undefined, opts?: object | null) => node is EnumMember;
function isEnumNumberBody
isEnumNumberBody: ( node: object | null | undefined, opts?: object | null) => node is EnumNumberBody;
function isEnumNumberMember
isEnumNumberMember: ( node: object | null | undefined, opts?: object | null) => node is EnumNumberMember;
function isEnumStringBody
isEnumStringBody: ( node: object | null | undefined, opts?: object | null) => node is EnumStringBody;
function isEnumStringMember
isEnumStringMember: ( node: object | null | undefined, opts?: object | null) => node is EnumStringMember;
function isEnumSymbolBody
isEnumSymbolBody: ( node: object | null | undefined, opts?: object | null) => node is EnumSymbolBody;
function isExistsTypeAnnotation
isExistsTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is ExistsTypeAnnotation;
function isExportAllDeclaration
isExportAllDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ExportAllDeclaration;
function isExportDeclaration
isExportDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ExportDeclaration;
function isExportDefaultDeclaration
isExportDefaultDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ExportDefaultDeclaration;
function isExportDefaultSpecifier
isExportDefaultSpecifier: ( node: object | null | undefined, opts?: object | null) => node is ExportDefaultSpecifier;
function isExportNamedDeclaration
isExportNamedDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ExportNamedDeclaration;
function isExportNamespaceSpecifier
isExportNamespaceSpecifier: ( node: object | null | undefined, opts?: object | null) => node is ExportNamespaceSpecifier;
function isExportSpecifier
isExportSpecifier: ( node: object | null | undefined, opts?: object | null) => node is ExportSpecifier;
function isExpression
isExpression: ( node: object | null | undefined, opts?: object | null) => node is Expression;
function isExpressionStatement
isExpressionStatement: ( node: object | null | undefined, opts?: object | null) => node is ExpressionStatement;
function isExpressionWrapper
isExpressionWrapper: ( node: object | null | undefined, opts?: object | null) => node is ExpressionWrapper;
function isFile
isFile: (node: object | null | undefined, opts?: object | null) => node is File;
function isFlow
isFlow: (node: object | null | undefined, opts?: object | null) => node is Flow;
function isFlowBaseAnnotation
isFlowBaseAnnotation: ( node: object | null | undefined, opts?: object | null) => node is FlowBaseAnnotation;
function isFlowDeclaration
isFlowDeclaration: ( node: object | null | undefined, opts?: object | null) => node is FlowDeclaration;
function isFlowPredicate
isFlowPredicate: ( node: object | null | undefined, opts?: object | null) => node is FlowPredicate;
function isFlowType
isFlowType: ( node: object | null | undefined, opts?: object | null) => node is FlowType;
function isFor
isFor: (node: object | null | undefined, opts?: object | null) => node is For;
function isForInStatement
isForInStatement: ( node: object | null | undefined, opts?: object | null) => node is ForInStatement;
function isForOfStatement
isForOfStatement: ( node: object | null | undefined, opts?: object | null) => node is ForOfStatement;
function isForStatement
isForStatement: ( node: object | null | undefined, opts?: object | null) => node is ForStatement;
function isForXStatement
isForXStatement: ( node: object | null | undefined, opts?: object | null) => node is ForXStatement;
function isFunction
isFunction: ( node: object | null | undefined, opts?: object | null) => node is Function;
function isFunctionDeclaration
isFunctionDeclaration: ( node: object | null | undefined, opts?: object | null) => node is FunctionDeclaration;
function isFunctionExpression
isFunctionExpression: ( node: object | null | undefined, opts?: object | null) => node is FunctionExpression;
function isFunctionParent
isFunctionParent: ( node: object | null | undefined, opts?: object | null) => node is FunctionParent;
function isFunctionTypeAnnotation
isFunctionTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is FunctionTypeAnnotation;
function isFunctionTypeParam
isFunctionTypeParam: ( node: object | null | undefined, opts?: object | null) => node is FunctionTypeParam;
function isGenericTypeAnnotation
isGenericTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is GenericTypeAnnotation;
function isIdentifier
isIdentifier: ( node: object | null | undefined, opts?: object | null) => node is Identifier;
function isIfStatement
isIfStatement: ( node: object | null | undefined, opts?: object | null) => node is IfStatement;
function isImmutable
isImmutable: { (node: object | null | undefined, opts?: object | null): node is Immutable; (node: Node): node is Immutable;};
function isImport
isImport: ( node: object | null | undefined, opts?: object | null) => node is Import;
function isImportAttribute
isImportAttribute: ( node: object | null | undefined, opts?: object | null) => node is ImportAttribute;
function isImportDeclaration
isImportDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ImportDeclaration;
function isImportDefaultSpecifier
isImportDefaultSpecifier: ( node: object | null | undefined, opts?: object | null) => node is ImportDefaultSpecifier;
function isImportExpression
isImportExpression: ( node: object | null | undefined, opts?: object | null) => node is ImportExpression;
function isImportNamespaceSpecifier
isImportNamespaceSpecifier: ( node: object | null | undefined, opts?: object | null) => node is ImportNamespaceSpecifier;
function isImportOrExportDeclaration
isImportOrExportDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ImportOrExportDeclaration;
function isImportSpecifier
isImportSpecifier: ( node: object | null | undefined, opts?: object | null) => node is ImportSpecifier;
function isIndexedAccessType
isIndexedAccessType: ( node: object | null | undefined, opts?: object | null) => node is IndexedAccessType;
function isInferredPredicate
isInferredPredicate: ( node: object | null | undefined, opts?: object | null) => node is InferredPredicate;
function isInterfaceDeclaration
isInterfaceDeclaration: ( node: object | null | undefined, opts?: object | null) => node is InterfaceDeclaration;
function isInterfaceExtends
isInterfaceExtends: ( node: object | null | undefined, opts?: object | null) => node is InterfaceExtends;
function isInterfaceTypeAnnotation
isInterfaceTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is InterfaceTypeAnnotation;
function isInterpreterDirective
isInterpreterDirective: ( node: object | null | undefined, opts?: object | null) => node is InterpreterDirective;
function isIntersectionTypeAnnotation
isIntersectionTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is IntersectionTypeAnnotation;
function isJSX
isJSX: (node: object | null | undefined, opts?: object | null) => node is JSX;
function isJSXAttribute
isJSXAttribute: ( node: object | null | undefined, opts?: object | null) => node is JSXAttribute;
function isJSXClosingElement
isJSXClosingElement: ( node: object | null | undefined, opts?: object | null) => node is JSXClosingElement;
function isJSXClosingFragment
isJSXClosingFragment: ( node: object | null | undefined, opts?: object | null) => node is JSXClosingFragment;
function isJSXElement
isJSXElement: ( node: object | null | undefined, opts?: object | null) => node is JSXElement;
function isJSXEmptyExpression
isJSXEmptyExpression: ( node: object | null | undefined, opts?: object | null) => node is JSXEmptyExpression;
function isJSXExpressionContainer
isJSXExpressionContainer: ( node: object | null | undefined, opts?: object | null) => node is JSXExpressionContainer;
function isJSXFragment
isJSXFragment: ( node: object | null | undefined, opts?: object | null) => node is JSXFragment;
function isJSXIdentifier
isJSXIdentifier: ( node: object | null | undefined, opts?: object | null) => node is JSXIdentifier;
function isJSXMemberExpression
isJSXMemberExpression: ( node: object | null | undefined, opts?: object | null) => node is JSXMemberExpression;
function isJSXNamespacedName
isJSXNamespacedName: ( node: object | null | undefined, opts?: object | null) => node is JSXNamespacedName;
function isJSXOpeningElement
isJSXOpeningElement: ( node: object | null | undefined, opts?: object | null) => node is JSXOpeningElement;
function isJSXOpeningFragment
isJSXOpeningFragment: ( node: object | null | undefined, opts?: object | null) => node is JSXOpeningFragment;
function isJSXSpreadAttribute
isJSXSpreadAttribute: ( node: object | null | undefined, opts?: object | null) => node is JSXSpreadAttribute;
function isJSXSpreadChild
isJSXSpreadChild: ( node: object | null | undefined, opts?: object | null) => node is JSXSpreadChild;
function isJSXText
isJSXText: ( node: object | null | undefined, opts?: object | null) => node is JSXText;
function isLabeledStatement
isLabeledStatement: ( node: object | null | undefined, opts?: object | null) => node is LabeledStatement;
function isLet
isLet: (node: Node) => node is VariableDeclaration;
function isLiteral
isLiteral: ( node: object | null | undefined, opts?: object | null) => node is Literal;
function isLogicalExpression
isLogicalExpression: ( node: object | null | undefined, opts?: object | null) => node is LogicalExpression;
function isLoop
isLoop: (node: object | null | undefined, opts?: object | null) => node is Loop;
function isLVal
isLVal: (node: object | null | undefined, opts?: object | null) => node is LVal;
function isMemberExpression
isMemberExpression: ( node: object | null | undefined, opts?: object | null) => node is MemberExpression;
function isMetaProperty
isMetaProperty: ( node: object | null | undefined, opts?: object | null) => node is MetaProperty;
function isMethod
isMethod: ( node: object | null | undefined, opts?: object | null) => node is Method;
function isMiscellaneous
isMiscellaneous: ( node: object | null | undefined, opts?: object | null) => node is Miscellaneous;
function isMixedTypeAnnotation
isMixedTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is MixedTypeAnnotation;
function isModuleDeclaration
isModuleDeclaration: ( node: object | null | undefined, opts?: object | null) => node is ModuleDeclaration;
function isModuleExpression
isModuleExpression: ( node: object | null | undefined, opts?: object | null) => node is ModuleExpression;
function isModuleSpecifier
isModuleSpecifier: ( node: object | null | undefined, opts?: object | null) => node is ModuleSpecifier;
function isNewExpression
isNewExpression: ( node: object | null | undefined, opts?: object | null) => node is NewExpression;
function isNode
isNode: (node: object | null | undefined) => node is Node;
function isNodesEquivalent
isNodesEquivalent: { <T extends Partial<Node>>(a: T, b: any): b is T; (a: any, b: any): boolean;};
function isNoop
isNoop: (node: object | null | undefined, opts?: object | null) => node is Noop;
function isNullableTypeAnnotation
isNullableTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is NullableTypeAnnotation;
function isNullLiteral
isNullLiteral: ( node: object | null | undefined, opts?: object | null) => node is NullLiteral;
function isNullLiteralTypeAnnotation
isNullLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is NullLiteralTypeAnnotation;
function isNumberLiteral
isNumberLiteral: ( node: object | null | undefined, opts?: object | null) => node is NumericLiteral;
Deprecated
Use
isNumericLiteral
function isNumberLiteralTypeAnnotation
isNumberLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is NumberLiteralTypeAnnotation;
function isNumberTypeAnnotation
isNumberTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is NumberTypeAnnotation;
function isNumericLiteral
isNumericLiteral: ( node: object | null | undefined, opts?: object | null) => node is NumericLiteral;
function isObjectExpression
isObjectExpression: ( node: object | null | undefined, opts?: object | null) => node is ObjectExpression;
function isObjectMember
isObjectMember: ( node: object | null | undefined, opts?: object | null) => node is ObjectMember;
function isObjectMethod
isObjectMethod: ( node: object | null | undefined, opts?: object | null) => node is ObjectMethod;
function isObjectPattern
isObjectPattern: ( node: object | null | undefined, opts?: object | null) => node is ObjectPattern;
function isObjectProperty
isObjectProperty: ( node: object | null | undefined, opts?: object | null) => node is ObjectProperty;
function isObjectTypeAnnotation
isObjectTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is ObjectTypeAnnotation;
function isObjectTypeCallProperty
isObjectTypeCallProperty: ( node: object | null | undefined, opts?: object | null) => node is ObjectTypeCallProperty;
function isObjectTypeIndexer
isObjectTypeIndexer: ( node: object | null | undefined, opts?: object | null) => node is ObjectTypeIndexer;
function isObjectTypeInternalSlot
isObjectTypeInternalSlot: ( node: object | null | undefined, opts?: object | null) => node is ObjectTypeInternalSlot;
function isObjectTypeProperty
isObjectTypeProperty: ( node: object | null | undefined, opts?: object | null) => node is ObjectTypeProperty;
function isObjectTypeSpreadProperty
isObjectTypeSpreadProperty: ( node: object | null | undefined, opts?: object | null) => node is ObjectTypeSpreadProperty;
function isOpaqueType
isOpaqueType: ( node: object | null | undefined, opts?: object | null) => node is OpaqueType;
function isOptionalCallExpression
isOptionalCallExpression: ( node: object | null | undefined, opts?: object | null) => node is OptionalCallExpression;
function isOptionalIndexedAccessType
isOptionalIndexedAccessType: ( node: object | null | undefined, opts?: object | null) => node is OptionalIndexedAccessType;
function isOptionalMemberExpression
isOptionalMemberExpression: ( node: object | null | undefined, opts?: object | null) => node is OptionalMemberExpression;
function isParenthesizedExpression
isParenthesizedExpression: ( node: object | null | undefined, opts?: object | null) => node is ParenthesizedExpression;
function isPattern
isPattern: ( node: object | null | undefined, opts?: object | null) => node is Pattern;
function isPatternLike
isPatternLike: ( node: object | null | undefined, opts?: object | null) => node is PatternLike;
function isPipelineBareFunction
isPipelineBareFunction: ( node: object | null | undefined, opts?: object | null) => node is PipelineBareFunction;
function isPipelinePrimaryTopicReference
isPipelinePrimaryTopicReference: ( node: object | null | undefined, opts?: object | null) => node is PipelinePrimaryTopicReference;
function isPipelineTopicExpression
isPipelineTopicExpression: ( node: object | null | undefined, opts?: object | null) => node is PipelineTopicExpression;
function isPlaceholder
isPlaceholder: ( node: object | null | undefined, opts?: object | null) => node is Placeholder;
function isPlaceholderType
isPlaceholderType: ( placeholderType: Node['type'], targetType: Node['type']) => boolean;
function isPrivate
isPrivate: ( node: object | null | undefined, opts?: object | null) => node is Private;
function isPrivateName
isPrivateName: ( node: object | null | undefined, opts?: object | null) => node is PrivateName;
function isProgram
isProgram: ( node: object | null | undefined, opts?: object | null) => node is Program;
function isProperty
isProperty: ( node: object | null | undefined, opts?: object | null) => node is Property;
function isPureish
isPureish: ( node: object | null | undefined, opts?: object | null) => node is Pureish;
function isQualifiedTypeIdentifier
isQualifiedTypeIdentifier: ( node: object | null | undefined, opts?: object | null) => node is QualifiedTypeIdentifier;
function isRecordExpression
isRecordExpression: ( node: object | null | undefined, opts?: object | null) => node is RecordExpression;
function isReferenced
isReferenced: (node: Node, parent: Node, grandparent?: Node) => boolean;
function isRegexLiteral
isRegexLiteral: ( node: object | null | undefined, opts?: object | null) => node is RegExpLiteral;
Deprecated
Use
isRegExpLiteral
function isRegExpLiteral
isRegExpLiteral: ( node: object | null | undefined, opts?: object | null) => node is RegExpLiteral;
function isRestElement
isRestElement: ( node: object | null | undefined, opts?: object | null) => node is RestElement;
function isRestProperty
isRestProperty: ( node: object | null | undefined, opts?: object | null) => node is RestElement;
Deprecated
Use
isRestElement
function isReturnStatement
isReturnStatement: ( node: object | null | undefined, opts?: object | null) => node is ReturnStatement;
function isScopable
isScopable: ( node: object | null | undefined, opts?: object | null) => node is Scopable;
function isScope
isScope: (node: Node, parent: Node) => node is Scopable;
function isSequenceExpression
isSequenceExpression: ( node: object | null | undefined, opts?: object | null) => node is SequenceExpression;
function isSpecifierDefault
isSpecifierDefault: (specifier: ModuleSpecifier) => boolean;
function isSpreadElement
isSpreadElement: ( node: object | null | undefined, opts?: object | null) => node is SpreadElement;
function isSpreadProperty
isSpreadProperty: ( node: object | null | undefined, opts?: object | null) => node is SpreadElement;
Deprecated
Use
isSpreadElement
function isStandardized
isStandardized: ( node: object | null | undefined, opts?: object | null) => node is Standardized;
function isStatement
isStatement: ( node: object | null | undefined, opts?: object | null) => node is Statement;
function isStaticBlock
isStaticBlock: ( node: object | null | undefined, opts?: object | null) => node is StaticBlock;
function isStringLiteral
isStringLiteral: ( node: object | null | undefined, opts?: object | null) => node is StringLiteral;
function isStringLiteralTypeAnnotation
isStringLiteralTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is StringLiteralTypeAnnotation;
function isStringTypeAnnotation
isStringTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is StringTypeAnnotation;
function isSuper
isSuper: ( node: object | null | undefined, opts?: object | null) => node is Super;
function isSwitchCase
isSwitchCase: ( node: object | null | undefined, opts?: object | null) => node is SwitchCase;
function isSwitchStatement
isSwitchStatement: ( node: object | null | undefined, opts?: object | null) => node is SwitchStatement;
function isSymbolTypeAnnotation
isSymbolTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is SymbolTypeAnnotation;
function isTaggedTemplateExpression
isTaggedTemplateExpression: ( node: object | null | undefined, opts?: object | null) => node is TaggedTemplateExpression;
function isTemplateElement
isTemplateElement: ( node: object | null | undefined, opts?: object | null) => node is TemplateElement;
function isTemplateLiteral
isTemplateLiteral: ( node: object | null | undefined, opts?: object | null) => node is TemplateLiteral;
function isTerminatorless
isTerminatorless: ( node: object | null | undefined, opts?: object | null) => node is Terminatorless;
function isThisExpression
isThisExpression: ( node: object | null | undefined, opts?: object | null) => node is ThisExpression;
function isThisTypeAnnotation
isThisTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is ThisTypeAnnotation;
function isThrowStatement
isThrowStatement: ( node: object | null | undefined, opts?: object | null) => node is ThrowStatement;
function isTopicReference
isTopicReference: ( node: object | null | undefined, opts?: object | null) => node is TopicReference;
function isTryStatement
isTryStatement: ( node: object | null | undefined, opts?: object | null) => node is TryStatement;
function isTSAnyKeyword
isTSAnyKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSAnyKeyword;
function isTSArrayType
isTSArrayType: ( node: object | null | undefined, opts?: object | null) => node is TSArrayType;
function isTSAsExpression
isTSAsExpression: ( node: object | null | undefined, opts?: object | null) => node is TSAsExpression;
function isTSBaseType
isTSBaseType: ( node: object | null | undefined, opts?: object | null) => node is TSBaseType;
function isTSBigIntKeyword
isTSBigIntKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSBigIntKeyword;
function isTSBooleanKeyword
isTSBooleanKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSBooleanKeyword;
function isTSCallSignatureDeclaration
isTSCallSignatureDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSCallSignatureDeclaration;
function isTSConditionalType
isTSConditionalType: ( node: object | null | undefined, opts?: object | null) => node is TSConditionalType;
function isTSConstructorType
isTSConstructorType: ( node: object | null | undefined, opts?: object | null) => node is TSConstructorType;
function isTSConstructSignatureDeclaration
isTSConstructSignatureDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSConstructSignatureDeclaration;
function isTSDeclareFunction
isTSDeclareFunction: ( node: object | null | undefined, opts?: object | null) => node is TSDeclareFunction;
function isTSDeclareMethod
isTSDeclareMethod: ( node: object | null | undefined, opts?: object | null) => node is TSDeclareMethod;
function isTSEntityName
isTSEntityName: ( node: object | null | undefined, opts?: object | null) => node is TSEntityName;
function isTSEnumBody
isTSEnumBody: ( node: object | null | undefined, opts?: object | null) => node is TSEnumBody;
function isTSEnumDeclaration
isTSEnumDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSEnumDeclaration;
function isTSEnumMember
isTSEnumMember: ( node: object | null | undefined, opts?: object | null) => node is TSEnumMember;
function isTSExportAssignment
isTSExportAssignment: ( node: object | null | undefined, opts?: object | null) => node is TSExportAssignment;
function isTSExpressionWithTypeArguments
isTSExpressionWithTypeArguments: ( node: object | null | undefined, opts?: object | null) => node is TSExpressionWithTypeArguments;
function isTSExternalModuleReference
isTSExternalModuleReference: ( node: object | null | undefined, opts?: object | null) => node is TSExternalModuleReference;
function isTSFunctionType
isTSFunctionType: ( node: object | null | undefined, opts?: object | null) => node is TSFunctionType;
function isTSImportEqualsDeclaration
isTSImportEqualsDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSImportEqualsDeclaration;
function isTSImportType
isTSImportType: ( node: object | null | undefined, opts?: object | null) => node is TSImportType;
function isTSIndexedAccessType
isTSIndexedAccessType: ( node: object | null | undefined, opts?: object | null) => node is TSIndexedAccessType;
function isTSIndexSignature
isTSIndexSignature: ( node: object | null | undefined, opts?: object | null) => node is TSIndexSignature;
function isTSInferType
isTSInferType: ( node: object | null | undefined, opts?: object | null) => node is TSInferType;
function isTSInstantiationExpression
isTSInstantiationExpression: ( node: object | null | undefined, opts?: object | null) => node is TSInstantiationExpression;
function isTSInterfaceBody
isTSInterfaceBody: ( node: object | null | undefined, opts?: object | null) => node is TSInterfaceBody;
function isTSInterfaceDeclaration
isTSInterfaceDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSInterfaceDeclaration;
function isTSIntersectionType
isTSIntersectionType: ( node: object | null | undefined, opts?: object | null) => node is TSIntersectionType;
function isTSIntrinsicKeyword
isTSIntrinsicKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSIntrinsicKeyword;
function isTSLiteralType
isTSLiteralType: ( node: object | null | undefined, opts?: object | null) => node is TSLiteralType;
function isTSMappedType
isTSMappedType: ( node: object | null | undefined, opts?: object | null) => node is TSMappedType;
function isTSMethodSignature
isTSMethodSignature: ( node: object | null | undefined, opts?: object | null) => node is TSMethodSignature;
function isTSModuleBlock
isTSModuleBlock: ( node: object | null | undefined, opts?: object | null) => node is TSModuleBlock;
function isTSModuleDeclaration
isTSModuleDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSModuleDeclaration;
function isTSNamedTupleMember
isTSNamedTupleMember: ( node: object | null | undefined, opts?: object | null) => node is TSNamedTupleMember;
function isTSNamespaceExportDeclaration
isTSNamespaceExportDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSNamespaceExportDeclaration;
function isTSNeverKeyword
isTSNeverKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSNeverKeyword;
function isTSNonNullExpression
isTSNonNullExpression: ( node: object | null | undefined, opts?: object | null) => node is TSNonNullExpression;
function isTSNullKeyword
isTSNullKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSNullKeyword;
function isTSNumberKeyword
isTSNumberKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSNumberKeyword;
function isTSObjectKeyword
isTSObjectKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSObjectKeyword;
function isTSOptionalType
isTSOptionalType: ( node: object | null | undefined, opts?: object | null) => node is TSOptionalType;
function isTSParameterProperty
isTSParameterProperty: ( node: object | null | undefined, opts?: object | null) => node is TSParameterProperty;
function isTSParenthesizedType
isTSParenthesizedType: ( node: object | null | undefined, opts?: object | null) => node is TSParenthesizedType;
function isTSPropertySignature
isTSPropertySignature: ( node: object | null | undefined, opts?: object | null) => node is TSPropertySignature;
function isTSQualifiedName
isTSQualifiedName: ( node: object | null | undefined, opts?: object | null) => node is TSQualifiedName;
function isTSRestType
isTSRestType: ( node: object | null | undefined, opts?: object | null) => node is TSRestType;
function isTSSatisfiesExpression
isTSSatisfiesExpression: ( node: object | null | undefined, opts?: object | null) => node is TSSatisfiesExpression;
function isTSStringKeyword
isTSStringKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSStringKeyword;
function isTSSymbolKeyword
isTSSymbolKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSSymbolKeyword;
function isTSTemplateLiteralType
isTSTemplateLiteralType: ( node: object | null | undefined, opts?: object | null) => node is TSTemplateLiteralType;
function isTSThisType
isTSThisType: ( node: object | null | undefined, opts?: object | null) => node is TSThisType;
function isTSTupleType
isTSTupleType: ( node: object | null | undefined, opts?: object | null) => node is TSTupleType;
function isTSType
isTSType: ( node: object | null | undefined, opts?: object | null) => node is TSType;
function isTSTypeAliasDeclaration
isTSTypeAliasDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSTypeAliasDeclaration;
function isTSTypeAnnotation
isTSTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is TSTypeAnnotation;
function isTSTypeAssertion
isTSTypeAssertion: ( node: object | null | undefined, opts?: object | null) => node is TSTypeAssertion;
function isTSTypeElement
isTSTypeElement: ( node: object | null | undefined, opts?: object | null) => node is TSTypeElement;
function isTSTypeLiteral
isTSTypeLiteral: ( node: object | null | undefined, opts?: object | null) => node is TSTypeLiteral;
function isTSTypeOperator
isTSTypeOperator: ( node: object | null | undefined, opts?: object | null) => node is TSTypeOperator;
function isTSTypeParameter
isTSTypeParameter: ( node: object | null | undefined, opts?: object | null) => node is TSTypeParameter;
function isTSTypeParameterDeclaration
isTSTypeParameterDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TSTypeParameterDeclaration;
function isTSTypeParameterInstantiation
isTSTypeParameterInstantiation: ( node: object | null | undefined, opts?: object | null) => node is TSTypeParameterInstantiation;
function isTSTypePredicate
isTSTypePredicate: ( node: object | null | undefined, opts?: object | null) => node is TSTypePredicate;
function isTSTypeQuery
isTSTypeQuery: ( node: object | null | undefined, opts?: object | null) => node is TSTypeQuery;
function isTSTypeReference
isTSTypeReference: ( node: object | null | undefined, opts?: object | null) => node is TSTypeReference;
function isTSUndefinedKeyword
isTSUndefinedKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSUndefinedKeyword;
function isTSUnionType
isTSUnionType: ( node: object | null | undefined, opts?: object | null) => node is TSUnionType;
function isTSUnknownKeyword
isTSUnknownKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSUnknownKeyword;
function isTSVoidKeyword
isTSVoidKeyword: ( node: object | null | undefined, opts?: object | null) => node is TSVoidKeyword;
function isTupleExpression
isTupleExpression: ( node: object | null | undefined, opts?: object | null) => node is TupleExpression;
function isTupleTypeAnnotation
isTupleTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is TupleTypeAnnotation;
function isType
isType: { < T extends | 'Identifier' | 'StringLiteral' | 'BlockStatement' | 'ClassBody' | 'ArrayExpression' | 'AssignmentExpression' | 'BinaryExpression' | 'CallExpression' | 'ConditionalExpression' | 'FunctionExpression' | 'NumericLiteral' | 'NullLiteral' | 'BooleanLiteral' | 'RegExpLiteral' | 'LogicalExpression' | 'MemberExpression' | 'NewExpression' | 'ObjectExpression' | 'SequenceExpression' | 'ParenthesizedExpression' | 'ThisExpression' | 'UnaryExpression' | 'UpdateExpression' | 'ArrowFunctionExpression' | 'ClassExpression' | 'ImportExpression' | 'MetaProperty' | 'Super' | 'TaggedTemplateExpression' | 'TemplateLiteral' | 'YieldExpression' | 'AwaitExpression' | 'Import' | 'BigIntLiteral' | 'OptionalMemberExpression' | 'OptionalCallExpression' | 'TypeCastExpression' | 'JSXElement' | 'JSXFragment' | 'BindExpression' | 'DoExpression' | 'RecordExpression' | 'TupleExpression' | 'DecimalLiteral' | 'ModuleExpression' | 'TopicReference' | 'PipelineTopicExpression' | 'PipelineBareFunction' | 'PipelinePrimaryTopicReference' | 'TSInstantiationExpression' | 'TSAsExpression' | 'TSSatisfiesExpression' | 'TSTypeAssertion' | 'TSNonNullExpression' | 'BreakStatement' | 'ContinueStatement' | 'DebuggerStatement' | 'DoWhileStatement' | 'EmptyStatement' | 'ExpressionStatement' | 'ForInStatement' | 'ForStatement' | 'FunctionDeclaration' | 'IfStatement' | 'LabeledStatement' | 'ReturnStatement' | 'SwitchStatement' | 'ThrowStatement' | 'TryStatement' | 'VariableDeclaration' | 'WhileStatement' | 'WithStatement' | 'ClassDeclaration' | 'ExportAllDeclaration' | 'ExportDefaultDeclaration' | 'ExportNamedDeclaration' | 'ForOfStatement' | 'ImportDeclaration' | 'DeclareClass' | 'DeclareFunction' | 'DeclareInterface' | 'DeclareModule' | 'DeclareModuleExports' | 'DeclareTypeAlias' | 'DeclareOpaqueType' | 'DeclareVariable' | 'DeclareExportDeclaration' | 'DeclareExportAllDeclaration' | 'InterfaceDeclaration' | 'OpaqueType' | 'TypeAlias' | 'EnumDeclaration' | 'TSDeclareFunction' | 'TSInterfaceDeclaration' | 'TSTypeAliasDeclaration' | 'TSEnumDeclaration' | 'TSModuleDeclaration' | 'TSImportEqualsDeclaration' | 'TSExportAssignment' | 'TSNamespaceExportDeclaration' | 'Program' | 'ObjectTypeAnnotation' | 'EnumBooleanBody' | 'TSInterfaceBody' | 'TSEnumBody' | 'TSModuleBlock' | 'SpreadElement' | 'RestElement' | 'AssignmentPattern' | 'ArrayPattern' | 'ObjectPattern' | 'TSParameterProperty' | 'PrivateName' | 'InterpreterDirective' | 'DirectiveLiteral' | 'Directive' | 'V8IntrinsicIdentifier' | 'ArgumentPlaceholder' | 'CatchClause' | 'File' | 'ObjectMethod' | 'ObjectProperty' | 'Decorator' | 'SwitchCase' | 'VariableDeclarator' | 'ClassMethod' | 'ClassPrivateMethod' | 'ClassProperty' | 'ClassPrivateProperty' | 'ClassAccessorProperty' | 'TSDeclareMethod' | 'TSIndexSignature' | 'StaticBlock' | 'ExportSpecifier' | 'ExportDefaultSpecifier' | 'ExportNamespaceSpecifier' | 'ImportSpecifier' | 'ImportDefaultSpecifier' | 'ImportNamespaceSpecifier' | 'TemplateElement' | 'TSAnyKeyword' | 'TSBooleanKeyword' | 'TSBigIntKeyword' | 'TSIntrinsicKeyword' | 'TSNeverKeyword' | 'TSNullKeyword' | 'TSNumberKeyword' | 'TSObjectKeyword' | 'TSStringKeyword' | 'TSSymbolKeyword' | 'TSUndefinedKeyword' | 'TSUnknownKeyword' | 'TSVoidKeyword' | 'TSThisType' | 'TSFunctionType' | 'TSConstructorType' | 'TSTypeReference' | 'TSTypePredicate' | 'TSTypeQuery' | 'TSTypeLiteral' | 'TSArrayType' | 'TSTupleType' | 'TSOptionalType' | 'TSRestType' | 'TSUnionType' | 'TSIntersectionType' | 'TSConditionalType' | 'TSInferType' | 'TSParenthesizedType' | 'TSTypeOperator' | 'TSIndexedAccessType' | 'TSMappedType' | 'TSTemplateLiteralType' | 'TSLiteralType' | 'TSExpressionWithTypeArguments' | 'TSImportType' | 'TypeAnnotation' | 'TSTypeAnnotation' | 'Noop' | 'ImportAttribute' | 'AnyTypeAnnotation' | 'ArrayTypeAnnotation' | 'BooleanTypeAnnotation' | 'BooleanLiteralTypeAnnotation' | 'NullLiteralTypeAnnotation' | 'ExistsTypeAnnotation' | 'FunctionTypeAnnotation' | 'GenericTypeAnnotation' | 'InterfaceTypeAnnotation' | 'IntersectionTypeAnnotation' | 'MixedTypeAnnotation' | 'EmptyTypeAnnotation' | 'NullableTypeAnnotation' | 'NumberLiteralTypeAnnotation' | 'NumberTypeAnnotation' | 'StringLiteralTypeAnnotation' | 'StringTypeAnnotation' | 'SymbolTypeAnnotation' | 'ThisTypeAnnotation' | 'TupleTypeAnnotation' | 'TypeofTypeAnnotation' | 'UnionTypeAnnotation' | 'VoidTypeAnnotation' | 'IndexedAccessType' | 'OptionalIndexedAccessType' | 'TypeParameterInstantiation' | 'ClassImplements' | 'TypeParameterDeclaration' | 'InterfaceExtends' | 'DeclaredPredicate' | 'FunctionTypeParam' | 'InferredPredicate' | 'ObjectTypeInternalSlot' | 'ObjectTypeCallProperty' | 'ObjectTypeIndexer' | 'ObjectTypeProperty' | 'ObjectTypeSpreadProperty' | 'QualifiedTypeIdentifier' | 'TypeParameter' | 'Variance' | 'EnumNumberBody' | 'EnumStringBody' | 'EnumSymbolBody' | 'EnumBooleanMember' | 'EnumNumberMember' | 'EnumStringMember' | 'EnumDefaultedMember' | 'JSXIdentifier' | 'JSXNamespacedName' | 'JSXExpressionContainer' | 'JSXAttribute' | 'JSXMemberExpression' | 'JSXClosingElement' | 'JSXOpeningElement' | 'JSXText' | 'JSXSpreadChild' | 'JSXEmptyExpression' | 'JSXSpreadAttribute' | 'JSXOpeningFragment' | 'JSXClosingFragment' | 'Placeholder' | 'TSTypeParameterDeclaration' | 'TSQualifiedName' | 'TSCallSignatureDeclaration' | 'TSConstructSignatureDeclaration' | 'TSPropertySignature' | 'TSMethodSignature' | 'TSTypeParameterInstantiation' | 'TSNamedTupleMember' | 'TSTypeParameter' | 'TSEnumMember' | 'TSExternalModuleReference' >( nodetype: string, targetType: T ): nodetype is T; (nodetype: string, targetType: string): boolean;};
function isTypeAlias
isTypeAlias: ( node: object | null | undefined, opts?: object | null) => node is TypeAlias;
function isTypeAnnotation
isTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is TypeAnnotation;
function isTypeCastExpression
isTypeCastExpression: ( node: object | null | undefined, opts?: object | null) => node is TypeCastExpression;
function isTypeofTypeAnnotation
isTypeofTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is TypeofTypeAnnotation;
function isTypeParameter
isTypeParameter: ( node: object | null | undefined, opts?: object | null) => node is TypeParameter;
function isTypeParameterDeclaration
isTypeParameterDeclaration: ( node: object | null | undefined, opts?: object | null) => node is TypeParameterDeclaration;
function isTypeParameterInstantiation
isTypeParameterInstantiation: ( node: object | null | undefined, opts?: object | null) => node is TypeParameterInstantiation;
function isTypeScript
isTypeScript: ( node: object | null | undefined, opts?: object | null) => node is TypeScript;
function isUnaryExpression
isUnaryExpression: ( node: object | null | undefined, opts?: object | null) => node is UnaryExpression;
function isUnaryLike
isUnaryLike: ( node: object | null | undefined, opts?: object | null) => node is UnaryLike;
function isUnionTypeAnnotation
isUnionTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is UnionTypeAnnotation;
function isUpdateExpression
isUpdateExpression: ( node: object | null | undefined, opts?: object | null) => node is UpdateExpression;
function isUserWhitespacable
isUserWhitespacable: ( node: object | null | undefined, opts?: object | null) => node is UserWhitespacable;
function isV8IntrinsicIdentifier
isV8IntrinsicIdentifier: ( node: object | null | undefined, opts?: object | null) => node is V8IntrinsicIdentifier;
function isValidES3Identifier
isValidES3Identifier: (name: string) => boolean;
function isValidIdentifier
isValidIdentifier: (name: string) => boolean;
function isVar
isVar: (node: Node) => node is VariableDeclaration;
function isVariableDeclaration
isVariableDeclaration: ( node: object | null | undefined, opts?: object | null) => node is VariableDeclaration;
function isVariableDeclarator
isVariableDeclarator: ( node: object | null | undefined, opts?: object | null) => node is VariableDeclarator;
function isVariance
isVariance: ( node: object | null | undefined, opts?: object | null) => node is Variance;
function isVoidTypeAnnotation
isVoidTypeAnnotation: ( node: object | null | undefined, opts?: object | null) => node is VoidTypeAnnotation;
function isWhile
isWhile: ( node: object | null | undefined, opts?: object | null) => node is While;
function isWhileStatement
isWhileStatement: ( node: object | null | undefined, opts?: object | null) => node is WhileStatement;
function isWithStatement
isWithStatement: ( node: object | null | undefined, opts?: object | null) => node is WithStatement;
function isYieldExpression
isYieldExpression: ( node: object | null | undefined, opts?: object | null) => node is YieldExpression;
function jsxAttribute
jsxAttribute: ( name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null) => JSXAttribute;
function jsxClosingElement
jsxClosingElement: ( name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName) => JSXClosingElement;
function jsxClosingFragment
jsxClosingFragment: () => JSXClosingFragment;
function jsxElement
jsxElement: ( openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: Array< JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment >, selfClosing?: boolean | null) => JSXElement;
function jsxEmptyExpression
jsxEmptyExpression: () => JSXEmptyExpression;
function jsxExpressionContainer
jsxExpressionContainer: ( expression: Expression | JSXEmptyExpression) => JSXExpressionContainer;
function jsxFragment
jsxFragment: ( openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: Array< JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment >) => JSXFragment;
function jsxIdentifier
jsxIdentifier: (name: string) => JSXIdentifier;
function jsxMemberExpression
jsxMemberExpression: ( object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier) => JSXMemberExpression;
function jsxNamespacedName
jsxNamespacedName: ( namespace: JSXIdentifier, name: JSXIdentifier) => JSXNamespacedName;
function jsxOpeningElement
jsxOpeningElement: ( name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName, attributes: Array<JSXAttribute | JSXSpreadAttribute>, selfClosing?: boolean) => JSXOpeningElement;
function jsxOpeningFragment
jsxOpeningFragment: () => JSXOpeningFragment;
function jsxSpreadAttribute
jsxSpreadAttribute: (argument: Expression) => JSXSpreadAttribute;
function jsxSpreadChild
jsxSpreadChild: (expression: Expression) => JSXSpreadChild;
function jsxText
jsxText: (value: string) => JSXText;
function labeledStatement
labeledStatement: (label: Identifier, body: Statement) => LabeledStatement;
function logicalExpression
logicalExpression: ( operator: '||' | '&&' | '??', left: Expression, right: Expression) => LogicalExpression;
function matchesPattern
matchesPattern: ( node: Node | null | undefined, match: string | ReadonlyArray<string>, allowPartial?: boolean) => node is MemberExpression;
function memberExpression
memberExpression: ( object: Expression | Super, property: Expression | Identifier | PrivateName, computed?: boolean, optional?: boolean | null) => MemberExpression;
function metaProperty
metaProperty: (meta: Identifier, property: Identifier) => MetaProperty;
function mixedTypeAnnotation
mixedTypeAnnotation: () => MixedTypeAnnotation;
function moduleExpression
moduleExpression: (body: Program) => ModuleExpression;
function newExpression
newExpression: ( callee: Expression | Super | V8IntrinsicIdentifier, _arguments: Array<Expression | SpreadElement | ArgumentPlaceholder>) => NewExpression;
function noop
noop: () => Noop;
function nullableTypeAnnotation
nullableTypeAnnotation: (typeAnnotation: FlowType) => NullableTypeAnnotation;
function nullLiteral
nullLiteral: () => NullLiteral;
function nullLiteralTypeAnnotation
nullLiteralTypeAnnotation: () => NullLiteralTypeAnnotation;
function numberLiteralTypeAnnotation
numberLiteralTypeAnnotation: (value: number) => NumberLiteralTypeAnnotation;
function numberTypeAnnotation
numberTypeAnnotation: () => NumberTypeAnnotation;
function numericLiteral
numericLiteral: (value: number) => NumericLiteral;
function objectExpression
objectExpression: ( properties: Array<ObjectMethod | ObjectProperty | SpreadElement>) => ObjectExpression;
function objectMethod
objectMethod: ( kind: 'method' | 'get' | 'set' | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean) => ObjectMethod;
function objectPattern
objectPattern: ( properties: Array<RestElement | ObjectProperty>) => ObjectPattern;
function objectProperty
objectProperty: ( key: | Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | DecimalLiteral | PrivateName, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array<Decorator> | null) => ObjectProperty;
function objectTypeAnnotation
objectTypeAnnotation: ( properties: Array<ObjectTypeProperty | ObjectTypeSpreadProperty>, indexers?: Array<ObjectTypeIndexer>, callProperties?: Array<ObjectTypeCallProperty>, internalSlots?: Array<ObjectTypeInternalSlot>, exact?: boolean) => ObjectTypeAnnotation;
function objectTypeCallProperty
objectTypeCallProperty: (value: FlowType) => ObjectTypeCallProperty;
function objectTypeIndexer
objectTypeIndexer: ( id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null) => ObjectTypeIndexer;
function objectTypeInternalSlot
objectTypeInternalSlot: ( id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean) => ObjectTypeInternalSlot;
function objectTypeProperty
objectTypeProperty: ( key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null) => ObjectTypeProperty;
function objectTypeSpreadProperty
objectTypeSpreadProperty: (argument: FlowType) => ObjectTypeSpreadProperty;
function opaqueType
opaqueType: ( id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType) => OpaqueType;
function optionalCallExpression
optionalCallExpression: ( callee: Expression, _arguments: Array<Expression | SpreadElement | ArgumentPlaceholder>, optional: boolean) => OptionalCallExpression;
function optionalIndexedAccessType
optionalIndexedAccessType: ( objectType: FlowType, indexType: FlowType) => OptionalIndexedAccessType;
function optionalMemberExpression
optionalMemberExpression: ( object: Expression, property: Expression | Identifier, computed: boolean | undefined, optional: boolean) => OptionalMemberExpression;
function parenthesizedExpression
parenthesizedExpression: (expression: Expression) => ParenthesizedExpression;
function pipelineBareFunction
pipelineBareFunction: (callee: Expression) => PipelineBareFunction;
function pipelinePrimaryTopicReference
pipelinePrimaryTopicReference: () => PipelinePrimaryTopicReference;
function pipelineTopicExpression
pipelineTopicExpression: (expression: Expression) => PipelineTopicExpression;
function placeholder
placeholder: ( expectedNode: | 'Identifier' | 'StringLiteral' | 'Expression' | 'Statement' | 'Declaration' | 'BlockStatement' | 'ClassBody' | 'Pattern', name: Identifier) => Placeholder;
function prependToMemberExpression
prependToMemberExpression: < T extends Pick<MemberExpression, 'object' | 'property'>>( member: T, prepend: MemberExpression['object']) => T;
function privateName
privateName: (id: Identifier) => PrivateName;
function program
program: ( body: Array<Statement>, directives?: Array<Directive>, sourceType?: 'script' | 'module', interpreter?: InterpreterDirective | null) => Program;
function qualifiedTypeIdentifier
qualifiedTypeIdentifier: ( id: Identifier, qualification: Identifier | QualifiedTypeIdentifier) => QualifiedTypeIdentifier;
function recordExpression
recordExpression: ( properties: Array<ObjectProperty | SpreadElement>) => RecordExpression;
function regExpLiteral
regExpLiteral: (pattern: string, flags?: string) => RegExpLiteral;
function removeComments
removeComments: <T extends Node>(node: T) => T;
function removeProperties
removeProperties: (n: Node, opts?: { preserveComments: boolean } | null) => void;
function removePropertiesDeep
removePropertiesDeep: <T extends Node>( n: T, opts?: { preserveComments: boolean } | null) => T;
function removeTypeDuplicates
removeTypeDuplicates: ( types: ReadonlyArray<FlowType | false | null | undefined>) => FlowType[];
function restElement
restElement: (argument: LVal) => RestElement;
function returnStatement
returnStatement: (argument?: Expression | null) => ReturnStatement;
function sequenceExpression
sequenceExpression: (expressions: Array<Expression>) => SequenceExpression;
function shallowEqual
shallowEqual: <T extends object>(actual: object, expected: T) => actual is T;
function spreadElement
spreadElement: (argument: Expression) => SpreadElement;
function staticBlock
staticBlock: (body: Array<Statement>) => StaticBlock;
function stringLiteral
stringLiteral: (value: string) => StringLiteral;
function stringLiteralTypeAnnotation
stringLiteralTypeAnnotation: (value: string) => StringLiteralTypeAnnotation;
function stringTypeAnnotation
stringTypeAnnotation: () => StringTypeAnnotation;
function super
super: () => Super
function switchCase
switchCase: ( test: Expression | null | undefined, consequent: Array<Statement>) => SwitchCase;
function switchStatement
switchStatement: ( discriminant: Expression, cases: Array<SwitchCase>) => SwitchStatement;
function symbolTypeAnnotation
symbolTypeAnnotation: () => SymbolTypeAnnotation;
function taggedTemplateExpression
taggedTemplateExpression: ( tag: Expression, quasi: TemplateLiteral) => TaggedTemplateExpression;
function templateElement
templateElement: ( value: { raw: string; cooked?: string }, tail?: boolean) => TemplateElement;
function templateLiteral
templateLiteral: ( quasis: Array<TemplateElement>, expressions: Array<Expression | TSType>) => TemplateLiteral;
function thisExpression
thisExpression: () => ThisExpression;
function thisTypeAnnotation
thisTypeAnnotation: () => ThisTypeAnnotation;
function throwStatement
throwStatement: (argument: Expression) => ThrowStatement;
function toBindingIdentifierName
toBindingIdentifierName: ( name: { toString(): string } | null | undefined) => string;
function toBlock
toBlock: ( node: Statement | Expression, parent?: Function | null) => BlockStatement;
function toComputedKey
toComputedKey: < T extends | MemberExpression | OptionalMemberExpression | ObjectMethod | ObjectProperty | ClassMethod | ClassPrivateMethod | ClassProperty | ClassAccessorProperty | TSDeclareMethod | TSPropertySignature | TSMethodSignature>( node: T, key?: Expression | Identifier) => Expression;
function toExpression
toExpression: { (node: Function): FunctionExpression; (node: Class): ClassExpression; ( node: | ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | ImportExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSInstantiationExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | ExpressionStatement | FunctionDeclaration | ClassDeclaration | ObjectMethod | ClassMethod | ClassPrivateMethod ): Expression;};
function toIdentifier
toIdentifier: (name: { toString(): string } | null | undefined) => string;
function toKeyAlias
toKeyAlias: (node: Method | Property, key?: Node) => string;
function topicReference
topicReference: () => TopicReference;
function toSequenceExpression
toSequenceExpression: ( nodes: ReadonlyArray<Node>, scope: { push(value: { id: LVal; kind: 'var'; init?: Expression }): void; buildUndefinedNode(): Node; }) => SequenceExpression | undefined;
function toStatement
toStatement: { (node: AssignmentExpression, ignore?: boolean): ExpressionStatement; (node: AssignmentExpression | Statement, ignore?: boolean): Statement; (node: Class, ignore: true): ClassDeclaration; (node: Class, ignore?: boolean): ClassDeclaration; (node: Function, ignore: true): FunctionDeclaration; (node: Function, ignore?: boolean): FunctionDeclaration; ( node: | AssignmentExpression | FunctionExpression | ArrowFunctionExpression | ClassExpression | BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration | ObjectMethod | ClassMethod | ClassPrivateMethod, ignore: true ): Statement; ( node: | AssignmentExpression | FunctionExpression | ArrowFunctionExpression | ClassExpression | BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration | ObjectMethod | ClassMethod | ClassPrivateMethod, ignore?: boolean ): Statement;};
function traverse
traverse: <T>( n: Node, h: TraversalHandler<T> | TraversalHandlers<T>, state?: T) => void;
function traverseFast
traverseFast: <T>(n: Node, h: TraversalHandler<T>, state?: T) => void;
function tryStatement
tryStatement: ( block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null) => TryStatement;
function tsAnyKeyword
tsAnyKeyword: () => TSAnyKeyword;
function tsArrayType
tsArrayType: (elementType: TSType) => TSArrayType;
function tsAsExpression
tsAsExpression: ( expression: Expression, typeAnnotation: TSType) => TSAsExpression;
function tsBigIntKeyword
tsBigIntKeyword: () => TSBigIntKeyword;
function tsBooleanKeyword
tsBooleanKeyword: () => TSBooleanKeyword;
function tsCallSignatureDeclaration
tsCallSignatureDeclaration: ( typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, typeAnnotation?: TSTypeAnnotation | null) => TSCallSignatureDeclaration;
function tsConditionalType
tsConditionalType: ( checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType) => TSConditionalType;
function tsConstructorType
tsConstructorType: ( typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, typeAnnotation?: TSTypeAnnotation | null) => TSConstructorType;
function tsConstructSignatureDeclaration
tsConstructSignatureDeclaration: ( typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, typeAnnotation?: TSTypeAnnotation | null) => TSConstructSignatureDeclaration;
function tsDeclareFunction
tsDeclareFunction: ( id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement>, returnType?: TSTypeAnnotation | Noop | null) => TSDeclareFunction;
function tsDeclareMethod
tsDeclareMethod: ( decorators: Array<Decorator> | null | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, returnType?: TSTypeAnnotation | Noop | null) => TSDeclareMethod;
function tsEnumBody
tsEnumBody: (members: Array<TSEnumMember>) => TSEnumBody;
function tsEnumDeclaration
tsEnumDeclaration: ( id: Identifier, members: Array<TSEnumMember>) => TSEnumDeclaration;
function tsEnumMember
tsEnumMember: ( id: Identifier | StringLiteral, initializer?: Expression | null) => TSEnumMember;
function tsExportAssignment
tsExportAssignment: (expression: Expression) => TSExportAssignment;
function tsExpressionWithTypeArguments
tsExpressionWithTypeArguments: ( expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null) => TSExpressionWithTypeArguments;
function tsExternalModuleReference
tsExternalModuleReference: ( expression: StringLiteral) => TSExternalModuleReference;
function tsFunctionType
tsFunctionType: ( typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, typeAnnotation?: TSTypeAnnotation | null) => TSFunctionType;
function tsImportEqualsDeclaration
tsImportEqualsDeclaration: ( id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference) => TSImportEqualsDeclaration;
function tsImportType
tsImportType: ( argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null) => TSImportType;
function tsIndexedAccessType
tsIndexedAccessType: ( objectType: TSType, indexType: TSType) => TSIndexedAccessType;
function tsIndexSignature
tsIndexSignature: ( parameters: Array<Identifier>, typeAnnotation?: TSTypeAnnotation | null) => TSIndexSignature;
function tsInferType
tsInferType: (typeParameter: TSTypeParameter) => TSInferType;
function tsInstantiationExpression
tsInstantiationExpression: ( expression: Expression, typeParameters?: TSTypeParameterInstantiation | null) => TSInstantiationExpression;
function tsInterfaceBody
tsInterfaceBody: (body: Array<TSTypeElement>) => TSInterfaceBody;
function tsInterfaceDeclaration
tsInterfaceDeclaration: ( id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array<TSExpressionWithTypeArguments> | null | undefined, body: TSInterfaceBody) => TSInterfaceDeclaration;
function tsIntersectionType
tsIntersectionType: (types: Array<TSType>) => TSIntersectionType;
function tsIntrinsicKeyword
tsIntrinsicKeyword: () => TSIntrinsicKeyword;
function tsLiteralType
tsLiteralType: ( literal: | NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | TemplateLiteral | UnaryExpression) => TSLiteralType;
function tsMappedType
tsMappedType: ( typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null) => TSMappedType;
function tsMethodSignature
tsMethodSignature: ( key: Expression, typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, typeAnnotation?: TSTypeAnnotation | null) => TSMethodSignature;
function tsModuleBlock
tsModuleBlock: (body: Array<Statement>) => TSModuleBlock;
function tsModuleDeclaration
tsModuleDeclaration: ( id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration) => TSModuleDeclaration;
function tsNamedTupleMember
tsNamedTupleMember: ( label: Identifier, elementType: TSType, optional?: boolean) => TSNamedTupleMember;
function tsNamespaceExportDeclaration
tsNamespaceExportDeclaration: (id: Identifier) => TSNamespaceExportDeclaration;
function tsNeverKeyword
tsNeverKeyword: () => TSNeverKeyword;
function tsNonNullExpression
tsNonNullExpression: (expression: Expression) => TSNonNullExpression;
function tsNullKeyword
tsNullKeyword: () => TSNullKeyword;
function tsNumberKeyword
tsNumberKeyword: () => TSNumberKeyword;
function tsObjectKeyword
tsObjectKeyword: () => TSObjectKeyword;
function tsOptionalType
tsOptionalType: (typeAnnotation: TSType) => TSOptionalType;
function tsParameterProperty
tsParameterProperty: ( parameter: Identifier | AssignmentPattern) => TSParameterProperty;
function tsParenthesizedType
tsParenthesizedType: (typeAnnotation: TSType) => TSParenthesizedType;
function tsPropertySignature
tsPropertySignature: ( key: Expression, typeAnnotation?: TSTypeAnnotation | null) => TSPropertySignature;
function tsQualifiedName
tsQualifiedName: (left: TSEntityName, right: Identifier) => TSQualifiedName;
function tsRestType
tsRestType: (typeAnnotation: TSType) => TSRestType;
function tsSatisfiesExpression
tsSatisfiesExpression: ( expression: Expression, typeAnnotation: TSType) => TSSatisfiesExpression;
function tsStringKeyword
tsStringKeyword: () => TSStringKeyword;
function tsSymbolKeyword
tsSymbolKeyword: () => TSSymbolKeyword;
function tsTemplateLiteralType
tsTemplateLiteralType: ( quasis: Array<TemplateElement>, types: Array<TSType>) => TSTemplateLiteralType;
function tsThisType
tsThisType: () => TSThisType;
function tsTupleType
tsTupleType: (elementTypes: Array<TSType | TSNamedTupleMember>) => TSTupleType;
function tsTypeAliasDeclaration
tsTypeAliasDeclaration: ( id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType) => TSTypeAliasDeclaration;
function tsTypeAnnotation
tsTypeAnnotation: (typeAnnotation: TSType) => TSTypeAnnotation;
function tsTypeAssertion
tsTypeAssertion: ( typeAnnotation: TSType, expression: Expression) => TSTypeAssertion;
function tsTypeLiteral
tsTypeLiteral: (members: Array<TSTypeElement>) => TSTypeLiteral;
function tsTypeOperator
tsTypeOperator: (typeAnnotation: TSType) => TSTypeOperator;
function tsTypeParameter
tsTypeParameter: ( constraint: TSType | null | undefined, _default: TSType | null | undefined, name: string) => TSTypeParameter;
function tsTypeParameterDeclaration
tsTypeParameterDeclaration: ( params: Array<TSTypeParameter>) => TSTypeParameterDeclaration;
function tsTypeParameterInstantiation
tsTypeParameterInstantiation: ( params: Array<TSType>) => TSTypeParameterInstantiation;
function tsTypePredicate
tsTypePredicate: ( parameterName: Identifier | TSThisType, typeAnnotation?: TSTypeAnnotation | null, asserts?: boolean | null) => TSTypePredicate;
function tsTypeQuery
tsTypeQuery: ( exprName: TSEntityName | TSImportType, typeParameters?: TSTypeParameterInstantiation | null) => TSTypeQuery;
function tsTypeReference
tsTypeReference: ( typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null) => TSTypeReference;
function tsUndefinedKeyword
tsUndefinedKeyword: () => TSUndefinedKeyword;
function tsUnionType
tsUnionType: (types: Array<TSType>) => TSUnionType;
function tsUnknownKeyword
tsUnknownKeyword: () => TSUnknownKeyword;
function tsVoidKeyword
tsVoidKeyword: () => TSVoidKeyword;
function tupleExpression
tupleExpression: ( elements?: Array<Expression | SpreadElement>) => TupleExpression;
function tupleTypeAnnotation
tupleTypeAnnotation: (types: Array<FlowType>) => TupleTypeAnnotation;
function typeAlias
typeAlias: ( id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType) => TypeAlias;
function typeAnnotation
typeAnnotation: (typeAnnotation: FlowType) => TypeAnnotation;
function typeCastExpression
typeCastExpression: ( expression: Expression, typeAnnotation: TypeAnnotation) => TypeCastExpression;
function typeofTypeAnnotation
typeofTypeAnnotation: (argument: FlowType) => TypeofTypeAnnotation;
function typeParameter
typeParameter: ( bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null) => TypeParameter;
function typeParameterDeclaration
typeParameterDeclaration: ( params: Array<TypeParameter>) => TypeParameterDeclaration;
function typeParameterInstantiation
typeParameterInstantiation: ( params: Array<FlowType>) => TypeParameterInstantiation;
function unaryExpression
unaryExpression: ( operator: 'void' | 'throw' | 'delete' | '!' | '+' | '-' | '~' | 'typeof', argument: Expression, prefix?: boolean) => UnaryExpression;
function unionTypeAnnotation
unionTypeAnnotation: (types: Array<FlowType>) => UnionTypeAnnotation;
function updateExpression
updateExpression: ( operator: '++' | '--', argument: Expression, prefix?: boolean) => UpdateExpression;
function v8IntrinsicIdentifier
v8IntrinsicIdentifier: (name: string) => V8IntrinsicIdentifier;
function validate
validate: { <T extends Node, K extends keyof T>( n: Node | null | undefined, key: K, value: T[K] ): void; (n: Node, key: string, value: any): void;};
function valueToNode
valueToNode: { (value: undefined): Identifier; (value: boolean): BooleanLiteral; (value: null): NullLiteral; (value: string): StringLiteral; (value: number): BinaryExpression | NumericLiteral | UnaryExpression; (value: RegExp): RegExpLiteral; ( value: readonly (string | number | boolean | object | RegExp)[] ): ArrayExpression; (value: object): ObjectExpression; (value: string | number | boolean | object | RegExp): Expression;};
function variableDeclaration
variableDeclaration: ( kind: 'var' | 'let' | 'const' | 'using' | 'await using', declarations: Array<VariableDeclarator>) => VariableDeclaration;
function variableDeclarator
variableDeclarator: (id: LVal, init?: Expression | null) => VariableDeclarator;
function variance
variance: (kind: 'minus' | 'plus') => Variance;
function voidTypeAnnotation
voidTypeAnnotation: () => VoidTypeAnnotation;
function whileStatement
whileStatement: (test: Expression, body: Statement) => WhileStatement;
function withStatement
withStatement: (object: Expression, body: Statement) => WithStatement;
function yieldExpression
yieldExpression: ( argument?: Expression | null, delegate?: boolean) => YieldExpression;
Interfaces
interface Aliases
interface Aliases {}
property Accessor
Accessor: Accessor;
property Binary
Binary: Binary;
property Block
Block: Block;
property BlockParent
BlockParent: BlockParent;
property Class
Class: Class;
property CompletionStatement
CompletionStatement: CompletionStatement;
property Conditional
Conditional: Conditional;
property Declaration
Declaration: Declaration;
property EnumBody
EnumBody: EnumBody;
property EnumMember
EnumMember: EnumMember;
property ExportDeclaration
ExportDeclaration: ExportDeclaration;
property Expression
Expression: Expression;
property ExpressionWrapper
ExpressionWrapper: ExpressionWrapper;
property Flow
Flow: Flow;
property FlowBaseAnnotation
FlowBaseAnnotation: FlowBaseAnnotation;
property FlowDeclaration
FlowDeclaration: FlowDeclaration;
property FlowPredicate
FlowPredicate: FlowPredicate;
property FlowType
FlowType: FlowType;
property For
For: For;
property ForXStatement
ForXStatement: ForXStatement;
property Function
Function: Function;
property FunctionParent
FunctionParent: FunctionParent;
property Immutable
Immutable: Immutable;
property ImportOrExportDeclaration
ImportOrExportDeclaration: ImportOrExportDeclaration;
property JSX
JSX: JSX;
property Literal
Literal: Literal;
property Loop
Loop: Loop;
property LVal
LVal: LVal;
property Method
Method: Method;
property Miscellaneous
Miscellaneous: Miscellaneous;
property ModuleDeclaration
ModuleDeclaration: ModuleDeclaration;
property ModuleSpecifier
ModuleSpecifier: ModuleSpecifier;
property ObjectMember
ObjectMember: ObjectMember;
property Pattern
Pattern: Pattern;
property PatternLike
PatternLike: PatternLike;
property Private
Private: Private;
property Property
Property: Property;
property Pureish
Pureish: Pureish;
property Scopable
Scopable: Scopable;
property Standardized
Standardized: Standardized;
property Statement
Statement: Statement;
property Terminatorless
Terminatorless: Terminatorless;
property TSBaseType
TSBaseType: TSBaseType;
property TSEntityName
TSEntityName: TSEntityName;
property TSType
TSType: TSType;
property TSTypeElement
TSTypeElement: TSTypeElement;
property TypeScript
TypeScript: TypeScript;
property UnaryLike
UnaryLike: UnaryLike;
property UserWhitespacable
UserWhitespacable: UserWhitespacable;
property While
While: While;
interface AnyTypeAnnotation
interface AnyTypeAnnotation extends BaseNode {}
property type
type: 'AnyTypeAnnotation';
interface ArgumentPlaceholder
interface ArgumentPlaceholder extends BaseNode {}
property type
type: 'ArgumentPlaceholder';
interface ArrayExpression
interface ArrayExpression extends BaseNode {}
interface ArrayPattern
interface ArrayPattern extends BaseNode {}
property decorators
decorators: Array<Decorator> | null;
property elements
elements: Array<null | PatternLike | LVal>;
property optional
optional: boolean | null;
property type
type: 'ArrayPattern';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
interface ArrayTypeAnnotation
interface ArrayTypeAnnotation extends BaseNode {}
property elementType
elementType: FlowType;
property type
type: 'ArrayTypeAnnotation';
interface ArrowFunctionExpression
interface ArrowFunctionExpression extends BaseNode {}
property async
async: boolean;
property body
body: BlockStatement | Expression;
property expression
expression: boolean;
property generator
generator: boolean;
property params
params: Array<Identifier | Pattern | RestElement>;
property predicate
predicate: DeclaredPredicate | InferredPredicate | null;
property returnType
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
property type
type: 'ArrowFunctionExpression';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface AssignmentExpression
interface AssignmentExpression extends BaseNode {}
interface AssignmentPattern
interface AssignmentPattern extends BaseNode {}
property decorators
decorators: Array<Decorator> | null;
property left
left: | Identifier | ObjectPattern | ArrayPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
property optional
optional: boolean | null;
property right
right: Expression;
property type
type: 'AssignmentPattern';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
interface AwaitExpression
interface AwaitExpression extends BaseNode {}
interface BigIntLiteral
interface BigIntLiteral extends BaseNode {}
interface BinaryExpression
interface BinaryExpression extends BaseNode {}
property left
left: Expression | PrivateName;
property operator
operator: | '+' | '-' | '/' | '%' | '*' | '**' | '&' | '|' | '>>' | '>>>' | '<<' | '^' | '==' | '===' | '!=' | '!==' | 'in' | 'instanceof' | '>' | '<' | '>=' | '<=' | '|>';
property right
right: Expression;
property type
type: 'BinaryExpression';
interface BindExpression
interface BindExpression extends BaseNode {}
interface BlockStatement
interface BlockStatement extends BaseNode {}
property body
body: Array<Statement>;
property directives
directives: Array<Directive>;
property type
type: 'BlockStatement';
interface BooleanLiteral
interface BooleanLiteral extends BaseNode {}
interface BooleanLiteralTypeAnnotation
interface BooleanLiteralTypeAnnotation extends BaseNode {}
interface BooleanTypeAnnotation
interface BooleanTypeAnnotation extends BaseNode {}
property type
type: 'BooleanTypeAnnotation';
interface BreakStatement
interface BreakStatement extends BaseNode {}
interface CallExpression
interface CallExpression extends BaseNode {}
property arguments
arguments: Array<Expression | SpreadElement | ArgumentPlaceholder>;
property callee
callee: Expression | Super | V8IntrinsicIdentifier;
property optional
optional: boolean | null;
property type
type: 'CallExpression';
property typeArguments
typeArguments: TypeParameterInstantiation | null;
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface CatchClause
interface CatchClause extends BaseNode {}
interface ClassAccessorProperty
interface ClassAccessorProperty extends BaseNode {}
property abstract
abstract: boolean | null;
property accessibility
accessibility: 'public' | 'private' | 'protected' | null;
property computed
computed: boolean;
property declare
declare: boolean | null;
property decorators
decorators: Array<Decorator> | null;
property definite
definite: boolean | null;
property key
key: | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression | PrivateName;
property optional
optional: boolean | null;
property override
override: boolean;
property readonly
readonly: boolean | null;
property static
static: boolean;
property type
type: 'ClassAccessorProperty';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
property value
value: Expression | null;
property variance
variance: Variance | null;
interface ClassBody
interface ClassBody extends BaseNode {}
interface ClassDeclaration
interface ClassDeclaration extends BaseNode {}
property abstract
abstract: boolean | null;
property body
body: ClassBody;
property declare
declare: boolean | null;
property decorators
decorators: Array<Decorator> | null;
property id
id: Identifier | null;
property implements
implements: Array<TSExpressionWithTypeArguments | ClassImplements> | null;
property mixins
mixins: InterfaceExtends | null;
property superClass
superClass: Expression | null;
property superTypeParameters
superTypeParameters: | TypeParameterInstantiation | TSTypeParameterInstantiation | null;
property type
type: 'ClassDeclaration';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface ClassExpression
interface ClassExpression extends BaseNode {}
property body
body: ClassBody;
property decorators
decorators: Array<Decorator> | null;
property id
id: Identifier | null;
property implements
implements: Array<TSExpressionWithTypeArguments | ClassImplements> | null;
property mixins
mixins: InterfaceExtends | null;
property superClass
superClass: Expression | null;
property superTypeParameters
superTypeParameters: | TypeParameterInstantiation | TSTypeParameterInstantiation | null;
property type
type: 'ClassExpression';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface ClassImplements
interface ClassImplements extends BaseNode {}
property id
id: Identifier;
property type
type: 'ClassImplements';
property typeParameters
typeParameters: TypeParameterInstantiation | null;
interface ClassMethod
interface ClassMethod extends BaseNode {}
property abstract
abstract: boolean | null;
property access
access: 'public' | 'private' | 'protected' | null;
property accessibility
accessibility: 'public' | 'private' | 'protected' | null;
property async
async: boolean;
property body
body: BlockStatement;
property computed
computed: boolean;
property decorators
decorators: Array<Decorator> | null;
property generator
generator: boolean;
property key
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
property kind
kind: 'get' | 'set' | 'method' | 'constructor';
property optional
optional: boolean | null;
property override
override: boolean;
property params
params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
property returnType
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
property static
static: boolean;
property type
type: 'ClassMethod';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface ClassPrivateMethod
interface ClassPrivateMethod extends BaseNode {}
property abstract
abstract: boolean | null;
property access
access: 'public' | 'private' | 'protected' | null;
property accessibility
accessibility: 'public' | 'private' | 'protected' | null;
property async
async: boolean;
property body
body: BlockStatement;
property computed
computed: boolean;
property decorators
decorators: Array<Decorator> | null;
property generator
generator: boolean;
property key
key: PrivateName;
property kind
kind: 'get' | 'set' | 'method';
property optional
optional: boolean | null;
property override
override: boolean;
property params
params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
property returnType
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
property static
static: boolean;
property type
type: 'ClassPrivateMethod';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface ClassPrivateProperty
interface ClassPrivateProperty extends BaseNode {}
property decorators
decorators: Array<Decorator> | null;
property definite
definite: boolean | null;
property key
key: PrivateName;
property optional
optional: boolean | null;
property readonly
readonly: boolean | null;
property static
static: boolean;
property type
type: 'ClassPrivateProperty';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
property value
value: Expression | null;
property variance
variance: Variance | null;
interface ClassProperty
interface ClassProperty extends BaseNode {}
property abstract
abstract: boolean | null;
property accessibility
accessibility: 'public' | 'private' | 'protected' | null;
property computed
computed: boolean;
property declare
declare: boolean | null;
property decorators
decorators: Array<Decorator> | null;
property definite
definite: boolean | null;
property key
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
property optional
optional: boolean | null;
property override
override: boolean;
property readonly
readonly: boolean | null;
property static
static: boolean;
property type
type: 'ClassProperty';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
property value
value: Expression | null;
property variance
variance: Variance | null;
interface CommentBlock
interface CommentBlock extends BaseComment {}
property type
type: 'CommentBlock';
interface CommentLine
interface CommentLine extends BaseComment {}
property type
type: 'CommentLine';
interface ConditionalExpression
interface ConditionalExpression extends BaseNode {}
property alternate
alternate: Expression;
property consequent
consequent: Expression;
property test
test: Expression;
property type
type: 'ConditionalExpression';
interface ContinueStatement
interface ContinueStatement extends BaseNode {}
interface DebuggerStatement
interface DebuggerStatement extends BaseNode {}
property type
type: 'DebuggerStatement';
interface DecimalLiteral
interface DecimalLiteral extends BaseNode {}
interface DeclareClass
interface DeclareClass extends BaseNode {}
property body
body: ObjectTypeAnnotation;
property extends
extends: Array<InterfaceExtends> | null;
property id
id: Identifier;
property implements
implements: Array<ClassImplements> | null;
property mixins
mixins: Array<InterfaceExtends> | null;
property type
type: 'DeclareClass';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface DeclaredPredicate
interface DeclaredPredicate extends BaseNode {}
interface DeclareExportAllDeclaration
interface DeclareExportAllDeclaration extends BaseNode {}
property assertions
assertions: Array<ImportAttribute> | null;
property attributes
attributes: Array<ImportAttribute> | null;
property exportKind
exportKind: 'type' | 'value' | null;
property source
source: StringLiteral;
property type
type: 'DeclareExportAllDeclaration';
interface DeclareExportDeclaration
interface DeclareExportDeclaration extends BaseNode {}
property assertions
assertions: Array<ImportAttribute> | null;
property attributes
attributes: Array<ImportAttribute> | null;
property declaration
declaration: Flow | null;
property default
default: boolean | null;
property source
source: StringLiteral | null;
property specifiers
specifiers: Array<ExportSpecifier | ExportNamespaceSpecifier> | null;
property type
type: 'DeclareExportDeclaration';
interface DeclareFunction
interface DeclareFunction extends BaseNode {}
interface DeclareInterface
interface DeclareInterface extends BaseNode {}
property body
body: ObjectTypeAnnotation;
property extends
extends: Array<InterfaceExtends> | null;
property id
id: Identifier;
property type
type: 'DeclareInterface';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface DeclareModule
interface DeclareModule extends BaseNode {}
interface DeclareModuleExports
interface DeclareModuleExports extends BaseNode {}
property type
type: 'DeclareModuleExports';
property typeAnnotation
typeAnnotation: TypeAnnotation;
interface DeclareOpaqueType
interface DeclareOpaqueType extends BaseNode {}
property id
id: Identifier;
property impltype
impltype: FlowType | null;
property supertype
supertype: FlowType | null;
property type
type: 'DeclareOpaqueType';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface DeclareTypeAlias
interface DeclareTypeAlias extends BaseNode {}
property id
id: Identifier;
property right
right: FlowType;
property type
type: 'DeclareTypeAlias';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface DeclareVariable
interface DeclareVariable extends BaseNode {}
interface Decorator
interface Decorator extends BaseNode {}
property expression
expression: Expression;
property type
type: 'Decorator';
interface Directive
interface Directive extends BaseNode {}
interface DirectiveLiteral
interface DirectiveLiteral extends BaseNode {}
interface DoExpression
interface DoExpression extends BaseNode {}
interface DoWhileStatement
interface DoWhileStatement extends BaseNode {}
interface EmptyStatement
interface EmptyStatement extends BaseNode {}
property type
type: 'EmptyStatement';
interface EmptyTypeAnnotation
interface EmptyTypeAnnotation extends BaseNode {}
property type
type: 'EmptyTypeAnnotation';
interface EnumBooleanBody
interface EnumBooleanBody extends BaseNode {}
property explicitType
explicitType: boolean;
property hasUnknownMembers
hasUnknownMembers: boolean;
property members
members: Array<EnumBooleanMember>;
property type
type: 'EnumBooleanBody';
interface EnumBooleanMember
interface EnumBooleanMember extends BaseNode {}
interface EnumDeclaration
interface EnumDeclaration extends BaseNode {}
interface EnumDefaultedMember
interface EnumDefaultedMember extends BaseNode {}
interface EnumNumberBody
interface EnumNumberBody extends BaseNode {}
property explicitType
explicitType: boolean;
property hasUnknownMembers
hasUnknownMembers: boolean;
property members
members: Array<EnumNumberMember>;
property type
type: 'EnumNumberBody';
interface EnumNumberMember
interface EnumNumberMember extends BaseNode {}
interface EnumStringBody
interface EnumStringBody extends BaseNode {}
property explicitType
explicitType: boolean;
property hasUnknownMembers
hasUnknownMembers: boolean;
property members
members: Array<EnumStringMember | EnumDefaultedMember>;
property type
type: 'EnumStringBody';
interface EnumStringMember
interface EnumStringMember extends BaseNode {}
interface EnumSymbolBody
interface EnumSymbolBody extends BaseNode {}
property hasUnknownMembers
hasUnknownMembers: boolean;
property members
members: Array<EnumDefaultedMember>;
property type
type: 'EnumSymbolBody';
interface ExistsTypeAnnotation
interface ExistsTypeAnnotation extends BaseNode {}
property type
type: 'ExistsTypeAnnotation';
interface ExportAllDeclaration
interface ExportAllDeclaration extends BaseNode {}
property assertions
assertions: Array<ImportAttribute> | null;
property attributes
attributes: Array<ImportAttribute> | null;
property exportKind
exportKind: 'type' | 'value' | null;
property source
source: StringLiteral;
property type
type: 'ExportAllDeclaration';
interface ExportDefaultDeclaration
interface ExportDefaultDeclaration extends BaseNode {}
property declaration
declaration: | TSDeclareFunction | FunctionDeclaration | ClassDeclaration | Expression;
property exportKind
exportKind: 'value' | null;
property type
type: 'ExportDefaultDeclaration';
interface ExportDefaultSpecifier
interface ExportDefaultSpecifier extends BaseNode {}
interface ExportNamedDeclaration
interface ExportNamedDeclaration extends BaseNode {}
property assertions
assertions: Array<ImportAttribute> | null;
property attributes
attributes: Array<ImportAttribute> | null;
property declaration
declaration: Declaration | null;
property exportKind
exportKind: 'type' | 'value' | null;
property source
source: StringLiteral | null;
property specifiers
specifiers: Array< ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>;
property type
type: 'ExportNamedDeclaration';
interface ExportNamespaceSpecifier
interface ExportNamespaceSpecifier extends BaseNode {}
interface ExportSpecifier
interface ExportSpecifier extends BaseNode {}
property exported
exported: Identifier | StringLiteral;
property exportKind
exportKind: 'type' | 'value' | null;
property local
local: Identifier;
property type
type: 'ExportSpecifier';
interface ExpressionStatement
interface ExpressionStatement extends BaseNode {}
property expression
expression: Expression;
property type
type: 'ExpressionStatement';
interface File
interface File extends BaseNode {}
interface ForInStatement
interface ForInStatement extends BaseNode {}
interface ForOfStatement
interface ForOfStatement extends BaseNode {}
interface ForStatement
interface ForStatement extends BaseNode {}
interface FunctionDeclaration
interface FunctionDeclaration extends BaseNode {}
property async
async: boolean;
property body
body: BlockStatement;
property declare
declare: boolean | null;
property generator
generator: boolean;
property id
id: Identifier | null;
property params
params: Array<Identifier | Pattern | RestElement>;
property predicate
predicate: DeclaredPredicate | InferredPredicate | null;
property returnType
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
property type
type: 'FunctionDeclaration';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface FunctionExpression
interface FunctionExpression extends BaseNode {}
property async
async: boolean;
property body
body: BlockStatement;
property generator
generator: boolean;
property id
id: Identifier | null;
property params
params: Array<Identifier | Pattern | RestElement>;
property predicate
predicate: DeclaredPredicate | InferredPredicate | null;
property returnType
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
property type
type: 'FunctionExpression';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface FunctionTypeAnnotation
interface FunctionTypeAnnotation extends BaseNode {}
property params
params: Array<FunctionTypeParam>;
property rest
rest: FunctionTypeParam | null;
property returnType
returnType: FlowType;
property this
this: FunctionTypeParam | null;
property type
type: 'FunctionTypeAnnotation';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface FunctionTypeParam
interface FunctionTypeParam extends BaseNode {}
property name
name: Identifier | null;
property optional
optional: boolean | null;
property type
type: 'FunctionTypeParam';
property typeAnnotation
typeAnnotation: FlowType;
interface GenericTypeAnnotation
interface GenericTypeAnnotation extends BaseNode {}
property id
id: Identifier | QualifiedTypeIdentifier;
property type
type: 'GenericTypeAnnotation';
property typeParameters
typeParameters: TypeParameterInstantiation | null;
interface Identifier
interface Identifier extends BaseNode {}
property decorators
decorators: Array<Decorator> | null;
property name
name: string;
property optional
optional: boolean | null;
property type
type: 'Identifier';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
interface IfStatement
interface IfStatement extends BaseNode {}
property alternate
alternate: Statement | null;
property consequent
consequent: Statement;
property test
test: Expression;
property type
type: 'IfStatement';
interface ImportAttribute
interface ImportAttribute extends BaseNode {}
interface ImportDeclaration
interface ImportDeclaration extends BaseNode {}
property assertions
assertions: Array<ImportAttribute> | null;
property attributes
attributes: Array<ImportAttribute> | null;
property importKind
importKind: 'type' | 'typeof' | 'value' | null;
property module
module: boolean | null;
property phase
phase: 'source' | 'defer' | null;
property source
source: StringLiteral;
property specifiers
specifiers: Array< ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
property type
type: 'ImportDeclaration';
interface ImportDefaultSpecifier
interface ImportDefaultSpecifier extends BaseNode {}
interface ImportExpression
interface ImportExpression extends BaseNode {}
interface ImportNamespaceSpecifier
interface ImportNamespaceSpecifier extends BaseNode {}
interface ImportSpecifier
interface ImportSpecifier extends BaseNode {}
property imported
imported: Identifier | StringLiteral;
property importKind
importKind: 'type' | 'typeof' | 'value' | null;
property local
local: Identifier;
property type
type: 'ImportSpecifier';
interface IndexedAccessType
interface IndexedAccessType extends BaseNode {}
property indexType
indexType: FlowType;
property objectType
objectType: FlowType;
property type
type: 'IndexedAccessType';
interface InferredPredicate
interface InferredPredicate extends BaseNode {}
property type
type: 'InferredPredicate';
interface InterfaceDeclaration
interface InterfaceDeclaration extends BaseNode {}
property body
body: ObjectTypeAnnotation;
property extends
extends: Array<InterfaceExtends> | null;
property id
id: Identifier;
property type
type: 'InterfaceDeclaration';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface InterfaceExtends
interface InterfaceExtends extends BaseNode {}
property id
id: Identifier | QualifiedTypeIdentifier;
property type
type: 'InterfaceExtends';
property typeParameters
typeParameters: TypeParameterInstantiation | null;
interface InterfaceTypeAnnotation
interface InterfaceTypeAnnotation extends BaseNode {}
interface InterpreterDirective
interface InterpreterDirective extends BaseNode {}
interface IntersectionTypeAnnotation
interface IntersectionTypeAnnotation extends BaseNode {}
interface JSXAttribute
interface JSXAttribute extends BaseNode {}
interface JSXClosingElement
interface JSXClosingElement extends BaseNode {}
interface JSXClosingFragment
interface JSXClosingFragment extends BaseNode {}
property type
type: 'JSXClosingFragment';
interface JSXElement
interface JSXElement extends BaseNode {}
property children
children: Array< JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>;
property closingElement
closingElement: JSXClosingElement | null;
property openingElement
openingElement: JSXOpeningElement;
property selfClosing
selfClosing: boolean | null;
property type
type: 'JSXElement';
interface JSXEmptyExpression
interface JSXEmptyExpression extends BaseNode {}
property type
type: 'JSXEmptyExpression';
interface JSXExpressionContainer
interface JSXExpressionContainer extends BaseNode {}
property expression
expression: Expression | JSXEmptyExpression;
property type
type: 'JSXExpressionContainer';
interface JSXFragment
interface JSXFragment extends BaseNode {}
property children
children: Array< JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>;
property closingFragment
closingFragment: JSXClosingFragment;
property openingFragment
openingFragment: JSXOpeningFragment;
property type
type: 'JSXFragment';
interface JSXIdentifier
interface JSXIdentifier extends BaseNode {}
interface JSXMemberExpression
interface JSXMemberExpression extends BaseNode {}
interface JSXNamespacedName
interface JSXNamespacedName extends BaseNode {}
interface JSXOpeningElement
interface JSXOpeningElement extends BaseNode {}
property attributes
attributes: Array<JSXAttribute | JSXSpreadAttribute>;
property name
name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
property selfClosing
selfClosing: boolean;
property type
type: 'JSXOpeningElement';
property typeArguments
typeArguments: TypeParameterInstantiation | null;
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface JSXOpeningFragment
interface JSXOpeningFragment extends BaseNode {}
property type
type: 'JSXOpeningFragment';
interface JSXSpreadAttribute
interface JSXSpreadAttribute extends BaseNode {}
interface JSXSpreadChild
interface JSXSpreadChild extends BaseNode {}
property expression
expression: Expression;
property type
type: 'JSXSpreadChild';
interface JSXText
interface JSXText extends BaseNode {}
interface LabeledStatement
interface LabeledStatement extends BaseNode {}
interface LogicalExpression
interface LogicalExpression extends BaseNode {}
interface MemberExpression
interface MemberExpression extends BaseNode {}
interface MetaProperty
interface MetaProperty extends BaseNode {}
interface MixedTypeAnnotation
interface MixedTypeAnnotation extends BaseNode {}
property type
type: 'MixedTypeAnnotation';
interface ModuleExpression
interface ModuleExpression extends BaseNode {}
interface NewExpression
interface NewExpression extends BaseNode {}
property arguments
arguments: Array<Expression | SpreadElement | ArgumentPlaceholder>;
property callee
callee: Expression | Super | V8IntrinsicIdentifier;
property optional
optional: boolean | null;
property type
type: 'NewExpression';
property typeArguments
typeArguments: TypeParameterInstantiation | null;
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface NullableTypeAnnotation
interface NullableTypeAnnotation extends BaseNode {}
property type
type: 'NullableTypeAnnotation';
property typeAnnotation
typeAnnotation: FlowType;
interface NullLiteral
interface NullLiteral extends BaseNode {}
property type
type: 'NullLiteral';
interface NullLiteralTypeAnnotation
interface NullLiteralTypeAnnotation extends BaseNode {}
property type
type: 'NullLiteralTypeAnnotation';
interface NumberLiteralTypeAnnotation
interface NumberLiteralTypeAnnotation extends BaseNode {}
interface NumberTypeAnnotation
interface NumberTypeAnnotation extends BaseNode {}
property type
type: 'NumberTypeAnnotation';
interface NumericLiteral
interface NumericLiteral extends BaseNode {}
interface ObjectExpression
interface ObjectExpression extends BaseNode {}
property properties
properties: Array<ObjectMethod | ObjectProperty | SpreadElement>;
property type
type: 'ObjectExpression';
interface ObjectMethod
interface ObjectMethod extends BaseNode {}
property async
async: boolean;
property body
body: BlockStatement;
property computed
computed: boolean;
property decorators
decorators: Array<Decorator> | null;
property generator
generator: boolean;
property key
key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral;
property kind
kind: 'method' | 'get' | 'set';
property params
params: Array<Identifier | Pattern | RestElement>;
property returnType
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
property type
type: 'ObjectMethod';
property typeParameters
typeParameters: | TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
interface ObjectPattern
interface ObjectPattern extends BaseNode {}
property decorators
decorators: Array<Decorator> | null;
property optional
optional: boolean | null;
property properties
properties: Array<RestElement | ObjectProperty>;
property type
type: 'ObjectPattern';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
interface ObjectProperty
interface ObjectProperty extends BaseNode {}
property computed
computed: boolean;
property decorators
decorators: Array<Decorator> | null;
property key
key: | Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | DecimalLiteral | PrivateName;
property shorthand
shorthand: boolean;
property type
type: 'ObjectProperty';
property value
value: Expression | PatternLike;
interface ObjectTypeAnnotation
interface ObjectTypeAnnotation extends BaseNode {}
property callProperties
callProperties: Array<ObjectTypeCallProperty>;
property exact
exact: boolean;
property indexers
indexers: Array<ObjectTypeIndexer>;
property inexact
inexact: boolean | null;
property internalSlots
internalSlots: Array<ObjectTypeInternalSlot>;
property properties
properties: Array<ObjectTypeProperty | ObjectTypeSpreadProperty>;
property type
type: 'ObjectTypeAnnotation';
interface ObjectTypeCallProperty
interface ObjectTypeCallProperty extends BaseNode {}
interface ObjectTypeIndexer
interface ObjectTypeIndexer extends BaseNode {}
interface ObjectTypeInternalSlot
interface ObjectTypeInternalSlot extends BaseNode {}
interface ObjectTypeProperty
interface ObjectTypeProperty extends BaseNode {}
property key
key: Identifier | StringLiteral;
property kind
kind: 'init' | 'get' | 'set';
property method
method: boolean;
property optional
optional: boolean;
property proto
proto: boolean;
property static
static: boolean;
property type
type: 'ObjectTypeProperty';
property value
value: FlowType;
property variance
variance: Variance | null;
interface ObjectTypeSpreadProperty
interface ObjectTypeSpreadProperty extends BaseNode {}
interface OpaqueType
interface OpaqueType extends BaseNode {}
property id
id: Identifier;
property impltype
impltype: FlowType;
property supertype
supertype: FlowType | null;
property type
type: 'OpaqueType';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface OptionalCallExpression
interface OptionalCallExpression extends BaseNode {}
property arguments
arguments: Array<Expression | SpreadElement | ArgumentPlaceholder>;
property callee
callee: Expression;
property optional
optional: boolean;
property type
type: 'OptionalCallExpression';
property typeArguments
typeArguments: TypeParameterInstantiation | null;
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface OptionalIndexedAccessType
interface OptionalIndexedAccessType extends BaseNode {}
property indexType
indexType: FlowType;
property objectType
objectType: FlowType;
property optional
optional: boolean;
property type
type: 'OptionalIndexedAccessType';
interface OptionalMemberExpression
interface OptionalMemberExpression extends BaseNode {}
interface ParenthesizedExpression
interface ParenthesizedExpression extends BaseNode {}
property expression
expression: Expression;
property type
type: 'ParenthesizedExpression';
interface PipelineBareFunction
interface PipelineBareFunction extends BaseNode {}
interface PipelinePrimaryTopicReference
interface PipelinePrimaryTopicReference extends BaseNode {}
property type
type: 'PipelinePrimaryTopicReference';
interface PipelineTopicExpression
interface PipelineTopicExpression extends BaseNode {}
property expression
expression: Expression;
property type
type: 'PipelineTopicExpression';
interface Placeholder
interface Placeholder extends BaseNode {}
property decorators
decorators: Array<Decorator> | null;
property expectedNode
expectedNode: | 'Identifier' | 'StringLiteral' | 'Expression' | 'Statement' | 'Declaration' | 'BlockStatement' | 'ClassBody' | 'Pattern';
property name
name: Identifier;
property optional
optional: boolean | null;
property type
type: 'Placeholder';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
interface PrivateName
interface PrivateName extends BaseNode {}
interface Program
interface Program extends BaseNode {}
property body
body: Array<Statement>;
property directives
directives: Array<Directive>;
property interpreter
interpreter: InterpreterDirective | null;
property sourceType
sourceType: 'script' | 'module';
property type
type: 'Program';
interface QualifiedTypeIdentifier
interface QualifiedTypeIdentifier extends BaseNode {}
property id
id: Identifier;
property qualification
qualification: Identifier | QualifiedTypeIdentifier;
property type
type: 'QualifiedTypeIdentifier';
interface RecordExpression
interface RecordExpression extends BaseNode {}
property properties
properties: Array<ObjectProperty | SpreadElement>;
property type
type: 'RecordExpression';
interface RegExpLiteral
interface RegExpLiteral extends BaseNode {}
interface RestElement
interface RestElement extends BaseNode {}
property argument
argument: LVal;
property decorators
decorators: Array<Decorator> | null;
property optional
optional: boolean | null;
property type
type: 'RestElement';
property typeAnnotation
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
interface ReturnStatement
interface ReturnStatement extends BaseNode {}
interface SequenceExpression
interface SequenceExpression extends BaseNode {}
property expressions
expressions: Array<Expression>;
property type
type: 'SequenceExpression';
interface SourceLocation
interface SourceLocation {}
interface SpreadElement
interface SpreadElement extends BaseNode {}
interface StaticBlock
interface StaticBlock extends BaseNode {}
interface StringLiteral
interface StringLiteral extends BaseNode {}
interface StringLiteralTypeAnnotation
interface StringLiteralTypeAnnotation extends BaseNode {}
interface StringTypeAnnotation
interface StringTypeAnnotation extends BaseNode {}
property type
type: 'StringTypeAnnotation';
interface SwitchCase
interface SwitchCase extends BaseNode {}
property consequent
consequent: Array<Statement>;
property test
test: Expression | null;
property type
type: 'SwitchCase';
interface SwitchStatement
interface SwitchStatement extends BaseNode {}
property cases
cases: Array<SwitchCase>;
property discriminant
discriminant: Expression;
property type
type: 'SwitchStatement';
interface SymbolTypeAnnotation
interface SymbolTypeAnnotation extends BaseNode {}
property type
type: 'SymbolTypeAnnotation';
interface TaggedTemplateExpression
interface TaggedTemplateExpression extends BaseNode {}
property quasi
quasi: TemplateLiteral;
property tag
tag: Expression;
property type
type: 'TaggedTemplateExpression';
property typeParameters
typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
interface TemplateElement
interface TemplateElement extends BaseNode {}
interface TemplateLiteral
interface TemplateLiteral extends BaseNode {}
property expressions
expressions: Array<Expression | TSType>;
property quasis
quasis: Array<TemplateElement>;
property type
type: 'TemplateLiteral';
interface ThisExpression
interface ThisExpression extends BaseNode {}
property type
type: 'ThisExpression';
interface ThisTypeAnnotation
interface ThisTypeAnnotation extends BaseNode {}
property type
type: 'ThisTypeAnnotation';
interface ThrowStatement
interface ThrowStatement extends BaseNode {}
interface TopicReference
interface TopicReference extends BaseNode {}
property type
type: 'TopicReference';
interface TryStatement
interface TryStatement extends BaseNode {}
interface TSAnyKeyword
interface TSAnyKeyword extends BaseNode {}
property type
type: 'TSAnyKeyword';
interface TSArrayType
interface TSArrayType extends BaseNode {}
property elementType
elementType: TSType;
property type
type: 'TSArrayType';
interface TSAsExpression
interface TSAsExpression extends BaseNode {}
property expression
expression: Expression;
property type
type: 'TSAsExpression';
property typeAnnotation
typeAnnotation: TSType;
interface TSBigIntKeyword
interface TSBigIntKeyword extends BaseNode {}
property type
type: 'TSBigIntKeyword';
interface TSBooleanKeyword
interface TSBooleanKeyword extends BaseNode {}
property type
type: 'TSBooleanKeyword';
interface TSCallSignatureDeclaration
interface TSCallSignatureDeclaration extends BaseNode {}
property parameters
parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>;
property type
type: 'TSCallSignatureDeclaration';
property typeAnnotation
typeAnnotation: TSTypeAnnotation | null;
property typeParameters
typeParameters: TSTypeParameterDeclaration | null;
interface TSConditionalType
interface TSConditionalType extends BaseNode {}
property checkType
checkType: TSType;
property extendsType
extendsType: TSType;
property falseType
falseType: TSType;
property trueType
trueType: TSType;
property type
type: 'TSConditionalType';
interface TSConstructorType
interface TSConstructorType extends BaseNode {}
property abstract
abstract: boolean | null;
property parameters
parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>;
property type
type: 'TSConstructorType';
property typeAnnotation
typeAnnotation: TSTypeAnnotation | null;
property typeParameters
typeParameters: TSTypeParameterDeclaration | null;
interface TSConstructSignatureDeclaration
interface TSConstructSignatureDeclaration extends BaseNode {}
property parameters
parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>;
property type
type: 'TSConstructSignatureDeclaration';
property typeAnnotation
typeAnnotation: TSTypeAnnotation | null;
property typeParameters
typeParameters: TSTypeParameterDeclaration | null;
interface TSDeclareFunction
interface TSDeclareFunction extends BaseNode {}
property async
async: boolean;
property declare
declare: boolean | null;
property generator
generator: boolean;
property id
id: Identifier | null;
property params
params: Array<Identifier | Pattern | RestElement>;
property returnType
returnType: TSTypeAnnotation | Noop | null;
property type
type: 'TSDeclareFunction';
property typeParameters
typeParameters: TSTypeParameterDeclaration | Noop | null;
interface TSDeclareMethod
interface TSDeclareMethod extends BaseNode {}
property abstract
abstract: boolean | null;
property access
access: 'public' | 'private' | 'protected' | null;
property accessibility
accessibility: 'public' | 'private' | 'protected' | null;
property async
async: boolean;
property computed
computed: boolean;
property decorators
decorators: Array<Decorator> | null;
property generator
generator: boolean;
property key
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
property kind
kind: 'get' | 'set' | 'method' | 'constructor';
property optional
optional: boolean | null;
property override
override: boolean;
property params
params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
property returnType
returnType: TSTypeAnnotation | Noop | null;
property static
static: boolean;
property type
type: 'TSDeclareMethod';
property typeParameters
typeParameters: TSTypeParameterDeclaration | Noop | null;
interface TSEnumBody
interface TSEnumBody extends BaseNode {}
interface TSEnumDeclaration
interface TSEnumDeclaration extends BaseNode {}
interface TSEnumMember
interface TSEnumMember extends BaseNode {}
property id
id: Identifier | StringLiteral;
property initializer
initializer: Expression | null;
property type
type: 'TSEnumMember';
interface TSExportAssignment
interface TSExportAssignment extends BaseNode {}
property expression
expression: Expression;
property type
type: 'TSExportAssignment';
interface TSExpressionWithTypeArguments
interface TSExpressionWithTypeArguments extends BaseNode {}
property expression
expression: TSEntityName;
property type
type: 'TSExpressionWithTypeArguments';
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface TSExternalModuleReference
interface TSExternalModuleReference extends BaseNode {}
property expression
expression: StringLiteral;
property type
type: 'TSExternalModuleReference';
interface TSFunctionType
interface TSFunctionType extends BaseNode {}
property parameters
parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>;
property type
type: 'TSFunctionType';
property typeAnnotation
typeAnnotation: TSTypeAnnotation | null;
property typeParameters
typeParameters: TSTypeParameterDeclaration | null;
interface TSImportEqualsDeclaration
interface TSImportEqualsDeclaration extends BaseNode {}
property id
id: Identifier;
property importKind
importKind: 'type' | 'value' | null;
property isExport
isExport: boolean;
property moduleReference
moduleReference: TSEntityName | TSExternalModuleReference;
property type
type: 'TSImportEqualsDeclaration';
interface TSImportType
interface TSImportType extends BaseNode {}
property argument
argument: StringLiteral;
property options
options: ObjectExpression | null;
property qualifier
qualifier: TSEntityName | null;
property type
type: 'TSImportType';
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface TSIndexedAccessType
interface TSIndexedAccessType extends BaseNode {}
property indexType
indexType: TSType;
property objectType
objectType: TSType;
property type
type: 'TSIndexedAccessType';
interface TSIndexSignature
interface TSIndexSignature extends BaseNode {}
property parameters
parameters: Array<Identifier>;
property readonly
readonly: boolean | null;
property static
static: boolean | null;
property type
type: 'TSIndexSignature';
property typeAnnotation
typeAnnotation: TSTypeAnnotation | null;
interface TSInferType
interface TSInferType extends BaseNode {}
property type
type: 'TSInferType';
property typeParameter
typeParameter: TSTypeParameter;
interface TSInstantiationExpression
interface TSInstantiationExpression extends BaseNode {}
property expression
expression: Expression;
property type
type: 'TSInstantiationExpression';
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface TSInterfaceBody
interface TSInterfaceBody extends BaseNode {}
interface TSInterfaceDeclaration
interface TSInterfaceDeclaration extends BaseNode {}
interface TSIntersectionType
interface TSIntersectionType extends BaseNode {}
interface TSIntrinsicKeyword
interface TSIntrinsicKeyword extends BaseNode {}
property type
type: 'TSIntrinsicKeyword';
interface TSLiteralType
interface TSLiteralType extends BaseNode {}
interface TSMappedType
interface TSMappedType extends BaseNode {}
property nameType
nameType: TSType | null;
property optional
optional: true | false | '+' | '-' | null;
property readonly
readonly: true | false | '+' | '-' | null;
property type
type: 'TSMappedType';
property typeAnnotation
typeAnnotation: TSType | null;
property typeParameter
typeParameter: TSTypeParameter;
interface TSMethodSignature
interface TSMethodSignature extends BaseNode {}
property computed
computed: boolean;
property key
key: Expression;
property kind
kind: 'method' | 'get' | 'set';
property optional
optional: boolean | null;
property parameters
parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>;
property type
type: 'TSMethodSignature';
property typeAnnotation
typeAnnotation: TSTypeAnnotation | null;
property typeParameters
typeParameters: TSTypeParameterDeclaration | null;
interface TSModuleBlock
interface TSModuleBlock extends BaseNode {}
interface TSModuleDeclaration
interface TSModuleDeclaration extends BaseNode {}
interface TSNamedTupleMember
interface TSNamedTupleMember extends BaseNode {}
property elementType
elementType: TSType;
property label
label: Identifier;
property optional
optional: boolean;
property type
type: 'TSNamedTupleMember';
interface TSNamespaceExportDeclaration
interface TSNamespaceExportDeclaration extends BaseNode {}
interface TSNeverKeyword
interface TSNeverKeyword extends BaseNode {}
property type
type: 'TSNeverKeyword';
interface TSNonNullExpression
interface TSNonNullExpression extends BaseNode {}
property expression
expression: Expression;
property type
type: 'TSNonNullExpression';
interface TSNullKeyword
interface TSNullKeyword extends BaseNode {}
property type
type: 'TSNullKeyword';
interface TSNumberKeyword
interface TSNumberKeyword extends BaseNode {}
property type
type: 'TSNumberKeyword';
interface TSObjectKeyword
interface TSObjectKeyword extends BaseNode {}
property type
type: 'TSObjectKeyword';
interface TSOptionalType
interface TSOptionalType extends BaseNode {}
property type
type: 'TSOptionalType';
property typeAnnotation
typeAnnotation: TSType;
interface TSParameterProperty
interface TSParameterProperty extends BaseNode {}
property accessibility
accessibility: 'public' | 'private' | 'protected' | null;
property decorators
decorators: Array<Decorator> | null;
property override
override: boolean | null;
property parameter
parameter: Identifier | AssignmentPattern;
property readonly
readonly: boolean | null;
property type
type: 'TSParameterProperty';
interface TSParenthesizedType
interface TSParenthesizedType extends BaseNode {}
property type
type: 'TSParenthesizedType';
property typeAnnotation
typeAnnotation: TSType;
interface TSPropertySignature
interface TSPropertySignature extends BaseNode {}
interface TSQualifiedName
interface TSQualifiedName extends BaseNode {}
interface TSRestType
interface TSRestType extends BaseNode {}
property type
type: 'TSRestType';
property typeAnnotation
typeAnnotation: TSType;
interface TSSatisfiesExpression
interface TSSatisfiesExpression extends BaseNode {}
property expression
expression: Expression;
property type
type: 'TSSatisfiesExpression';
property typeAnnotation
typeAnnotation: TSType;
interface TSStringKeyword
interface TSStringKeyword extends BaseNode {}
property type
type: 'TSStringKeyword';
interface TSSymbolKeyword
interface TSSymbolKeyword extends BaseNode {}
property type
type: 'TSSymbolKeyword';
interface TSTemplateLiteralType
interface TSTemplateLiteralType extends BaseNode {}
interface TSThisType
interface TSThisType extends BaseNode {}
property type
type: 'TSThisType';
interface TSTupleType
interface TSTupleType extends BaseNode {}
property elementTypes
elementTypes: Array<TSType | TSNamedTupleMember>;
property type
type: 'TSTupleType';
interface TSTypeAliasDeclaration
interface TSTypeAliasDeclaration extends BaseNode {}
property declare
declare: boolean | null;
property id
id: Identifier;
property type
type: 'TSTypeAliasDeclaration';
property typeAnnotation
typeAnnotation: TSType;
property typeParameters
typeParameters: TSTypeParameterDeclaration | null;
interface TSTypeAnnotation
interface TSTypeAnnotation extends BaseNode {}
property type
type: 'TSTypeAnnotation';
property typeAnnotation
typeAnnotation: TSType;
interface TSTypeAssertion
interface TSTypeAssertion extends BaseNode {}
property expression
expression: Expression;
property type
type: 'TSTypeAssertion';
property typeAnnotation
typeAnnotation: TSType;
interface TSTypeLiteral
interface TSTypeLiteral extends BaseNode {}
interface TSTypeOperator
interface TSTypeOperator extends BaseNode {}
property operator
operator: string;
property type
type: 'TSTypeOperator';
property typeAnnotation
typeAnnotation: TSType;
interface TSTypeParameter
interface TSTypeParameter extends BaseNode {}
interface TSTypeParameterDeclaration
interface TSTypeParameterDeclaration extends BaseNode {}
interface TSTypeParameterInstantiation
interface TSTypeParameterInstantiation extends BaseNode {}
interface TSTypePredicate
interface TSTypePredicate extends BaseNode {}
property asserts
asserts: boolean | null;
property parameterName
parameterName: Identifier | TSThisType;
property type
type: 'TSTypePredicate';
property typeAnnotation
typeAnnotation: TSTypeAnnotation | null;
interface TSTypeQuery
interface TSTypeQuery extends BaseNode {}
property exprName
exprName: TSEntityName | TSImportType;
property type
type: 'TSTypeQuery';
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface TSTypeReference
interface TSTypeReference extends BaseNode {}
property type
type: 'TSTypeReference';
property typeName
typeName: TSEntityName;
property typeParameters
typeParameters: TSTypeParameterInstantiation | null;
interface TSUndefinedKeyword
interface TSUndefinedKeyword extends BaseNode {}
property type
type: 'TSUndefinedKeyword';
interface TSUnionType
interface TSUnionType extends BaseNode {}
interface TSUnknownKeyword
interface TSUnknownKeyword extends BaseNode {}
property type
type: 'TSUnknownKeyword';
interface TSVoidKeyword
interface TSVoidKeyword extends BaseNode {}
property type
type: 'TSVoidKeyword';
interface TupleExpression
interface TupleExpression extends BaseNode {}
interface TupleTypeAnnotation
interface TupleTypeAnnotation extends BaseNode {}
interface TypeAlias
interface TypeAlias extends BaseNode {}
property id
id: Identifier;
property right
right: FlowType;
property type
type: 'TypeAlias';
property typeParameters
typeParameters: TypeParameterDeclaration | null;
interface TypeAnnotation
interface TypeAnnotation extends BaseNode {}
property type
type: 'TypeAnnotation';
property typeAnnotation
typeAnnotation: FlowType;
interface TypeCastExpression
interface TypeCastExpression extends BaseNode {}
property expression
expression: Expression;
property type
type: 'TypeCastExpression';
property typeAnnotation
typeAnnotation: TypeAnnotation;
interface TypeofTypeAnnotation
interface TypeofTypeAnnotation extends BaseNode {}
interface TypeParameter
interface TypeParameter extends BaseNode {}
interface TypeParameterDeclaration
interface TypeParameterDeclaration extends BaseNode {}
interface TypeParameterInstantiation
interface TypeParameterInstantiation extends BaseNode {}
interface UnaryExpression
interface UnaryExpression extends BaseNode {}
interface UnionTypeAnnotation
interface UnionTypeAnnotation extends BaseNode {}
interface UpdateExpression
interface UpdateExpression extends BaseNode {}
interface V8IntrinsicIdentifier
interface V8IntrinsicIdentifier extends BaseNode {}
interface VariableDeclaration
interface VariableDeclaration extends BaseNode {}
property declarations
declarations: Array<VariableDeclarator>;
property declare
declare: boolean | null;
property kind
kind: 'var' | 'let' | 'const' | 'using' | 'await using';
property type
type: 'VariableDeclaration';
interface VariableDeclarator
interface VariableDeclarator extends BaseNode {}
interface Variance
interface Variance extends BaseNode {}
interface VoidTypeAnnotation
interface VoidTypeAnnotation extends BaseNode {}
property type
type: 'VoidTypeAnnotation';
interface WhileStatement
interface WhileStatement extends BaseNode {}
interface WithStatement
interface WithStatement extends BaseNode {}
interface YieldExpression
interface YieldExpression extends BaseNode {}
Type Aliases
type Accessor
type Accessor = ClassAccessorProperty;
type Binary
type Binary = BinaryExpression | LogicalExpression;
type Block
type Block = BlockStatement | Program | TSModuleBlock;
type BlockParent
type BlockParent = | BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
type Class
type Class = ClassExpression | ClassDeclaration;
type Comment
type Comment = CommentBlock | CommentLine;
type CommentTypeShorthand
type CommentTypeShorthand = 'leading' | 'inner' | 'trailing';
type CompletionStatement
type CompletionStatement = | BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
type Conditional
type Conditional = ConditionalExpression | IfStatement;
type Declaration
type Declaration = | FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration;
type EnumBody
type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
type EnumMember
type EnumMember = | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember;
type ExportDeclaration
type ExportDeclaration = | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
type Expression
type Expression = | ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | ImportExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSInstantiationExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
type ExpressionWrapper
type ExpressionWrapper = | ExpressionStatement | ParenthesizedExpression | TypeCastExpression;
type Flow
type Flow = | AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation | EnumDeclaration | EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember | IndexedAccessType | OptionalIndexedAccessType;
type FlowBaseAnnotation
type FlowBaseAnnotation = | AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
type FlowDeclaration
type FlowDeclaration = | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias;
type FlowPredicate
type FlowPredicate = DeclaredPredicate | InferredPredicate;
type FlowType
type FlowType = | AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation | IndexedAccessType | OptionalIndexedAccessType;
type For
type For = ForInStatement | ForStatement | ForOfStatement;
type ForXStatement
type ForXStatement = ForInStatement | ForOfStatement;
type Function
type Function = | FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
type FunctionParent
type FunctionParent = | FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
type Immutable
type Immutable = | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral;
type ImportOrExportDeclaration
type ImportOrExportDeclaration = | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
type JSX
type JSX = | JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
type Literal
type Literal = | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral;
type Loop
type Loop = | DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
type LVal
type LVal = | Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
type Method
type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
type Miscellaneous
type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier;
type ModuleDeclaration
type ModuleDeclaration = | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
type ModuleSpecifier
type ModuleSpecifier = | ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier;
type Node
type Node = | Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | 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 | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportOrExportDeclaration | ImportSpecifier | IndexedAccessType | 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 | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSSatisfiesExpression | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | 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 | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
type NumberLiteral
type NumberLiteral = NumericLiteral;
Deprecated
Use
NumericLiteral
type ObjectMember
type ObjectMember = ObjectMethod | ObjectProperty;
type Pattern
type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
type PatternLike
type PatternLike = | Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
type Private
type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName;
type Property
type Property = | ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty;
type Pureish
type Pureish = | FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral;
type RegexLiteral
type RegexLiteral = RegExpLiteral;
Deprecated
Use
RegExpLiteral
type RestProperty
type RestProperty = RestElement;
Deprecated
Use
RestElement
type Scopable
type Scopable = | BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
type SpreadProperty
type SpreadProperty = SpreadElement;
Deprecated
Use
SpreadElement
type Standardized
type Standardized = | ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | File | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | LabeledStatement | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | Program | ObjectExpression | ObjectMethod | ObjectProperty | RestElement | ReturnStatement | SequenceExpression | ParenthesizedExpression | SwitchCase | SwitchStatement | ThisExpression | ThrowStatement | TryStatement | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | AssignmentPattern | ArrayPattern | ArrowFunctionExpression | ClassBody | ClassExpression | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ForOfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ImportExpression | MetaProperty | ClassMethod | ObjectPattern | SpreadElement | Super | TaggedTemplateExpression | TemplateElement | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | ExportNamespaceSpecifier | OptionalMemberExpression | OptionalCallExpression | ClassProperty | ClassAccessorProperty | ClassPrivateProperty | ClassPrivateMethod | PrivateName | StaticBlock | ImportAttribute;
type Statement
type Statement = | BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration;
type Terminatorless
type Terminatorless = | BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
type TraversalAncestors
type TraversalAncestors = ReadonlyArray<{ node: Node; key: string; index?: number;}>;
type TraversalHandler
type TraversalHandler<T> = ( this: undefined, node: Node, parent: TraversalAncestors, type: T) => void;
type TraversalHandlers
type TraversalHandlers<T> = { enter?: TraversalHandler<T>; exit?: TraversalHandler<T>;};
type TSBaseType
type TSBaseType = | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSTemplateLiteralType | TSLiteralType;
type TSEntityName
type TSEntityName = Identifier | TSQualifiedName;
type TSType
type TSType = | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSTemplateLiteralType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType;
type TSTypeElement
type TSTypeElement = | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
type TypeScript
type TypeScript = | TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSNamedTupleMember | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSTemplateLiteralType | TSLiteralType | TSExpressionWithTypeArguments | TSInterfaceDeclaration | TSInterfaceBody | TSTypeAliasDeclaration | TSInstantiationExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSModuleDeclaration | TSModuleBlock | TSImportType | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | TSExportAssignment | TSNamespaceExportDeclaration | TSTypeAnnotation | TSTypeParameterInstantiation | TSTypeParameterDeclaration | TSTypeParameter;
type UnaryLike
type UnaryLike = UnaryExpression | SpreadElement;
type UserWhitespacable
type UserWhitespacable = | ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
type While
type While = DoWhileStatement | WhileStatement;
Package Files (1)
Dependencies (2)
Dev Dependencies (3)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@babel/types
.
- Markdown[](https://www.jsdocs.io/package/@babel/types)
- HTML<a href="https://www.jsdocs.io/package/@babel/types"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 23439 ms. - Missing or incorrect documentation? Open an issue for this package.