Convert @babel/traverse to TypeScript (#12488)

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
Bogdan Savluk
2021-01-24 01:33:09 +01:00
committed by GitHub
parent cd090e9842
commit d98418efbe
37 changed files with 2023 additions and 368 deletions

View File

@@ -0,0 +1,688 @@
/*
* This file is auto-generated! Do not modify it directly.
* To re-generate run 'make build'
*/
import * as t from "@babel/types";
import NodePath from "../index";
export interface NodePathAssetions {
assertAnyTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.AnyTypeAnnotation>;
assertArgumentPlaceholder(
opts?: object,
): asserts this is NodePath<t.ArgumentPlaceholder>;
assertArrayExpression(
opts?: object,
): asserts this is NodePath<t.ArrayExpression>;
assertArrayPattern(opts?: object): asserts this is NodePath<t.ArrayPattern>;
assertArrayTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.ArrayTypeAnnotation>;
assertArrowFunctionExpression(
opts?: object,
): asserts this is NodePath<t.ArrowFunctionExpression>;
assertAssignmentExpression(
opts?: object,
): asserts this is NodePath<t.AssignmentExpression>;
assertAssignmentPattern(
opts?: object,
): asserts this is NodePath<t.AssignmentPattern>;
assertAwaitExpression(
opts?: object,
): asserts this is NodePath<t.AwaitExpression>;
assertBigIntLiteral(opts?: object): asserts this is NodePath<t.BigIntLiteral>;
assertBinary(opts?: object): asserts this is NodePath<t.Binary>;
assertBinaryExpression(
opts?: object,
): asserts this is NodePath<t.BinaryExpression>;
assertBindExpression(
opts?: object,
): asserts this is NodePath<t.BindExpression>;
assertBlock(opts?: object): asserts this is NodePath<t.Block>;
assertBlockParent(opts?: object): asserts this is NodePath<t.BlockParent>;
assertBlockStatement(
opts?: object,
): asserts this is NodePath<t.BlockStatement>;
assertBooleanLiteral(
opts?: object,
): asserts this is NodePath<t.BooleanLiteral>;
assertBooleanLiteralTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.BooleanLiteralTypeAnnotation>;
assertBooleanTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.BooleanTypeAnnotation>;
assertBreakStatement(
opts?: object,
): asserts this is NodePath<t.BreakStatement>;
assertCallExpression(
opts?: object,
): asserts this is NodePath<t.CallExpression>;
assertCatchClause(opts?: object): asserts this is NodePath<t.CatchClause>;
assertClass(opts?: object): asserts this is NodePath<t.Class>;
assertClassBody(opts?: object): asserts this is NodePath<t.ClassBody>;
assertClassDeclaration(
opts?: object,
): asserts this is NodePath<t.ClassDeclaration>;
assertClassExpression(
opts?: object,
): asserts this is NodePath<t.ClassExpression>;
assertClassImplements(
opts?: object,
): asserts this is NodePath<t.ClassImplements>;
assertClassMethod(opts?: object): asserts this is NodePath<t.ClassMethod>;
assertClassPrivateMethod(
opts?: object,
): asserts this is NodePath<t.ClassPrivateMethod>;
assertClassPrivateProperty(
opts?: object,
): asserts this is NodePath<t.ClassPrivateProperty>;
assertClassProperty(opts?: object): asserts this is NodePath<t.ClassProperty>;
assertCompletionStatement(
opts?: object,
): asserts this is NodePath<t.CompletionStatement>;
assertConditional(opts?: object): asserts this is NodePath<t.Conditional>;
assertConditionalExpression(
opts?: object,
): asserts this is NodePath<t.ConditionalExpression>;
assertContinueStatement(
opts?: object,
): asserts this is NodePath<t.ContinueStatement>;
assertDebuggerStatement(
opts?: object,
): asserts this is NodePath<t.DebuggerStatement>;
assertDecimalLiteral(
opts?: object,
): asserts this is NodePath<t.DecimalLiteral>;
assertDeclaration(opts?: object): asserts this is NodePath<t.Declaration>;
assertDeclareClass(opts?: object): asserts this is NodePath<t.DeclareClass>;
assertDeclareExportAllDeclaration(
opts?: object,
): asserts this is NodePath<t.DeclareExportAllDeclaration>;
assertDeclareExportDeclaration(
opts?: object,
): asserts this is NodePath<t.DeclareExportDeclaration>;
assertDeclareFunction(
opts?: object,
): asserts this is NodePath<t.DeclareFunction>;
assertDeclareInterface(
opts?: object,
): asserts this is NodePath<t.DeclareInterface>;
assertDeclareModule(opts?: object): asserts this is NodePath<t.DeclareModule>;
assertDeclareModuleExports(
opts?: object,
): asserts this is NodePath<t.DeclareModuleExports>;
assertDeclareOpaqueType(
opts?: object,
): asserts this is NodePath<t.DeclareOpaqueType>;
assertDeclareTypeAlias(
opts?: object,
): asserts this is NodePath<t.DeclareTypeAlias>;
assertDeclareVariable(
opts?: object,
): asserts this is NodePath<t.DeclareVariable>;
assertDeclaredPredicate(
opts?: object,
): asserts this is NodePath<t.DeclaredPredicate>;
assertDecorator(opts?: object): asserts this is NodePath<t.Decorator>;
assertDirective(opts?: object): asserts this is NodePath<t.Directive>;
assertDirectiveLiteral(
opts?: object,
): asserts this is NodePath<t.DirectiveLiteral>;
assertDoExpression(opts?: object): asserts this is NodePath<t.DoExpression>;
assertDoWhileStatement(
opts?: object,
): asserts this is NodePath<t.DoWhileStatement>;
assertEmptyStatement(
opts?: object,
): asserts this is NodePath<t.EmptyStatement>;
assertEmptyTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.EmptyTypeAnnotation>;
assertEnumBody(opts?: object): asserts this is NodePath<t.EnumBody>;
assertEnumBooleanBody(
opts?: object,
): asserts this is NodePath<t.EnumBooleanBody>;
assertEnumBooleanMember(
opts?: object,
): asserts this is NodePath<t.EnumBooleanMember>;
assertEnumDeclaration(
opts?: object,
): asserts this is NodePath<t.EnumDeclaration>;
assertEnumDefaultedMember(
opts?: object,
): asserts this is NodePath<t.EnumDefaultedMember>;
assertEnumMember(opts?: object): asserts this is NodePath<t.EnumMember>;
assertEnumNumberBody(
opts?: object,
): asserts this is NodePath<t.EnumNumberBody>;
assertEnumNumberMember(
opts?: object,
): asserts this is NodePath<t.EnumNumberMember>;
assertEnumStringBody(
opts?: object,
): asserts this is NodePath<t.EnumStringBody>;
assertEnumStringMember(
opts?: object,
): asserts this is NodePath<t.EnumStringMember>;
assertEnumSymbolBody(
opts?: object,
): asserts this is NodePath<t.EnumSymbolBody>;
assertExistsTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.ExistsTypeAnnotation>;
assertExportAllDeclaration(
opts?: object,
): asserts this is NodePath<t.ExportAllDeclaration>;
assertExportDeclaration(
opts?: object,
): asserts this is NodePath<t.ExportDeclaration>;
assertExportDefaultDeclaration(
opts?: object,
): asserts this is NodePath<t.ExportDefaultDeclaration>;
assertExportDefaultSpecifier(
opts?: object,
): asserts this is NodePath<t.ExportDefaultSpecifier>;
assertExportNamedDeclaration(
opts?: object,
): asserts this is NodePath<t.ExportNamedDeclaration>;
assertExportNamespaceSpecifier(
opts?: object,
): asserts this is NodePath<t.ExportNamespaceSpecifier>;
assertExportSpecifier(
opts?: object,
): asserts this is NodePath<t.ExportSpecifier>;
assertExpression(opts?: object): asserts this is NodePath<t.Expression>;
assertExpressionStatement(
opts?: object,
): asserts this is NodePath<t.ExpressionStatement>;
assertExpressionWrapper(
opts?: object,
): asserts this is NodePath<t.ExpressionWrapper>;
assertFile(opts?: object): asserts this is NodePath<t.File>;
assertFlow(opts?: object): asserts this is NodePath<t.Flow>;
assertFlowBaseAnnotation(
opts?: object,
): asserts this is NodePath<t.FlowBaseAnnotation>;
assertFlowDeclaration(
opts?: object,
): asserts this is NodePath<t.FlowDeclaration>;
assertFlowPredicate(opts?: object): asserts this is NodePath<t.FlowPredicate>;
assertFlowType(opts?: object): asserts this is NodePath<t.FlowType>;
assertFor(opts?: object): asserts this is NodePath<t.For>;
assertForInStatement(
opts?: object,
): asserts this is NodePath<t.ForInStatement>;
assertForOfStatement(
opts?: object,
): asserts this is NodePath<t.ForOfStatement>;
assertForStatement(opts?: object): asserts this is NodePath<t.ForStatement>;
assertForXStatement(opts?: object): asserts this is NodePath<t.ForXStatement>;
assertFunction(opts?: object): asserts this is NodePath<t.Function>;
assertFunctionDeclaration(
opts?: object,
): asserts this is NodePath<t.FunctionDeclaration>;
assertFunctionExpression(
opts?: object,
): asserts this is NodePath<t.FunctionExpression>;
assertFunctionParent(
opts?: object,
): asserts this is NodePath<t.FunctionParent>;
assertFunctionTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.FunctionTypeAnnotation>;
assertFunctionTypeParam(
opts?: object,
): asserts this is NodePath<t.FunctionTypeParam>;
assertGenericTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.GenericTypeAnnotation>;
assertIdentifier(opts?: object): asserts this is NodePath<t.Identifier>;
assertIfStatement(opts?: object): asserts this is NodePath<t.IfStatement>;
assertImmutable(opts?: object): asserts this is NodePath<t.Immutable>;
assertImport(opts?: object): asserts this is NodePath<t.Import>;
assertImportAttribute(
opts?: object,
): asserts this is NodePath<t.ImportAttribute>;
assertImportDeclaration(
opts?: object,
): asserts this is NodePath<t.ImportDeclaration>;
assertImportDefaultSpecifier(
opts?: object,
): asserts this is NodePath<t.ImportDefaultSpecifier>;
assertImportNamespaceSpecifier(
opts?: object,
): asserts this is NodePath<t.ImportNamespaceSpecifier>;
assertImportSpecifier(
opts?: object,
): asserts this is NodePath<t.ImportSpecifier>;
assertInferredPredicate(
opts?: object,
): asserts this is NodePath<t.InferredPredicate>;
assertInterfaceDeclaration(
opts?: object,
): asserts this is NodePath<t.InterfaceDeclaration>;
assertInterfaceExtends(
opts?: object,
): asserts this is NodePath<t.InterfaceExtends>;
assertInterfaceTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.InterfaceTypeAnnotation>;
assertInterpreterDirective(
opts?: object,
): asserts this is NodePath<t.InterpreterDirective>;
assertIntersectionTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.IntersectionTypeAnnotation>;
assertJSX(opts?: object): asserts this is NodePath<t.JSX>;
assertJSXAttribute(opts?: object): asserts this is NodePath<t.JSXAttribute>;
assertJSXClosingElement(
opts?: object,
): asserts this is NodePath<t.JSXClosingElement>;
assertJSXClosingFragment(
opts?: object,
): asserts this is NodePath<t.JSXClosingFragment>;
assertJSXElement(opts?: object): asserts this is NodePath<t.JSXElement>;
assertJSXEmptyExpression(
opts?: object,
): asserts this is NodePath<t.JSXEmptyExpression>;
assertJSXExpressionContainer(
opts?: object,
): asserts this is NodePath<t.JSXExpressionContainer>;
assertJSXFragment(opts?: object): asserts this is NodePath<t.JSXFragment>;
assertJSXIdentifier(opts?: object): asserts this is NodePath<t.JSXIdentifier>;
assertJSXMemberExpression(
opts?: object,
): asserts this is NodePath<t.JSXMemberExpression>;
assertJSXNamespacedName(
opts?: object,
): asserts this is NodePath<t.JSXNamespacedName>;
assertJSXOpeningElement(
opts?: object,
): asserts this is NodePath<t.JSXOpeningElement>;
assertJSXOpeningFragment(
opts?: object,
): asserts this is NodePath<t.JSXOpeningFragment>;
assertJSXSpreadAttribute(
opts?: object,
): asserts this is NodePath<t.JSXSpreadAttribute>;
assertJSXSpreadChild(
opts?: object,
): asserts this is NodePath<t.JSXSpreadChild>;
assertJSXText(opts?: object): asserts this is NodePath<t.JSXText>;
assertLVal(opts?: object): asserts this is NodePath<t.LVal>;
assertLabeledStatement(
opts?: object,
): asserts this is NodePath<t.LabeledStatement>;
assertLiteral(opts?: object): asserts this is NodePath<t.Literal>;
assertLogicalExpression(
opts?: object,
): asserts this is NodePath<t.LogicalExpression>;
assertLoop(opts?: object): asserts this is NodePath<t.Loop>;
assertMemberExpression(
opts?: object,
): asserts this is NodePath<t.MemberExpression>;
assertMetaProperty(opts?: object): asserts this is NodePath<t.MetaProperty>;
assertMethod(opts?: object): asserts this is NodePath<t.Method>;
assertMixedTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.MixedTypeAnnotation>;
assertModuleDeclaration(
opts?: object,
): asserts this is NodePath<t.ModuleDeclaration>;
assertModuleSpecifier(
opts?: object,
): asserts this is NodePath<t.ModuleSpecifier>;
assertNewExpression(opts?: object): asserts this is NodePath<t.NewExpression>;
assertNoop(opts?: object): asserts this is NodePath<t.Noop>;
assertNullLiteral(opts?: object): asserts this is NodePath<t.NullLiteral>;
assertNullLiteralTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.NullLiteralTypeAnnotation>;
assertNullableTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.NullableTypeAnnotation>;
assertNumberLiteral(opts?: object): asserts this is NodePath<t.NumberLiteral>;
assertNumberLiteralTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.NumberLiteralTypeAnnotation>;
assertNumberTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.NumberTypeAnnotation>;
assertNumericLiteral(
opts?: object,
): asserts this is NodePath<t.NumericLiteral>;
assertObjectExpression(
opts?: object,
): asserts this is NodePath<t.ObjectExpression>;
assertObjectMember(opts?: object): asserts this is NodePath<t.ObjectMember>;
assertObjectMethod(opts?: object): asserts this is NodePath<t.ObjectMethod>;
assertObjectPattern(opts?: object): asserts this is NodePath<t.ObjectPattern>;
assertObjectProperty(
opts?: object,
): asserts this is NodePath<t.ObjectProperty>;
assertObjectTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.ObjectTypeAnnotation>;
assertObjectTypeCallProperty(
opts?: object,
): asserts this is NodePath<t.ObjectTypeCallProperty>;
assertObjectTypeIndexer(
opts?: object,
): asserts this is NodePath<t.ObjectTypeIndexer>;
assertObjectTypeInternalSlot(
opts?: object,
): asserts this is NodePath<t.ObjectTypeInternalSlot>;
assertObjectTypeProperty(
opts?: object,
): asserts this is NodePath<t.ObjectTypeProperty>;
assertObjectTypeSpreadProperty(
opts?: object,
): asserts this is NodePath<t.ObjectTypeSpreadProperty>;
assertOpaqueType(opts?: object): asserts this is NodePath<t.OpaqueType>;
assertOptionalCallExpression(
opts?: object,
): asserts this is NodePath<t.OptionalCallExpression>;
assertOptionalMemberExpression(
opts?: object,
): asserts this is NodePath<t.OptionalMemberExpression>;
assertParenthesizedExpression(
opts?: object,
): asserts this is NodePath<t.ParenthesizedExpression>;
assertPattern(opts?: object): asserts this is NodePath<t.Pattern>;
assertPatternLike(opts?: object): asserts this is NodePath<t.PatternLike>;
assertPipelineBareFunction(
opts?: object,
): asserts this is NodePath<t.PipelineBareFunction>;
assertPipelinePrimaryTopicReference(
opts?: object,
): asserts this is NodePath<t.PipelinePrimaryTopicReference>;
assertPipelineTopicExpression(
opts?: object,
): asserts this is NodePath<t.PipelineTopicExpression>;
assertPlaceholder(opts?: object): asserts this is NodePath<t.Placeholder>;
assertPrivate(opts?: object): asserts this is NodePath<t.Private>;
assertPrivateName(opts?: object): asserts this is NodePath<t.PrivateName>;
assertProgram(opts?: object): asserts this is NodePath<t.Program>;
assertProperty(opts?: object): asserts this is NodePath<t.Property>;
assertPureish(opts?: object): asserts this is NodePath<t.Pureish>;
assertQualifiedTypeIdentifier(
opts?: object,
): asserts this is NodePath<t.QualifiedTypeIdentifier>;
assertRecordExpression(
opts?: object,
): asserts this is NodePath<t.RecordExpression>;
assertRegExpLiteral(opts?: object): asserts this is NodePath<t.RegExpLiteral>;
assertRegexLiteral(opts?: object): asserts this is NodePath<t.RegexLiteral>;
assertRestElement(opts?: object): asserts this is NodePath<t.RestElement>;
assertRestProperty(opts?: object): asserts this is NodePath<t.RestProperty>;
assertReturnStatement(
opts?: object,
): asserts this is NodePath<t.ReturnStatement>;
assertScopable(opts?: object): asserts this is NodePath<t.Scopable>;
assertSequenceExpression(
opts?: object,
): asserts this is NodePath<t.SequenceExpression>;
assertSpreadElement(opts?: object): asserts this is NodePath<t.SpreadElement>;
assertSpreadProperty(
opts?: object,
): asserts this is NodePath<t.SpreadProperty>;
assertStatement(opts?: object): asserts this is NodePath<t.Statement>;
assertStaticBlock(opts?: object): asserts this is NodePath<t.StaticBlock>;
assertStringLiteral(opts?: object): asserts this is NodePath<t.StringLiteral>;
assertStringLiteralTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.StringLiteralTypeAnnotation>;
assertStringTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.StringTypeAnnotation>;
assertSuper(opts?: object): asserts this is NodePath<t.Super>;
assertSwitchCase(opts?: object): asserts this is NodePath<t.SwitchCase>;
assertSwitchStatement(
opts?: object,
): asserts this is NodePath<t.SwitchStatement>;
assertSymbolTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.SymbolTypeAnnotation>;
assertTSAnyKeyword(opts?: object): asserts this is NodePath<t.TSAnyKeyword>;
assertTSArrayType(opts?: object): asserts this is NodePath<t.TSArrayType>;
assertTSAsExpression(
opts?: object,
): asserts this is NodePath<t.TSAsExpression>;
assertTSBaseType(opts?: object): asserts this is NodePath<t.TSBaseType>;
assertTSBigIntKeyword(
opts?: object,
): asserts this is NodePath<t.TSBigIntKeyword>;
assertTSBooleanKeyword(
opts?: object,
): asserts this is NodePath<t.TSBooleanKeyword>;
assertTSCallSignatureDeclaration(
opts?: object,
): asserts this is NodePath<t.TSCallSignatureDeclaration>;
assertTSConditionalType(
opts?: object,
): asserts this is NodePath<t.TSConditionalType>;
assertTSConstructSignatureDeclaration(
opts?: object,
): asserts this is NodePath<t.TSConstructSignatureDeclaration>;
assertTSConstructorType(
opts?: object,
): asserts this is NodePath<t.TSConstructorType>;
assertTSDeclareFunction(
opts?: object,
): asserts this is NodePath<t.TSDeclareFunction>;
assertTSDeclareMethod(
opts?: object,
): asserts this is NodePath<t.TSDeclareMethod>;
assertTSEntityName(opts?: object): asserts this is NodePath<t.TSEntityName>;
assertTSEnumDeclaration(
opts?: object,
): asserts this is NodePath<t.TSEnumDeclaration>;
assertTSEnumMember(opts?: object): asserts this is NodePath<t.TSEnumMember>;
assertTSExportAssignment(
opts?: object,
): asserts this is NodePath<t.TSExportAssignment>;
assertTSExpressionWithTypeArguments(
opts?: object,
): asserts this is NodePath<t.TSExpressionWithTypeArguments>;
assertTSExternalModuleReference(
opts?: object,
): asserts this is NodePath<t.TSExternalModuleReference>;
assertTSFunctionType(
opts?: object,
): asserts this is NodePath<t.TSFunctionType>;
assertTSImportEqualsDeclaration(
opts?: object,
): asserts this is NodePath<t.TSImportEqualsDeclaration>;
assertTSImportType(opts?: object): asserts this is NodePath<t.TSImportType>;
assertTSIndexSignature(
opts?: object,
): asserts this is NodePath<t.TSIndexSignature>;
assertTSIndexedAccessType(
opts?: object,
): asserts this is NodePath<t.TSIndexedAccessType>;
assertTSInferType(opts?: object): asserts this is NodePath<t.TSInferType>;
assertTSInterfaceBody(
opts?: object,
): asserts this is NodePath<t.TSInterfaceBody>;
assertTSInterfaceDeclaration(
opts?: object,
): asserts this is NodePath<t.TSInterfaceDeclaration>;
assertTSIntersectionType(
opts?: object,
): asserts this is NodePath<t.TSIntersectionType>;
assertTSIntrinsicKeyword(
opts?: object,
): asserts this is NodePath<t.TSIntrinsicKeyword>;
assertTSLiteralType(opts?: object): asserts this is NodePath<t.TSLiteralType>;
assertTSMappedType(opts?: object): asserts this is NodePath<t.TSMappedType>;
assertTSMethodSignature(
opts?: object,
): asserts this is NodePath<t.TSMethodSignature>;
assertTSModuleBlock(opts?: object): asserts this is NodePath<t.TSModuleBlock>;
assertTSModuleDeclaration(
opts?: object,
): asserts this is NodePath<t.TSModuleDeclaration>;
assertTSNamedTupleMember(
opts?: object,
): asserts this is NodePath<t.TSNamedTupleMember>;
assertTSNamespaceExportDeclaration(
opts?: object,
): asserts this is NodePath<t.TSNamespaceExportDeclaration>;
assertTSNeverKeyword(
opts?: object,
): asserts this is NodePath<t.TSNeverKeyword>;
assertTSNonNullExpression(
opts?: object,
): asserts this is NodePath<t.TSNonNullExpression>;
assertTSNullKeyword(opts?: object): asserts this is NodePath<t.TSNullKeyword>;
assertTSNumberKeyword(
opts?: object,
): asserts this is NodePath<t.TSNumberKeyword>;
assertTSObjectKeyword(
opts?: object,
): asserts this is NodePath<t.TSObjectKeyword>;
assertTSOptionalType(
opts?: object,
): asserts this is NodePath<t.TSOptionalType>;
assertTSParameterProperty(
opts?: object,
): asserts this is NodePath<t.TSParameterProperty>;
assertTSParenthesizedType(
opts?: object,
): asserts this is NodePath<t.TSParenthesizedType>;
assertTSPropertySignature(
opts?: object,
): asserts this is NodePath<t.TSPropertySignature>;
assertTSQualifiedName(
opts?: object,
): asserts this is NodePath<t.TSQualifiedName>;
assertTSRestType(opts?: object): asserts this is NodePath<t.TSRestType>;
assertTSStringKeyword(
opts?: object,
): asserts this is NodePath<t.TSStringKeyword>;
assertTSSymbolKeyword(
opts?: object,
): asserts this is NodePath<t.TSSymbolKeyword>;
assertTSThisType(opts?: object): asserts this is NodePath<t.TSThisType>;
assertTSTupleType(opts?: object): asserts this is NodePath<t.TSTupleType>;
assertTSType(opts?: object): asserts this is NodePath<t.TSType>;
assertTSTypeAliasDeclaration(
opts?: object,
): asserts this is NodePath<t.TSTypeAliasDeclaration>;
assertTSTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.TSTypeAnnotation>;
assertTSTypeAssertion(
opts?: object,
): asserts this is NodePath<t.TSTypeAssertion>;
assertTSTypeElement(opts?: object): asserts this is NodePath<t.TSTypeElement>;
assertTSTypeLiteral(opts?: object): asserts this is NodePath<t.TSTypeLiteral>;
assertTSTypeOperator(
opts?: object,
): asserts this is NodePath<t.TSTypeOperator>;
assertTSTypeParameter(
opts?: object,
): asserts this is NodePath<t.TSTypeParameter>;
assertTSTypeParameterDeclaration(
opts?: object,
): asserts this is NodePath<t.TSTypeParameterDeclaration>;
assertTSTypeParameterInstantiation(
opts?: object,
): asserts this is NodePath<t.TSTypeParameterInstantiation>;
assertTSTypePredicate(
opts?: object,
): asserts this is NodePath<t.TSTypePredicate>;
assertTSTypeQuery(opts?: object): asserts this is NodePath<t.TSTypeQuery>;
assertTSTypeReference(
opts?: object,
): asserts this is NodePath<t.TSTypeReference>;
assertTSUndefinedKeyword(
opts?: object,
): asserts this is NodePath<t.TSUndefinedKeyword>;
assertTSUnionType(opts?: object): asserts this is NodePath<t.TSUnionType>;
assertTSUnknownKeyword(
opts?: object,
): asserts this is NodePath<t.TSUnknownKeyword>;
assertTSVoidKeyword(opts?: object): asserts this is NodePath<t.TSVoidKeyword>;
assertTaggedTemplateExpression(
opts?: object,
): asserts this is NodePath<t.TaggedTemplateExpression>;
assertTemplateElement(
opts?: object,
): asserts this is NodePath<t.TemplateElement>;
assertTemplateLiteral(
opts?: object,
): asserts this is NodePath<t.TemplateLiteral>;
assertTerminatorless(
opts?: object,
): asserts this is NodePath<t.Terminatorless>;
assertThisExpression(
opts?: object,
): asserts this is NodePath<t.ThisExpression>;
assertThisTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.ThisTypeAnnotation>;
assertThrowStatement(
opts?: object,
): asserts this is NodePath<t.ThrowStatement>;
assertTryStatement(opts?: object): asserts this is NodePath<t.TryStatement>;
assertTupleExpression(
opts?: object,
): asserts this is NodePath<t.TupleExpression>;
assertTupleTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.TupleTypeAnnotation>;
assertTypeAlias(opts?: object): asserts this is NodePath<t.TypeAlias>;
assertTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.TypeAnnotation>;
assertTypeCastExpression(
opts?: object,
): asserts this is NodePath<t.TypeCastExpression>;
assertTypeParameter(opts?: object): asserts this is NodePath<t.TypeParameter>;
assertTypeParameterDeclaration(
opts?: object,
): asserts this is NodePath<t.TypeParameterDeclaration>;
assertTypeParameterInstantiation(
opts?: object,
): asserts this is NodePath<t.TypeParameterInstantiation>;
assertTypeofTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.TypeofTypeAnnotation>;
assertUnaryExpression(
opts?: object,
): asserts this is NodePath<t.UnaryExpression>;
assertUnaryLike(opts?: object): asserts this is NodePath<t.UnaryLike>;
assertUnionTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.UnionTypeAnnotation>;
assertUpdateExpression(
opts?: object,
): asserts this is NodePath<t.UpdateExpression>;
assertUserWhitespacable(
opts?: object,
): asserts this is NodePath<t.UserWhitespacable>;
assertV8IntrinsicIdentifier(
opts?: object,
): asserts this is NodePath<t.V8IntrinsicIdentifier>;
assertVariableDeclaration(
opts?: object,
): asserts this is NodePath<t.VariableDeclaration>;
assertVariableDeclarator(
opts?: object,
): asserts this is NodePath<t.VariableDeclarator>;
assertVariance(opts?: object): asserts this is NodePath<t.Variance>;
assertVoidTypeAnnotation(
opts?: object,
): asserts this is NodePath<t.VoidTypeAnnotation>;
assertWhile(opts?: object): asserts this is NodePath<t.While>;
assertWhileStatement(
opts?: object,
): asserts this is NodePath<t.WhileStatement>;
assertWithStatement(opts?: object): asserts this is NodePath<t.WithStatement>;
assertYieldExpression(
opts?: object,
): asserts this is NodePath<t.YieldExpression>;
}

View File

@@ -0,0 +1,432 @@
/*
* This file is auto-generated! Do not modify it directly.
* To re-generate run 'make build'
*/
import * as t from "@babel/types";
import NodePath from "../index";
export interface NodePathValidators {
isAnyTypeAnnotation(opts?: object): this is NodePath<t.AnyTypeAnnotation>;
isArgumentPlaceholder(opts?: object): this is NodePath<t.ArgumentPlaceholder>;
isArrayExpression(opts?: object): this is NodePath<t.ArrayExpression>;
isArrayPattern(opts?: object): this is NodePath<t.ArrayPattern>;
isArrayTypeAnnotation(opts?: object): this is NodePath<t.ArrayTypeAnnotation>;
isArrowFunctionExpression(
opts?: object,
): this is NodePath<t.ArrowFunctionExpression>;
isAssignmentExpression(
opts?: object,
): this is NodePath<t.AssignmentExpression>;
isAssignmentPattern(opts?: object): this is NodePath<t.AssignmentPattern>;
isAwaitExpression(opts?: object): this is NodePath<t.AwaitExpression>;
isBigIntLiteral(opts?: object): this is NodePath<t.BigIntLiteral>;
isBinary(opts?: object): this is NodePath<t.Binary>;
isBinaryExpression(opts?: object): this is NodePath<t.BinaryExpression>;
isBindExpression(opts?: object): this is NodePath<t.BindExpression>;
isBlock(opts?: object): this is NodePath<t.Block>;
isBlockParent(opts?: object): this is NodePath<t.BlockParent>;
isBlockStatement(opts?: object): this is NodePath<t.BlockStatement>;
isBooleanLiteral(opts?: object): this is NodePath<t.BooleanLiteral>;
isBooleanLiteralTypeAnnotation(
opts?: object,
): this is NodePath<t.BooleanLiteralTypeAnnotation>;
isBooleanTypeAnnotation(
opts?: object,
): this is NodePath<t.BooleanTypeAnnotation>;
isBreakStatement(opts?: object): this is NodePath<t.BreakStatement>;
isCallExpression(opts?: object): this is NodePath<t.CallExpression>;
isCatchClause(opts?: object): this is NodePath<t.CatchClause>;
isClass(opts?: object): this is NodePath<t.Class>;
isClassBody(opts?: object): this is NodePath<t.ClassBody>;
isClassDeclaration(opts?: object): this is NodePath<t.ClassDeclaration>;
isClassExpression(opts?: object): this is NodePath<t.ClassExpression>;
isClassImplements(opts?: object): this is NodePath<t.ClassImplements>;
isClassMethod(opts?: object): this is NodePath<t.ClassMethod>;
isClassPrivateMethod(opts?: object): this is NodePath<t.ClassPrivateMethod>;
isClassPrivateProperty(
opts?: object,
): this is NodePath<t.ClassPrivateProperty>;
isClassProperty(opts?: object): this is NodePath<t.ClassProperty>;
isCompletionStatement(opts?: object): this is NodePath<t.CompletionStatement>;
isConditional(opts?: object): this is NodePath<t.Conditional>;
isConditionalExpression(
opts?: object,
): this is NodePath<t.ConditionalExpression>;
isContinueStatement(opts?: object): this is NodePath<t.ContinueStatement>;
isDebuggerStatement(opts?: object): this is NodePath<t.DebuggerStatement>;
isDecimalLiteral(opts?: object): this is NodePath<t.DecimalLiteral>;
isDeclaration(opts?: object): this is NodePath<t.Declaration>;
isDeclareClass(opts?: object): this is NodePath<t.DeclareClass>;
isDeclareExportAllDeclaration(
opts?: object,
): this is NodePath<t.DeclareExportAllDeclaration>;
isDeclareExportDeclaration(
opts?: object,
): this is NodePath<t.DeclareExportDeclaration>;
isDeclareFunction(opts?: object): this is NodePath<t.DeclareFunction>;
isDeclareInterface(opts?: object): this is NodePath<t.DeclareInterface>;
isDeclareModule(opts?: object): this is NodePath<t.DeclareModule>;
isDeclareModuleExports(
opts?: object,
): this is NodePath<t.DeclareModuleExports>;
isDeclareOpaqueType(opts?: object): this is NodePath<t.DeclareOpaqueType>;
isDeclareTypeAlias(opts?: object): this is NodePath<t.DeclareTypeAlias>;
isDeclareVariable(opts?: object): this is NodePath<t.DeclareVariable>;
isDeclaredPredicate(opts?: object): this is NodePath<t.DeclaredPredicate>;
isDecorator(opts?: object): this is NodePath<t.Decorator>;
isDirective(opts?: object): this is NodePath<t.Directive>;
isDirectiveLiteral(opts?: object): this is NodePath<t.DirectiveLiteral>;
isDoExpression(opts?: object): this is NodePath<t.DoExpression>;
isDoWhileStatement(opts?: object): this is NodePath<t.DoWhileStatement>;
isEmptyStatement(opts?: object): this is NodePath<t.EmptyStatement>;
isEmptyTypeAnnotation(opts?: object): this is NodePath<t.EmptyTypeAnnotation>;
isEnumBody(opts?: object): this is NodePath<t.EnumBody>;
isEnumBooleanBody(opts?: object): this is NodePath<t.EnumBooleanBody>;
isEnumBooleanMember(opts?: object): this is NodePath<t.EnumBooleanMember>;
isEnumDeclaration(opts?: object): this is NodePath<t.EnumDeclaration>;
isEnumDefaultedMember(opts?: object): this is NodePath<t.EnumDefaultedMember>;
isEnumMember(opts?: object): this is NodePath<t.EnumMember>;
isEnumNumberBody(opts?: object): this is NodePath<t.EnumNumberBody>;
isEnumNumberMember(opts?: object): this is NodePath<t.EnumNumberMember>;
isEnumStringBody(opts?: object): this is NodePath<t.EnumStringBody>;
isEnumStringMember(opts?: object): this is NodePath<t.EnumStringMember>;
isEnumSymbolBody(opts?: object): this is NodePath<t.EnumSymbolBody>;
isExistsTypeAnnotation(
opts?: object,
): this is NodePath<t.ExistsTypeAnnotation>;
isExportAllDeclaration(
opts?: object,
): this is NodePath<t.ExportAllDeclaration>;
isExportDeclaration(opts?: object): this is NodePath<t.ExportDeclaration>;
isExportDefaultDeclaration(
opts?: object,
): this is NodePath<t.ExportDefaultDeclaration>;
isExportDefaultSpecifier(
opts?: object,
): this is NodePath<t.ExportDefaultSpecifier>;
isExportNamedDeclaration(
opts?: object,
): this is NodePath<t.ExportNamedDeclaration>;
isExportNamespaceSpecifier(
opts?: object,
): this is NodePath<t.ExportNamespaceSpecifier>;
isExportSpecifier(opts?: object): this is NodePath<t.ExportSpecifier>;
isExpression(opts?: object): this is NodePath<t.Expression>;
isExpressionStatement(opts?: object): this is NodePath<t.ExpressionStatement>;
isExpressionWrapper(opts?: object): this is NodePath<t.ExpressionWrapper>;
isFile(opts?: object): this is NodePath<t.File>;
isFlow(opts?: object): this is NodePath<t.Flow>;
isFlowBaseAnnotation(opts?: object): this is NodePath<t.FlowBaseAnnotation>;
isFlowDeclaration(opts?: object): this is NodePath<t.FlowDeclaration>;
isFlowPredicate(opts?: object): this is NodePath<t.FlowPredicate>;
isFlowType(opts?: object): this is NodePath<t.FlowType>;
isFor(opts?: object): this is NodePath<t.For>;
isForInStatement(opts?: object): this is NodePath<t.ForInStatement>;
isForOfStatement(opts?: object): this is NodePath<t.ForOfStatement>;
isForStatement(opts?: object): this is NodePath<t.ForStatement>;
isForXStatement(opts?: object): this is NodePath<t.ForXStatement>;
isFunction(opts?: object): this is NodePath<t.Function>;
isFunctionDeclaration(opts?: object): this is NodePath<t.FunctionDeclaration>;
isFunctionExpression(opts?: object): this is NodePath<t.FunctionExpression>;
isFunctionParent(opts?: object): this is NodePath<t.FunctionParent>;
isFunctionTypeAnnotation(
opts?: object,
): this is NodePath<t.FunctionTypeAnnotation>;
isFunctionTypeParam(opts?: object): this is NodePath<t.FunctionTypeParam>;
isGenericTypeAnnotation(
opts?: object,
): this is NodePath<t.GenericTypeAnnotation>;
isIdentifier(opts?: object): this is NodePath<t.Identifier>;
isIfStatement(opts?: object): this is NodePath<t.IfStatement>;
isImmutable(opts?: object): this is NodePath<t.Immutable>;
isImport(opts?: object): this is NodePath<t.Import>;
isImportAttribute(opts?: object): this is NodePath<t.ImportAttribute>;
isImportDeclaration(opts?: object): this is NodePath<t.ImportDeclaration>;
isImportDefaultSpecifier(
opts?: object,
): this is NodePath<t.ImportDefaultSpecifier>;
isImportNamespaceSpecifier(
opts?: object,
): this is NodePath<t.ImportNamespaceSpecifier>;
isImportSpecifier(opts?: object): this is NodePath<t.ImportSpecifier>;
isInferredPredicate(opts?: object): this is NodePath<t.InferredPredicate>;
isInterfaceDeclaration(
opts?: object,
): this is NodePath<t.InterfaceDeclaration>;
isInterfaceExtends(opts?: object): this is NodePath<t.InterfaceExtends>;
isInterfaceTypeAnnotation(
opts?: object,
): this is NodePath<t.InterfaceTypeAnnotation>;
isInterpreterDirective(
opts?: object,
): this is NodePath<t.InterpreterDirective>;
isIntersectionTypeAnnotation(
opts?: object,
): this is NodePath<t.IntersectionTypeAnnotation>;
isJSX(opts?: object): this is NodePath<t.JSX>;
isJSXAttribute(opts?: object): this is NodePath<t.JSXAttribute>;
isJSXClosingElement(opts?: object): this is NodePath<t.JSXClosingElement>;
isJSXClosingFragment(opts?: object): this is NodePath<t.JSXClosingFragment>;
isJSXElement(opts?: object): this is NodePath<t.JSXElement>;
isJSXEmptyExpression(opts?: object): this is NodePath<t.JSXEmptyExpression>;
isJSXExpressionContainer(
opts?: object,
): this is NodePath<t.JSXExpressionContainer>;
isJSXFragment(opts?: object): this is NodePath<t.JSXFragment>;
isJSXIdentifier(opts?: object): this is NodePath<t.JSXIdentifier>;
isJSXMemberExpression(opts?: object): this is NodePath<t.JSXMemberExpression>;
isJSXNamespacedName(opts?: object): this is NodePath<t.JSXNamespacedName>;
isJSXOpeningElement(opts?: object): this is NodePath<t.JSXOpeningElement>;
isJSXOpeningFragment(opts?: object): this is NodePath<t.JSXOpeningFragment>;
isJSXSpreadAttribute(opts?: object): this is NodePath<t.JSXSpreadAttribute>;
isJSXSpreadChild(opts?: object): this is NodePath<t.JSXSpreadChild>;
isJSXText(opts?: object): this is NodePath<t.JSXText>;
isLVal(opts?: object): this is NodePath<t.LVal>;
isLabeledStatement(opts?: object): this is NodePath<t.LabeledStatement>;
isLiteral(opts?: object): this is NodePath<t.Literal>;
isLogicalExpression(opts?: object): this is NodePath<t.LogicalExpression>;
isLoop(opts?: object): this is NodePath<t.Loop>;
isMemberExpression(opts?: object): this is NodePath<t.MemberExpression>;
isMetaProperty(opts?: object): this is NodePath<t.MetaProperty>;
isMethod(opts?: object): this is NodePath<t.Method>;
isMixedTypeAnnotation(opts?: object): this is NodePath<t.MixedTypeAnnotation>;
isModuleDeclaration(opts?: object): this is NodePath<t.ModuleDeclaration>;
isModuleSpecifier(opts?: object): this is NodePath<t.ModuleSpecifier>;
isNewExpression(opts?: object): this is NodePath<t.NewExpression>;
isNoop(opts?: object): this is NodePath<t.Noop>;
isNullLiteral(opts?: object): this is NodePath<t.NullLiteral>;
isNullLiteralTypeAnnotation(
opts?: object,
): this is NodePath<t.NullLiteralTypeAnnotation>;
isNullableTypeAnnotation(
opts?: object,
): this is NodePath<t.NullableTypeAnnotation>;
isNumberLiteral(opts?: object): this is NodePath<t.NumberLiteral>;
isNumberLiteralTypeAnnotation(
opts?: object,
): this is NodePath<t.NumberLiteralTypeAnnotation>;
isNumberTypeAnnotation(
opts?: object,
): this is NodePath<t.NumberTypeAnnotation>;
isNumericLiteral(opts?: object): this is NodePath<t.NumericLiteral>;
isObjectExpression(opts?: object): this is NodePath<t.ObjectExpression>;
isObjectMember(opts?: object): this is NodePath<t.ObjectMember>;
isObjectMethod(opts?: object): this is NodePath<t.ObjectMethod>;
isObjectPattern(opts?: object): this is NodePath<t.ObjectPattern>;
isObjectProperty(opts?: object): this is NodePath<t.ObjectProperty>;
isObjectTypeAnnotation(
opts?: object,
): this is NodePath<t.ObjectTypeAnnotation>;
isObjectTypeCallProperty(
opts?: object,
): this is NodePath<t.ObjectTypeCallProperty>;
isObjectTypeIndexer(opts?: object): this is NodePath<t.ObjectTypeIndexer>;
isObjectTypeInternalSlot(
opts?: object,
): this is NodePath<t.ObjectTypeInternalSlot>;
isObjectTypeProperty(opts?: object): this is NodePath<t.ObjectTypeProperty>;
isObjectTypeSpreadProperty(
opts?: object,
): this is NodePath<t.ObjectTypeSpreadProperty>;
isOpaqueType(opts?: object): this is NodePath<t.OpaqueType>;
isOptionalCallExpression(
opts?: object,
): this is NodePath<t.OptionalCallExpression>;
isOptionalMemberExpression(
opts?: object,
): this is NodePath<t.OptionalMemberExpression>;
isParenthesizedExpression(
opts?: object,
): this is NodePath<t.ParenthesizedExpression>;
isPattern(opts?: object): this is NodePath<t.Pattern>;
isPatternLike(opts?: object): this is NodePath<t.PatternLike>;
isPipelineBareFunction(
opts?: object,
): this is NodePath<t.PipelineBareFunction>;
isPipelinePrimaryTopicReference(
opts?: object,
): this is NodePath<t.PipelinePrimaryTopicReference>;
isPipelineTopicExpression(
opts?: object,
): this is NodePath<t.PipelineTopicExpression>;
isPlaceholder(opts?: object): this is NodePath<t.Placeholder>;
isPrivate(opts?: object): this is NodePath<t.Private>;
isPrivateName(opts?: object): this is NodePath<t.PrivateName>;
isProgram(opts?: object): this is NodePath<t.Program>;
isProperty(opts?: object): this is NodePath<t.Property>;
isPureish(opts?: object): this is NodePath<t.Pureish>;
isQualifiedTypeIdentifier(
opts?: object,
): this is NodePath<t.QualifiedTypeIdentifier>;
isRecordExpression(opts?: object): this is NodePath<t.RecordExpression>;
isRegExpLiteral(opts?: object): this is NodePath<t.RegExpLiteral>;
isRegexLiteral(opts?: object): this is NodePath<t.RegexLiteral>;
isRestElement(opts?: object): this is NodePath<t.RestElement>;
isRestProperty(opts?: object): this is NodePath<t.RestProperty>;
isReturnStatement(opts?: object): this is NodePath<t.ReturnStatement>;
isScopable(opts?: object): this is NodePath<t.Scopable>;
isSequenceExpression(opts?: object): this is NodePath<t.SequenceExpression>;
isSpreadElement(opts?: object): this is NodePath<t.SpreadElement>;
isSpreadProperty(opts?: object): this is NodePath<t.SpreadProperty>;
isStatement(opts?: object): this is NodePath<t.Statement>;
isStaticBlock(opts?: object): this is NodePath<t.StaticBlock>;
isStringLiteral(opts?: object): this is NodePath<t.StringLiteral>;
isStringLiteralTypeAnnotation(
opts?: object,
): this is NodePath<t.StringLiteralTypeAnnotation>;
isStringTypeAnnotation(
opts?: object,
): this is NodePath<t.StringTypeAnnotation>;
isSuper(opts?: object): this is NodePath<t.Super>;
isSwitchCase(opts?: object): this is NodePath<t.SwitchCase>;
isSwitchStatement(opts?: object): this is NodePath<t.SwitchStatement>;
isSymbolTypeAnnotation(
opts?: object,
): this is NodePath<t.SymbolTypeAnnotation>;
isTSAnyKeyword(opts?: object): this is NodePath<t.TSAnyKeyword>;
isTSArrayType(opts?: object): this is NodePath<t.TSArrayType>;
isTSAsExpression(opts?: object): this is NodePath<t.TSAsExpression>;
isTSBaseType(opts?: object): this is NodePath<t.TSBaseType>;
isTSBigIntKeyword(opts?: object): this is NodePath<t.TSBigIntKeyword>;
isTSBooleanKeyword(opts?: object): this is NodePath<t.TSBooleanKeyword>;
isTSCallSignatureDeclaration(
opts?: object,
): this is NodePath<t.TSCallSignatureDeclaration>;
isTSConditionalType(opts?: object): this is NodePath<t.TSConditionalType>;
isTSConstructSignatureDeclaration(
opts?: object,
): this is NodePath<t.TSConstructSignatureDeclaration>;
isTSConstructorType(opts?: object): this is NodePath<t.TSConstructorType>;
isTSDeclareFunction(opts?: object): this is NodePath<t.TSDeclareFunction>;
isTSDeclareMethod(opts?: object): this is NodePath<t.TSDeclareMethod>;
isTSEntityName(opts?: object): this is NodePath<t.TSEntityName>;
isTSEnumDeclaration(opts?: object): this is NodePath<t.TSEnumDeclaration>;
isTSEnumMember(opts?: object): this is NodePath<t.TSEnumMember>;
isTSExportAssignment(opts?: object): this is NodePath<t.TSExportAssignment>;
isTSExpressionWithTypeArguments(
opts?: object,
): this is NodePath<t.TSExpressionWithTypeArguments>;
isTSExternalModuleReference(
opts?: object,
): this is NodePath<t.TSExternalModuleReference>;
isTSFunctionType(opts?: object): this is NodePath<t.TSFunctionType>;
isTSImportEqualsDeclaration(
opts?: object,
): this is NodePath<t.TSImportEqualsDeclaration>;
isTSImportType(opts?: object): this is NodePath<t.TSImportType>;
isTSIndexSignature(opts?: object): this is NodePath<t.TSIndexSignature>;
isTSIndexedAccessType(opts?: object): this is NodePath<t.TSIndexedAccessType>;
isTSInferType(opts?: object): this is NodePath<t.TSInferType>;
isTSInterfaceBody(opts?: object): this is NodePath<t.TSInterfaceBody>;
isTSInterfaceDeclaration(
opts?: object,
): this is NodePath<t.TSInterfaceDeclaration>;
isTSIntersectionType(opts?: object): this is NodePath<t.TSIntersectionType>;
isTSIntrinsicKeyword(opts?: object): this is NodePath<t.TSIntrinsicKeyword>;
isTSLiteralType(opts?: object): this is NodePath<t.TSLiteralType>;
isTSMappedType(opts?: object): this is NodePath<t.TSMappedType>;
isTSMethodSignature(opts?: object): this is NodePath<t.TSMethodSignature>;
isTSModuleBlock(opts?: object): this is NodePath<t.TSModuleBlock>;
isTSModuleDeclaration(opts?: object): this is NodePath<t.TSModuleDeclaration>;
isTSNamedTupleMember(opts?: object): this is NodePath<t.TSNamedTupleMember>;
isTSNamespaceExportDeclaration(
opts?: object,
): this is NodePath<t.TSNamespaceExportDeclaration>;
isTSNeverKeyword(opts?: object): this is NodePath<t.TSNeverKeyword>;
isTSNonNullExpression(opts?: object): this is NodePath<t.TSNonNullExpression>;
isTSNullKeyword(opts?: object): this is NodePath<t.TSNullKeyword>;
isTSNumberKeyword(opts?: object): this is NodePath<t.TSNumberKeyword>;
isTSObjectKeyword(opts?: object): this is NodePath<t.TSObjectKeyword>;
isTSOptionalType(opts?: object): this is NodePath<t.TSOptionalType>;
isTSParameterProperty(opts?: object): this is NodePath<t.TSParameterProperty>;
isTSParenthesizedType(opts?: object): this is NodePath<t.TSParenthesizedType>;
isTSPropertySignature(opts?: object): this is NodePath<t.TSPropertySignature>;
isTSQualifiedName(opts?: object): this is NodePath<t.TSQualifiedName>;
isTSRestType(opts?: object): this is NodePath<t.TSRestType>;
isTSStringKeyword(opts?: object): this is NodePath<t.TSStringKeyword>;
isTSSymbolKeyword(opts?: object): this is NodePath<t.TSSymbolKeyword>;
isTSThisType(opts?: object): this is NodePath<t.TSThisType>;
isTSTupleType(opts?: object): this is NodePath<t.TSTupleType>;
isTSType(opts?: object): this is NodePath<t.TSType>;
isTSTypeAliasDeclaration(
opts?: object,
): this is NodePath<t.TSTypeAliasDeclaration>;
isTSTypeAnnotation(opts?: object): this is NodePath<t.TSTypeAnnotation>;
isTSTypeAssertion(opts?: object): this is NodePath<t.TSTypeAssertion>;
isTSTypeElement(opts?: object): this is NodePath<t.TSTypeElement>;
isTSTypeLiteral(opts?: object): this is NodePath<t.TSTypeLiteral>;
isTSTypeOperator(opts?: object): this is NodePath<t.TSTypeOperator>;
isTSTypeParameter(opts?: object): this is NodePath<t.TSTypeParameter>;
isTSTypeParameterDeclaration(
opts?: object,
): this is NodePath<t.TSTypeParameterDeclaration>;
isTSTypeParameterInstantiation(
opts?: object,
): this is NodePath<t.TSTypeParameterInstantiation>;
isTSTypePredicate(opts?: object): this is NodePath<t.TSTypePredicate>;
isTSTypeQuery(opts?: object): this is NodePath<t.TSTypeQuery>;
isTSTypeReference(opts?: object): this is NodePath<t.TSTypeReference>;
isTSUndefinedKeyword(opts?: object): this is NodePath<t.TSUndefinedKeyword>;
isTSUnionType(opts?: object): this is NodePath<t.TSUnionType>;
isTSUnknownKeyword(opts?: object): this is NodePath<t.TSUnknownKeyword>;
isTSVoidKeyword(opts?: object): this is NodePath<t.TSVoidKeyword>;
isTaggedTemplateExpression(
opts?: object,
): this is NodePath<t.TaggedTemplateExpression>;
isTemplateElement(opts?: object): this is NodePath<t.TemplateElement>;
isTemplateLiteral(opts?: object): this is NodePath<t.TemplateLiteral>;
isTerminatorless(opts?: object): this is NodePath<t.Terminatorless>;
isThisExpression(opts?: object): this is NodePath<t.ThisExpression>;
isThisTypeAnnotation(opts?: object): this is NodePath<t.ThisTypeAnnotation>;
isThrowStatement(opts?: object): this is NodePath<t.ThrowStatement>;
isTryStatement(opts?: object): this is NodePath<t.TryStatement>;
isTupleExpression(opts?: object): this is NodePath<t.TupleExpression>;
isTupleTypeAnnotation(opts?: object): this is NodePath<t.TupleTypeAnnotation>;
isTypeAlias(opts?: object): this is NodePath<t.TypeAlias>;
isTypeAnnotation(opts?: object): this is NodePath<t.TypeAnnotation>;
isTypeCastExpression(opts?: object): this is NodePath<t.TypeCastExpression>;
isTypeParameter(opts?: object): this is NodePath<t.TypeParameter>;
isTypeParameterDeclaration(
opts?: object,
): this is NodePath<t.TypeParameterDeclaration>;
isTypeParameterInstantiation(
opts?: object,
): this is NodePath<t.TypeParameterInstantiation>;
isTypeofTypeAnnotation(
opts?: object,
): this is NodePath<t.TypeofTypeAnnotation>;
isUnaryExpression(opts?: object): this is NodePath<t.UnaryExpression>;
isUnaryLike(opts?: object): this is NodePath<t.UnaryLike>;
isUnionTypeAnnotation(opts?: object): this is NodePath<t.UnionTypeAnnotation>;
isUpdateExpression(opts?: object): this is NodePath<t.UpdateExpression>;
isUserWhitespacable(opts?: object): this is NodePath<t.UserWhitespacable>;
isV8IntrinsicIdentifier(
opts?: object,
): this is NodePath<t.V8IntrinsicIdentifier>;
isVariableDeclaration(opts?: object): this is NodePath<t.VariableDeclaration>;
isVariableDeclarator(opts?: object): this is NodePath<t.VariableDeclarator>;
isVariance(opts?: object): this is NodePath<t.Variance>;
isVoidTypeAnnotation(opts?: object): this is NodePath<t.VoidTypeAnnotation>;
isWhile(opts?: object): this is NodePath<t.While>;
isWhileStatement(opts?: object): this is NodePath<t.WhileStatement>;
isWithStatement(opts?: object): this is NodePath<t.WithStatement>;
isYieldExpression(opts?: object): this is NodePath<t.YieldExpression>;
isReferencedIdentifier(opts?: object): boolean;
isReferencedMemberExpression(opts?: object): boolean;
isBindingIdentifier(opts?: object): boolean;
isStatement(opts?: object): this is NodePath<t.Statement>;
isExpression(opts?: object): this is NodePath<t.Expression>;
isScope(opts?: object): boolean;
isReferenced(opts?: object): boolean;
isBlockScoped(opts?: object): boolean;
isVar(opts?: object): boolean;
isUser(opts?: object): boolean;
isGenerated(opts?: object): boolean;
isPure(opts?: object): boolean;
isFlow(opts?: object): this is NodePath<t.Flow>;
isRestProperty(opts?: object): boolean;
isSpreadProperty(opts?: object): boolean;
isExistentialTypeParam(opts?: object): boolean;
isNumericLiteralTypeAnnotation(opts?: object): boolean;
isForAwaitStatement(opts?: object): boolean;
}

View File

@@ -0,0 +1,26 @@
/*
* This file is auto-generated! Do not modify it directly.
* To re-generate run 'make build'
*/
import * as t from "@babel/types";
export interface VirtualTypeAliases {
ReferencedIdentifier: t.Identifier | t.JSXIdentifier;
ReferencedMemberExpression: t.MemberExpression;
BindingIdentifier: t.Identifier;
Statement: t.Statement;
Expression: t.Expression;
Scope: t.Scopable | t.Pattern;
Referenced: t.Node;
BlockScoped: t.Node;
Var: t.VariableDeclaration;
User: t.Node;
Generated: t.Node;
Pure: t.Node;
Flow: t.Flow | t.ImportDeclaration | t.ExportDeclaration | t.ImportSpecifier;
RestProperty: t.RestElement;
SpreadProperty: t.RestElement;
ExistentialTypeParam: t.ExistsTypeAnnotation;
NumericLiteralTypeAnnotation: t.NumberLiteralTypeAnnotation;
ForAwaitStatement: t.ForOfStatement;
}