import.meta.location 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/dist/bun/index.d.mts +8 -0
- package/dist/bun/index.mjs +2 -0
- package/dist/bun/preload.d.mts +1 -0
- package/dist/bun/preload.mjs +5 -0
- package/dist/bun-Bn5rpU4O.mjs +216 -0
- package/dist/plugin/index.cjs +54 -0
- package/dist/plugin/index.d.cts +2571 -0
- package/dist/plugin/index.d.mts +2571 -0
- package/dist/plugin/index.mjs +54 -0
- package/package.json +124 -0
- package/src/types/index.d.ts +17 -0
|
@@ -0,0 +1,2571 @@
|
|
|
1
|
+
import { PluginObj, PluginPass } from "@babel/core";
|
|
2
|
+
|
|
3
|
+
//#region \0rolldown/runtime.js
|
|
4
|
+
declare namespace index_legacy_d_exports {
|
|
5
|
+
export { Accessor, Aliases, 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, Comment, CommentBlock, CommentLine, CommentTypeShorthand, 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, FunctionParameter, 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, Node, 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, SourceLocation, 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, TraversalAncestors, TraversalHandler, TraversalHandlers, TryStatement, TupleExpression, TupleTypeAnnotation, TypeAlias, TypeAnnotation, TypeCastExpression, TypeParameter, TypeParameterDeclaration, TypeParameterInstantiation, TypeScript, TypeofTypeAnnotation, UnaryExpression, UnaryLike, UnionTypeAnnotation, UpdateExpression, UserWhitespacable, V8IntrinsicIdentifier, VariableDeclaration, VariableDeclarator, Variance, VoidPattern, VoidTypeAnnotation, While, WhileStatement, WithStatement, YieldExpression, 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, assertDeclareExportAllDeclaration, assertDeclareExportDeclaration, assertDeclareFunction, assertDeclareInterface, assertDeclareModule, assertDeclareModuleExports, assertDeclareOpaqueType, assertDeclareTypeAlias, assertDeclareVariable, assertDeclaredPredicate, 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, assertFunctionParameter, 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, assertLVal, assertLabeledStatement, assertLiteral, assertLogicalExpression, assertLoop, assertMemberExpression, assertMetaProperty, assertMethod, assertMiscellaneous, assertMixedTypeAnnotation, assertModuleDeclaration, assertModuleExpression, assertModuleSpecifier, assertNewExpression, assertNode, assertNoop, assertNullLiteral, assertNullLiteralTypeAnnotation, assertNullableTypeAnnotation, 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, assertRegExpLiteral, assertRegexLiteral, assertRestElement, assertRestProperty, assertReturnStatement, assertScopable, assertSequenceExpression, assertSpreadElement, assertSpreadProperty, assertStandardized, assertStatement, assertStaticBlock, assertStringLiteral, assertStringLiteralTypeAnnotation, assertStringTypeAnnotation, assertSuper, assertSwitchCase, assertSwitchStatement, assertSymbolTypeAnnotation, assertTSAnyKeyword, assertTSArrayType, assertTSAsExpression, assertTSBaseType, assertTSBigIntKeyword, assertTSBooleanKeyword, assertTSCallSignatureDeclaration, assertTSConditionalType, assertTSConstructSignatureDeclaration, assertTSConstructorType, assertTSDeclareFunction, assertTSDeclareMethod, assertTSEntityName, assertTSEnumBody, assertTSEnumDeclaration, assertTSEnumMember, assertTSExportAssignment, assertTSExpressionWithTypeArguments, assertTSExternalModuleReference, assertTSFunctionType, assertTSImportEqualsDeclaration, assertTSImportType, assertTSIndexSignature, assertTSIndexedAccessType, 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, assertTaggedTemplateExpression, assertTemplateElement, assertTemplateLiteral, assertTerminatorless, assertThisExpression, assertThisTypeAnnotation, assertThrowStatement, assertTopicReference, assertTryStatement, assertTupleExpression, assertTupleTypeAnnotation, assertTypeAlias, assertTypeAnnotation, assertTypeCastExpression, assertTypeParameter, assertTypeParameterDeclaration, assertTypeParameterInstantiation, assertTypeScript, assertTypeofTypeAnnotation, assertUnaryExpression, assertUnaryLike, assertUnionTypeAnnotation, assertUpdateExpression, assertUserWhitespacable, assertV8IntrinsicIdentifier, assertVariableDeclaration, assertVariableDeclarator, assertVariance, assertVoidPattern, 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, declareExportAllDeclaration, declareExportDeclaration, declareFunction, declareInterface, declareModule, declareModuleExports, declareOpaqueType, declareTypeAlias, declareVariable, declaredPredicate, 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 as import, importAttribute, importDeclaration, importDefaultSpecifier, importExpression, importNamespaceSpecifier, importSpecifier, indexedAccessType, inferredPredicate, inheritInnerComments, inheritLeadingComments, inheritTrailingComments, inherits, inheritsComments, 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, isDeclareExportAllDeclaration, isDeclareExportDeclaration, isDeclareFunction, isDeclareInterface, isDeclareModule, isDeclareModuleExports, isDeclareOpaqueType, isDeclareTypeAlias, isDeclareVariable, isDeclaredPredicate, 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, isFunctionParameter, 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, isLVal, isLabeledStatement, isLet, isLiteral, isLogicalExpression, isLoop, isMemberExpression, isMetaProperty, isMethod, isMiscellaneous, isMixedTypeAnnotation, isModuleDeclaration, isModuleExpression, isModuleSpecifier, isNewExpression, isNode, isNodesEquivalent, isNoop, isNullLiteral, isNullLiteralTypeAnnotation, isNullableTypeAnnotation, 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, isRegExpLiteral, isRegexLiteral, isRestElement, isRestProperty, isReturnStatement, isScopable, isScope, isSequenceExpression, isSpecifierDefault, isSpreadElement, isSpreadProperty, isStandardized, isStatement, isStaticBlock, isStringLiteral, isStringLiteralTypeAnnotation, isStringTypeAnnotation, isSuper, isSwitchCase, isSwitchStatement, isSymbolTypeAnnotation, isTSAnyKeyword, isTSArrayType, isTSAsExpression, isTSBaseType, isTSBigIntKeyword, isTSBooleanKeyword, isTSCallSignatureDeclaration, isTSConditionalType, isTSConstructSignatureDeclaration, isTSConstructorType, isTSDeclareFunction, isTSDeclareMethod, isTSEntityName, isTSEnumBody, isTSEnumDeclaration, isTSEnumMember, isTSExportAssignment, isTSExpressionWithTypeArguments, isTSExternalModuleReference, isTSFunctionType, isTSImportEqualsDeclaration, isTSImportType, isTSIndexSignature, isTSIndexedAccessType, 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, isTaggedTemplateExpression, isTemplateElement, isTemplateLiteral, isTerminatorless, isThisExpression, isThisTypeAnnotation, isThrowStatement, isTopicReference, isTryStatement, isTupleExpression, isTupleTypeAnnotation, isType, isTypeAlias, isTypeAnnotation, isTypeCastExpression, isTypeParameter, isTypeParameterDeclaration, isTypeParameterInstantiation, isTypeScript, isTypeofTypeAnnotation, isUnaryExpression, isUnaryLike, isUnionTypeAnnotation, isUpdateExpression, isUserWhitespacable, isV8IntrinsicIdentifier, isValidES3Identifier, isValidIdentifier, isVar, isVariableDeclaration, isVariableDeclarator, isVariance, isVoidPattern, 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, nullLiteral, nullLiteralTypeAnnotation, nullableTypeAnnotation, 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 as super, switchCase, switchStatement, symbolTypeAnnotation, taggedTemplateExpression, templateElement, templateLiteral, thisExpression, thisTypeAnnotation, throwStatement, toBindingIdentifierName, toBlock, toComputedKey, toExpression, toIdentifier, toKeyAlias, toSequenceExpression, toStatement, topicReference, traverse, traverseFast, tryStatement, tsAnyKeyword, tsArrayType, tsAsExpression, tsBigIntKeyword, tsBooleanKeyword, tsCallSignatureDeclaration, tsConditionalType, tsConstructSignatureDeclaration, tsConstructorType, tsDeclareFunction, tsDeclareMethod, 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, tsTypeAliasDeclaration, tsTypeAnnotation, tsTypeAssertion, tsTypeLiteral, tsTypeOperator, tsTypeParameter, tsTypeParameterDeclaration, tsTypeParameterInstantiation, tsTypePredicate, tsTypeQuery, tsTypeReference, tsUndefinedKeyword, tsUnionType, tsUnknownKeyword, tsVoidKeyword, tupleExpression, tupleTypeAnnotation, typeAlias, typeAnnotation, typeCastExpression, typeParameter, typeParameterDeclaration, typeParameterInstantiation, typeofTypeAnnotation, unaryExpression, unionTypeAnnotation, updateExpression, v8IntrinsicIdentifier, validate, valueToNode, variableDeclaration, variableDeclarator, variance, voidPattern, voidTypeAnnotation, whileStatement, withStatement, yieldExpression };
|
|
6
|
+
}
|
|
7
|
+
// NOTE: This file is autogenerated. Do not modify.
|
|
8
|
+
// See packages/babel-types/scripts/generators/typescript-legacy.ts for script used.
|
|
9
|
+
interface BaseComment {
|
|
10
|
+
value: string;
|
|
11
|
+
start: number;
|
|
12
|
+
end: number;
|
|
13
|
+
loc: SourceLocation;
|
|
14
|
+
type: "CommentBlock" | "CommentLine";
|
|
15
|
+
}
|
|
16
|
+
interface CommentBlock extends BaseComment {
|
|
17
|
+
type: "CommentBlock";
|
|
18
|
+
}
|
|
19
|
+
interface CommentLine extends BaseComment {
|
|
20
|
+
type: "CommentLine";
|
|
21
|
+
}
|
|
22
|
+
type Comment = CommentBlock | CommentLine;
|
|
23
|
+
interface SourceLocation {
|
|
24
|
+
start: {
|
|
25
|
+
line: number;
|
|
26
|
+
column: number;
|
|
27
|
+
};
|
|
28
|
+
end: {
|
|
29
|
+
line: number;
|
|
30
|
+
column: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface BaseNode {
|
|
34
|
+
leadingComments: ReadonlyArray<Comment> | null;
|
|
35
|
+
innerComments: ReadonlyArray<Comment> | null;
|
|
36
|
+
trailingComments: ReadonlyArray<Comment> | null;
|
|
37
|
+
start: number | null;
|
|
38
|
+
end: number | null;
|
|
39
|
+
loc: SourceLocation | null;
|
|
40
|
+
type: Node["type"];
|
|
41
|
+
extra?: Record<string, unknown>;
|
|
42
|
+
}
|
|
43
|
+
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 | FunctionParameter | 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 | VoidPattern | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
|
|
44
|
+
interface ArrayExpression extends BaseNode {
|
|
45
|
+
type: "ArrayExpression";
|
|
46
|
+
elements: (null | Expression | SpreadElement)[];
|
|
47
|
+
}
|
|
48
|
+
interface AssignmentExpression extends BaseNode {
|
|
49
|
+
type: "AssignmentExpression";
|
|
50
|
+
operator: string;
|
|
51
|
+
left: LVal | OptionalMemberExpression;
|
|
52
|
+
right: Expression;
|
|
53
|
+
}
|
|
54
|
+
interface BinaryExpression extends BaseNode {
|
|
55
|
+
type: "BinaryExpression";
|
|
56
|
+
operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=" | "|>";
|
|
57
|
+
left: Expression | PrivateName;
|
|
58
|
+
right: Expression;
|
|
59
|
+
}
|
|
60
|
+
interface InterpreterDirective extends BaseNode {
|
|
61
|
+
type: "InterpreterDirective";
|
|
62
|
+
value: string;
|
|
63
|
+
}
|
|
64
|
+
interface Directive extends BaseNode {
|
|
65
|
+
type: "Directive";
|
|
66
|
+
value: DirectiveLiteral;
|
|
67
|
+
}
|
|
68
|
+
interface DirectiveLiteral extends BaseNode {
|
|
69
|
+
type: "DirectiveLiteral";
|
|
70
|
+
value: string;
|
|
71
|
+
}
|
|
72
|
+
interface BlockStatement extends BaseNode {
|
|
73
|
+
type: "BlockStatement";
|
|
74
|
+
body: Statement[];
|
|
75
|
+
directives: Directive[];
|
|
76
|
+
}
|
|
77
|
+
interface BreakStatement extends BaseNode {
|
|
78
|
+
type: "BreakStatement";
|
|
79
|
+
label: Identifier | null;
|
|
80
|
+
}
|
|
81
|
+
interface CallExpression extends BaseNode {
|
|
82
|
+
type: "CallExpression";
|
|
83
|
+
callee: Expression | Super | V8IntrinsicIdentifier;
|
|
84
|
+
arguments: (Expression | SpreadElement | ArgumentPlaceholder)[];
|
|
85
|
+
optional: boolean | null;
|
|
86
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
87
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
88
|
+
}
|
|
89
|
+
interface CatchClause extends BaseNode {
|
|
90
|
+
type: "CatchClause";
|
|
91
|
+
param: Identifier | ArrayPattern | ObjectPattern | null;
|
|
92
|
+
body: BlockStatement;
|
|
93
|
+
}
|
|
94
|
+
interface ConditionalExpression extends BaseNode {
|
|
95
|
+
type: "ConditionalExpression";
|
|
96
|
+
test: Expression;
|
|
97
|
+
consequent: Expression;
|
|
98
|
+
alternate: Expression;
|
|
99
|
+
}
|
|
100
|
+
interface ContinueStatement extends BaseNode {
|
|
101
|
+
type: "ContinueStatement";
|
|
102
|
+
label: Identifier | null;
|
|
103
|
+
}
|
|
104
|
+
interface DebuggerStatement extends BaseNode {
|
|
105
|
+
type: "DebuggerStatement";
|
|
106
|
+
}
|
|
107
|
+
interface DoWhileStatement extends BaseNode {
|
|
108
|
+
type: "DoWhileStatement";
|
|
109
|
+
test: Expression;
|
|
110
|
+
body: Statement;
|
|
111
|
+
}
|
|
112
|
+
interface EmptyStatement extends BaseNode {
|
|
113
|
+
type: "EmptyStatement";
|
|
114
|
+
}
|
|
115
|
+
interface ExpressionStatement extends BaseNode {
|
|
116
|
+
type: "ExpressionStatement";
|
|
117
|
+
expression: Expression;
|
|
118
|
+
}
|
|
119
|
+
interface File extends BaseNode {
|
|
120
|
+
type: "File";
|
|
121
|
+
program: Program;
|
|
122
|
+
comments: (CommentBlock | CommentLine)[] | null;
|
|
123
|
+
tokens: any[] | null;
|
|
124
|
+
}
|
|
125
|
+
interface ForInStatement extends BaseNode {
|
|
126
|
+
type: "ForInStatement";
|
|
127
|
+
left: VariableDeclaration | LVal;
|
|
128
|
+
right: Expression;
|
|
129
|
+
body: Statement;
|
|
130
|
+
}
|
|
131
|
+
interface ForStatement extends BaseNode {
|
|
132
|
+
type: "ForStatement";
|
|
133
|
+
init: VariableDeclaration | Expression | null;
|
|
134
|
+
test: Expression | null;
|
|
135
|
+
update: Expression | null;
|
|
136
|
+
body: Statement;
|
|
137
|
+
}
|
|
138
|
+
interface FunctionDeclaration extends BaseNode {
|
|
139
|
+
type: "FunctionDeclaration";
|
|
140
|
+
id: Identifier | null;
|
|
141
|
+
params: FunctionParameter[];
|
|
142
|
+
body: BlockStatement;
|
|
143
|
+
generator: boolean;
|
|
144
|
+
async: boolean;
|
|
145
|
+
declare: boolean | null;
|
|
146
|
+
predicate: DeclaredPredicate | InferredPredicate | null;
|
|
147
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
148
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
149
|
+
}
|
|
150
|
+
interface FunctionExpression extends BaseNode {
|
|
151
|
+
type: "FunctionExpression";
|
|
152
|
+
id: Identifier | null;
|
|
153
|
+
params: FunctionParameter[];
|
|
154
|
+
body: BlockStatement;
|
|
155
|
+
generator: boolean;
|
|
156
|
+
async: boolean;
|
|
157
|
+
predicate: DeclaredPredicate | InferredPredicate | null;
|
|
158
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
159
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
160
|
+
}
|
|
161
|
+
interface Identifier extends BaseNode {
|
|
162
|
+
type: "Identifier";
|
|
163
|
+
name: string;
|
|
164
|
+
decorators: Decorator[] | null;
|
|
165
|
+
optional: boolean | null;
|
|
166
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
167
|
+
}
|
|
168
|
+
interface IfStatement extends BaseNode {
|
|
169
|
+
type: "IfStatement";
|
|
170
|
+
test: Expression;
|
|
171
|
+
consequent: Statement;
|
|
172
|
+
alternate: Statement | null;
|
|
173
|
+
}
|
|
174
|
+
interface LabeledStatement extends BaseNode {
|
|
175
|
+
type: "LabeledStatement";
|
|
176
|
+
label: Identifier;
|
|
177
|
+
body: Statement;
|
|
178
|
+
}
|
|
179
|
+
interface StringLiteral extends BaseNode {
|
|
180
|
+
type: "StringLiteral";
|
|
181
|
+
value: string;
|
|
182
|
+
}
|
|
183
|
+
interface NumericLiteral extends BaseNode {
|
|
184
|
+
type: "NumericLiteral";
|
|
185
|
+
value: number;
|
|
186
|
+
}
|
|
187
|
+
interface NullLiteral extends BaseNode {
|
|
188
|
+
type: "NullLiteral";
|
|
189
|
+
}
|
|
190
|
+
interface BooleanLiteral extends BaseNode {
|
|
191
|
+
type: "BooleanLiteral";
|
|
192
|
+
value: boolean;
|
|
193
|
+
}
|
|
194
|
+
interface RegExpLiteral extends BaseNode {
|
|
195
|
+
type: "RegExpLiteral";
|
|
196
|
+
pattern: string;
|
|
197
|
+
flags: string;
|
|
198
|
+
}
|
|
199
|
+
interface LogicalExpression extends BaseNode {
|
|
200
|
+
type: "LogicalExpression";
|
|
201
|
+
operator: "||" | "&&" | "??";
|
|
202
|
+
left: Expression;
|
|
203
|
+
right: Expression;
|
|
204
|
+
}
|
|
205
|
+
interface MemberExpression extends BaseNode {
|
|
206
|
+
type: "MemberExpression";
|
|
207
|
+
object: Expression | Super;
|
|
208
|
+
property: Expression | Identifier | PrivateName;
|
|
209
|
+
computed: boolean;
|
|
210
|
+
optional: boolean | null;
|
|
211
|
+
}
|
|
212
|
+
interface NewExpression extends BaseNode {
|
|
213
|
+
type: "NewExpression";
|
|
214
|
+
callee: Expression | Super | V8IntrinsicIdentifier;
|
|
215
|
+
arguments: (Expression | SpreadElement | ArgumentPlaceholder)[];
|
|
216
|
+
optional: boolean | null;
|
|
217
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
218
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
219
|
+
}
|
|
220
|
+
interface Program extends BaseNode {
|
|
221
|
+
type: "Program";
|
|
222
|
+
body: Statement[];
|
|
223
|
+
directives: Directive[];
|
|
224
|
+
sourceType: "script" | "module";
|
|
225
|
+
interpreter: InterpreterDirective | null;
|
|
226
|
+
}
|
|
227
|
+
interface ObjectExpression extends BaseNode {
|
|
228
|
+
type: "ObjectExpression";
|
|
229
|
+
properties: (ObjectMethod | ObjectProperty | SpreadElement)[];
|
|
230
|
+
}
|
|
231
|
+
interface ObjectMethod extends BaseNode {
|
|
232
|
+
type: "ObjectMethod";
|
|
233
|
+
kind: "method" | "get" | "set";
|
|
234
|
+
key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral;
|
|
235
|
+
params: FunctionParameter[];
|
|
236
|
+
body: BlockStatement;
|
|
237
|
+
computed: boolean;
|
|
238
|
+
generator: boolean;
|
|
239
|
+
async: boolean;
|
|
240
|
+
decorators: Decorator[] | null;
|
|
241
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
242
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
243
|
+
}
|
|
244
|
+
interface ObjectProperty extends BaseNode {
|
|
245
|
+
type: "ObjectProperty";
|
|
246
|
+
key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | DecimalLiteral | PrivateName;
|
|
247
|
+
value: Expression | PatternLike;
|
|
248
|
+
computed: boolean;
|
|
249
|
+
shorthand: boolean;
|
|
250
|
+
decorators: Decorator[] | null;
|
|
251
|
+
}
|
|
252
|
+
interface RestElement extends BaseNode {
|
|
253
|
+
type: "RestElement";
|
|
254
|
+
argument: Identifier | ArrayPattern | ObjectPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | RestElement | AssignmentPattern;
|
|
255
|
+
decorators: Decorator[] | null;
|
|
256
|
+
optional: boolean | null;
|
|
257
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
258
|
+
}
|
|
259
|
+
interface ReturnStatement extends BaseNode {
|
|
260
|
+
type: "ReturnStatement";
|
|
261
|
+
argument: Expression | null;
|
|
262
|
+
}
|
|
263
|
+
interface SequenceExpression extends BaseNode {
|
|
264
|
+
type: "SequenceExpression";
|
|
265
|
+
expressions: Expression[];
|
|
266
|
+
}
|
|
267
|
+
interface ParenthesizedExpression extends BaseNode {
|
|
268
|
+
type: "ParenthesizedExpression";
|
|
269
|
+
expression: Expression;
|
|
270
|
+
}
|
|
271
|
+
interface SwitchCase extends BaseNode {
|
|
272
|
+
type: "SwitchCase";
|
|
273
|
+
test: Expression | null;
|
|
274
|
+
consequent: Statement[];
|
|
275
|
+
}
|
|
276
|
+
interface SwitchStatement extends BaseNode {
|
|
277
|
+
type: "SwitchStatement";
|
|
278
|
+
discriminant: Expression;
|
|
279
|
+
cases: SwitchCase[];
|
|
280
|
+
}
|
|
281
|
+
interface ThisExpression extends BaseNode {
|
|
282
|
+
type: "ThisExpression";
|
|
283
|
+
}
|
|
284
|
+
interface ThrowStatement extends BaseNode {
|
|
285
|
+
type: "ThrowStatement";
|
|
286
|
+
argument: Expression;
|
|
287
|
+
}
|
|
288
|
+
interface TryStatement extends BaseNode {
|
|
289
|
+
type: "TryStatement";
|
|
290
|
+
block: BlockStatement;
|
|
291
|
+
handler: CatchClause | null;
|
|
292
|
+
finalizer: BlockStatement | null;
|
|
293
|
+
}
|
|
294
|
+
interface UnaryExpression extends BaseNode {
|
|
295
|
+
type: "UnaryExpression";
|
|
296
|
+
operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
|
|
297
|
+
argument: Expression;
|
|
298
|
+
prefix: boolean;
|
|
299
|
+
}
|
|
300
|
+
interface UpdateExpression extends BaseNode {
|
|
301
|
+
type: "UpdateExpression";
|
|
302
|
+
operator: "++" | "--";
|
|
303
|
+
argument: Expression;
|
|
304
|
+
prefix: boolean;
|
|
305
|
+
}
|
|
306
|
+
interface VariableDeclaration extends BaseNode {
|
|
307
|
+
type: "VariableDeclaration";
|
|
308
|
+
kind: "var" | "let" | "const" | "using" | "await using";
|
|
309
|
+
declarations: VariableDeclarator[];
|
|
310
|
+
declare: boolean | null;
|
|
311
|
+
}
|
|
312
|
+
interface VariableDeclarator extends BaseNode {
|
|
313
|
+
type: "VariableDeclarator";
|
|
314
|
+
id: LVal | VoidPattern;
|
|
315
|
+
init: Expression | null;
|
|
316
|
+
definite: boolean | null;
|
|
317
|
+
}
|
|
318
|
+
interface WhileStatement extends BaseNode {
|
|
319
|
+
type: "WhileStatement";
|
|
320
|
+
test: Expression;
|
|
321
|
+
body: Statement;
|
|
322
|
+
}
|
|
323
|
+
interface WithStatement extends BaseNode {
|
|
324
|
+
type: "WithStatement";
|
|
325
|
+
object: Expression;
|
|
326
|
+
body: Statement;
|
|
327
|
+
}
|
|
328
|
+
interface AssignmentPattern extends BaseNode {
|
|
329
|
+
type: "AssignmentPattern";
|
|
330
|
+
left: Identifier | ObjectPattern | ArrayPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
331
|
+
right: Expression;
|
|
332
|
+
decorators: Decorator[] | null;
|
|
333
|
+
optional: boolean | null;
|
|
334
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
335
|
+
}
|
|
336
|
+
interface ArrayPattern extends BaseNode {
|
|
337
|
+
type: "ArrayPattern";
|
|
338
|
+
elements: (null | PatternLike)[];
|
|
339
|
+
decorators: Decorator[] | null;
|
|
340
|
+
optional: boolean | null;
|
|
341
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
342
|
+
}
|
|
343
|
+
interface ArrowFunctionExpression extends BaseNode {
|
|
344
|
+
type: "ArrowFunctionExpression";
|
|
345
|
+
params: FunctionParameter[];
|
|
346
|
+
body: BlockStatement | Expression;
|
|
347
|
+
async: boolean;
|
|
348
|
+
expression: boolean;
|
|
349
|
+
generator: boolean;
|
|
350
|
+
predicate: DeclaredPredicate | InferredPredicate | null;
|
|
351
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
352
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
353
|
+
}
|
|
354
|
+
interface ClassBody extends BaseNode {
|
|
355
|
+
type: "ClassBody";
|
|
356
|
+
body: (ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock)[];
|
|
357
|
+
}
|
|
358
|
+
interface ClassExpression extends BaseNode {
|
|
359
|
+
type: "ClassExpression";
|
|
360
|
+
id: Identifier | null;
|
|
361
|
+
superClass: Expression | null;
|
|
362
|
+
body: ClassBody;
|
|
363
|
+
decorators: Decorator[] | null;
|
|
364
|
+
implements: (TSExpressionWithTypeArguments | ClassImplements)[] | null;
|
|
365
|
+
mixins: InterfaceExtends | null;
|
|
366
|
+
superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
|
367
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
368
|
+
}
|
|
369
|
+
interface ClassDeclaration extends BaseNode {
|
|
370
|
+
type: "ClassDeclaration";
|
|
371
|
+
id: Identifier | null;
|
|
372
|
+
superClass: Expression | null;
|
|
373
|
+
body: ClassBody;
|
|
374
|
+
decorators: Decorator[] | null;
|
|
375
|
+
abstract: boolean | null;
|
|
376
|
+
declare: boolean | null;
|
|
377
|
+
implements: (TSExpressionWithTypeArguments | ClassImplements)[] | null;
|
|
378
|
+
mixins: InterfaceExtends | null;
|
|
379
|
+
superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
|
380
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
381
|
+
}
|
|
382
|
+
interface ExportAllDeclaration extends BaseNode {
|
|
383
|
+
type: "ExportAllDeclaration";
|
|
384
|
+
source: StringLiteral;
|
|
385
|
+
attributes: ImportAttribute[] | null;
|
|
386
|
+
assertions: ImportAttribute[] | null;
|
|
387
|
+
exportKind: "type" | "value" | null;
|
|
388
|
+
}
|
|
389
|
+
interface ExportDefaultDeclaration extends BaseNode {
|
|
390
|
+
type: "ExportDefaultDeclaration";
|
|
391
|
+
declaration: TSDeclareFunction | FunctionDeclaration | ClassDeclaration | Expression;
|
|
392
|
+
exportKind: "value" | null;
|
|
393
|
+
}
|
|
394
|
+
interface ExportNamedDeclaration extends BaseNode {
|
|
395
|
+
type: "ExportNamedDeclaration";
|
|
396
|
+
declaration: Declaration | null;
|
|
397
|
+
specifiers: (ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier)[];
|
|
398
|
+
source: StringLiteral | null;
|
|
399
|
+
attributes: ImportAttribute[] | null;
|
|
400
|
+
assertions: ImportAttribute[] | null;
|
|
401
|
+
exportKind: "type" | "value" | null;
|
|
402
|
+
}
|
|
403
|
+
interface ExportSpecifier extends BaseNode {
|
|
404
|
+
type: "ExportSpecifier";
|
|
405
|
+
local: Identifier;
|
|
406
|
+
exported: Identifier | StringLiteral;
|
|
407
|
+
exportKind: "type" | "value" | null;
|
|
408
|
+
}
|
|
409
|
+
interface ForOfStatement extends BaseNode {
|
|
410
|
+
type: "ForOfStatement";
|
|
411
|
+
left: VariableDeclaration | LVal;
|
|
412
|
+
right: Expression;
|
|
413
|
+
body: Statement;
|
|
414
|
+
await: boolean;
|
|
415
|
+
}
|
|
416
|
+
interface ImportDeclaration extends BaseNode {
|
|
417
|
+
type: "ImportDeclaration";
|
|
418
|
+
specifiers: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[];
|
|
419
|
+
source: StringLiteral;
|
|
420
|
+
attributes: ImportAttribute[] | null;
|
|
421
|
+
assertions: ImportAttribute[] | null;
|
|
422
|
+
importKind: "type" | "typeof" | "value" | null;
|
|
423
|
+
module: boolean | null;
|
|
424
|
+
phase: "source" | "defer" | null;
|
|
425
|
+
}
|
|
426
|
+
interface ImportDefaultSpecifier extends BaseNode {
|
|
427
|
+
type: "ImportDefaultSpecifier";
|
|
428
|
+
local: Identifier;
|
|
429
|
+
}
|
|
430
|
+
interface ImportNamespaceSpecifier extends BaseNode {
|
|
431
|
+
type: "ImportNamespaceSpecifier";
|
|
432
|
+
local: Identifier;
|
|
433
|
+
}
|
|
434
|
+
interface ImportSpecifier extends BaseNode {
|
|
435
|
+
type: "ImportSpecifier";
|
|
436
|
+
local: Identifier;
|
|
437
|
+
imported: Identifier | StringLiteral;
|
|
438
|
+
importKind: "type" | "typeof" | "value" | null;
|
|
439
|
+
}
|
|
440
|
+
interface ImportExpression extends BaseNode {
|
|
441
|
+
type: "ImportExpression";
|
|
442
|
+
source: Expression;
|
|
443
|
+
options: Expression | null;
|
|
444
|
+
phase: "source" | "defer" | null;
|
|
445
|
+
}
|
|
446
|
+
interface MetaProperty extends BaseNode {
|
|
447
|
+
type: "MetaProperty";
|
|
448
|
+
meta: Identifier;
|
|
449
|
+
property: Identifier;
|
|
450
|
+
}
|
|
451
|
+
interface ClassMethod extends BaseNode {
|
|
452
|
+
type: "ClassMethod";
|
|
453
|
+
kind: "get" | "set" | "method" | "constructor";
|
|
454
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
|
|
455
|
+
params: (FunctionParameter | TSParameterProperty)[];
|
|
456
|
+
body: BlockStatement;
|
|
457
|
+
computed: boolean;
|
|
458
|
+
static: boolean;
|
|
459
|
+
generator: boolean;
|
|
460
|
+
async: boolean;
|
|
461
|
+
abstract: boolean | null;
|
|
462
|
+
access: "public" | "private" | "protected" | null;
|
|
463
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
464
|
+
decorators: Decorator[] | null;
|
|
465
|
+
optional: boolean | null;
|
|
466
|
+
override: boolean;
|
|
467
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
468
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
469
|
+
}
|
|
470
|
+
interface ObjectPattern extends BaseNode {
|
|
471
|
+
type: "ObjectPattern";
|
|
472
|
+
properties: (RestElement | ObjectProperty)[];
|
|
473
|
+
decorators: Decorator[] | null;
|
|
474
|
+
optional: boolean | null;
|
|
475
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
476
|
+
}
|
|
477
|
+
interface SpreadElement extends BaseNode {
|
|
478
|
+
type: "SpreadElement";
|
|
479
|
+
argument: Expression;
|
|
480
|
+
}
|
|
481
|
+
interface Super extends BaseNode {
|
|
482
|
+
type: "Super";
|
|
483
|
+
}
|
|
484
|
+
interface TaggedTemplateExpression extends BaseNode {
|
|
485
|
+
type: "TaggedTemplateExpression";
|
|
486
|
+
tag: Expression;
|
|
487
|
+
quasi: TemplateLiteral;
|
|
488
|
+
typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
|
489
|
+
}
|
|
490
|
+
interface TemplateElement extends BaseNode {
|
|
491
|
+
type: "TemplateElement";
|
|
492
|
+
value: {
|
|
493
|
+
raw: string;
|
|
494
|
+
cooked?: string;
|
|
495
|
+
};
|
|
496
|
+
tail: boolean;
|
|
497
|
+
}
|
|
498
|
+
interface TemplateLiteral extends BaseNode {
|
|
499
|
+
type: "TemplateLiteral";
|
|
500
|
+
quasis: TemplateElement[];
|
|
501
|
+
expressions: (Expression | TSType)[];
|
|
502
|
+
}
|
|
503
|
+
interface YieldExpression extends BaseNode {
|
|
504
|
+
type: "YieldExpression";
|
|
505
|
+
argument: Expression | null;
|
|
506
|
+
delegate: boolean;
|
|
507
|
+
}
|
|
508
|
+
interface AwaitExpression extends BaseNode {
|
|
509
|
+
type: "AwaitExpression";
|
|
510
|
+
argument: Expression;
|
|
511
|
+
}
|
|
512
|
+
interface Import extends BaseNode {
|
|
513
|
+
type: "Import";
|
|
514
|
+
}
|
|
515
|
+
interface BigIntLiteral extends BaseNode {
|
|
516
|
+
type: "BigIntLiteral";
|
|
517
|
+
value: string;
|
|
518
|
+
}
|
|
519
|
+
interface ExportNamespaceSpecifier extends BaseNode {
|
|
520
|
+
type: "ExportNamespaceSpecifier";
|
|
521
|
+
exported: Identifier;
|
|
522
|
+
}
|
|
523
|
+
interface OptionalMemberExpression extends BaseNode {
|
|
524
|
+
type: "OptionalMemberExpression";
|
|
525
|
+
object: Expression;
|
|
526
|
+
property: Expression | Identifier;
|
|
527
|
+
computed: boolean;
|
|
528
|
+
optional: boolean;
|
|
529
|
+
}
|
|
530
|
+
interface OptionalCallExpression extends BaseNode {
|
|
531
|
+
type: "OptionalCallExpression";
|
|
532
|
+
callee: Expression;
|
|
533
|
+
arguments: (Expression | SpreadElement | ArgumentPlaceholder)[];
|
|
534
|
+
optional: boolean;
|
|
535
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
536
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
537
|
+
}
|
|
538
|
+
interface ClassProperty extends BaseNode {
|
|
539
|
+
type: "ClassProperty";
|
|
540
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
|
|
541
|
+
value: Expression | null;
|
|
542
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
543
|
+
decorators: Decorator[] | null;
|
|
544
|
+
computed: boolean;
|
|
545
|
+
static: boolean;
|
|
546
|
+
abstract: boolean | null;
|
|
547
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
548
|
+
declare: boolean | null;
|
|
549
|
+
definite: boolean | null;
|
|
550
|
+
optional: boolean | null;
|
|
551
|
+
override: boolean;
|
|
552
|
+
readonly: boolean | null;
|
|
553
|
+
variance: Variance | null;
|
|
554
|
+
}
|
|
555
|
+
interface ClassAccessorProperty extends BaseNode {
|
|
556
|
+
type: "ClassAccessorProperty";
|
|
557
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression | PrivateName;
|
|
558
|
+
value: Expression | null;
|
|
559
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
560
|
+
decorators: Decorator[] | null;
|
|
561
|
+
computed: boolean;
|
|
562
|
+
static: boolean;
|
|
563
|
+
abstract: boolean | null;
|
|
564
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
565
|
+
declare: boolean | null;
|
|
566
|
+
definite: boolean | null;
|
|
567
|
+
optional: boolean | null;
|
|
568
|
+
override: boolean;
|
|
569
|
+
readonly: boolean | null;
|
|
570
|
+
variance: Variance | null;
|
|
571
|
+
}
|
|
572
|
+
interface ClassPrivateProperty extends BaseNode {
|
|
573
|
+
type: "ClassPrivateProperty";
|
|
574
|
+
key: PrivateName;
|
|
575
|
+
value: Expression | null;
|
|
576
|
+
decorators: Decorator[] | null;
|
|
577
|
+
static: boolean;
|
|
578
|
+
definite: boolean | null;
|
|
579
|
+
optional: boolean | null;
|
|
580
|
+
readonly: boolean | null;
|
|
581
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
582
|
+
variance: Variance | null;
|
|
583
|
+
}
|
|
584
|
+
interface ClassPrivateMethod extends BaseNode {
|
|
585
|
+
type: "ClassPrivateMethod";
|
|
586
|
+
kind: "get" | "set" | "method";
|
|
587
|
+
key: PrivateName;
|
|
588
|
+
params: (FunctionParameter | TSParameterProperty)[];
|
|
589
|
+
body: BlockStatement;
|
|
590
|
+
static: boolean;
|
|
591
|
+
abstract: boolean | null;
|
|
592
|
+
access: "public" | "private" | "protected" | null;
|
|
593
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
594
|
+
async: boolean;
|
|
595
|
+
computed: boolean;
|
|
596
|
+
decorators: Decorator[] | null;
|
|
597
|
+
generator: boolean;
|
|
598
|
+
optional: boolean | null;
|
|
599
|
+
override: boolean;
|
|
600
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
601
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
602
|
+
}
|
|
603
|
+
interface PrivateName extends BaseNode {
|
|
604
|
+
type: "PrivateName";
|
|
605
|
+
id: Identifier;
|
|
606
|
+
}
|
|
607
|
+
interface StaticBlock extends BaseNode {
|
|
608
|
+
type: "StaticBlock";
|
|
609
|
+
body: Statement[];
|
|
610
|
+
}
|
|
611
|
+
interface ImportAttribute extends BaseNode {
|
|
612
|
+
type: "ImportAttribute";
|
|
613
|
+
key: Identifier | StringLiteral;
|
|
614
|
+
value: StringLiteral;
|
|
615
|
+
}
|
|
616
|
+
interface AnyTypeAnnotation extends BaseNode {
|
|
617
|
+
type: "AnyTypeAnnotation";
|
|
618
|
+
}
|
|
619
|
+
interface ArrayTypeAnnotation extends BaseNode {
|
|
620
|
+
type: "ArrayTypeAnnotation";
|
|
621
|
+
elementType: FlowType;
|
|
622
|
+
}
|
|
623
|
+
interface BooleanTypeAnnotation extends BaseNode {
|
|
624
|
+
type: "BooleanTypeAnnotation";
|
|
625
|
+
}
|
|
626
|
+
interface BooleanLiteralTypeAnnotation extends BaseNode {
|
|
627
|
+
type: "BooleanLiteralTypeAnnotation";
|
|
628
|
+
value: boolean;
|
|
629
|
+
}
|
|
630
|
+
interface NullLiteralTypeAnnotation extends BaseNode {
|
|
631
|
+
type: "NullLiteralTypeAnnotation";
|
|
632
|
+
}
|
|
633
|
+
interface ClassImplements extends BaseNode {
|
|
634
|
+
type: "ClassImplements";
|
|
635
|
+
id: Identifier;
|
|
636
|
+
typeParameters: TypeParameterInstantiation | null;
|
|
637
|
+
}
|
|
638
|
+
interface DeclareClass extends BaseNode {
|
|
639
|
+
type: "DeclareClass";
|
|
640
|
+
id: Identifier;
|
|
641
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
642
|
+
extends: InterfaceExtends[] | null;
|
|
643
|
+
body: ObjectTypeAnnotation;
|
|
644
|
+
implements: ClassImplements[] | null;
|
|
645
|
+
mixins: InterfaceExtends[] | null;
|
|
646
|
+
}
|
|
647
|
+
interface DeclareFunction extends BaseNode {
|
|
648
|
+
type: "DeclareFunction";
|
|
649
|
+
id: Identifier;
|
|
650
|
+
predicate: DeclaredPredicate | null;
|
|
651
|
+
}
|
|
652
|
+
interface DeclareInterface extends BaseNode {
|
|
653
|
+
type: "DeclareInterface";
|
|
654
|
+
id: Identifier;
|
|
655
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
656
|
+
extends: InterfaceExtends[] | null;
|
|
657
|
+
body: ObjectTypeAnnotation;
|
|
658
|
+
}
|
|
659
|
+
interface DeclareModule extends BaseNode {
|
|
660
|
+
type: "DeclareModule";
|
|
661
|
+
id: Identifier | StringLiteral;
|
|
662
|
+
body: BlockStatement;
|
|
663
|
+
kind: "CommonJS" | "ES" | null;
|
|
664
|
+
}
|
|
665
|
+
interface DeclareModuleExports extends BaseNode {
|
|
666
|
+
type: "DeclareModuleExports";
|
|
667
|
+
typeAnnotation: TypeAnnotation;
|
|
668
|
+
}
|
|
669
|
+
interface DeclareTypeAlias extends BaseNode {
|
|
670
|
+
type: "DeclareTypeAlias";
|
|
671
|
+
id: Identifier;
|
|
672
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
673
|
+
right: FlowType;
|
|
674
|
+
}
|
|
675
|
+
interface DeclareOpaqueType extends BaseNode {
|
|
676
|
+
type: "DeclareOpaqueType";
|
|
677
|
+
id: Identifier;
|
|
678
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
679
|
+
supertype: FlowType | null;
|
|
680
|
+
impltype: FlowType | null;
|
|
681
|
+
}
|
|
682
|
+
interface DeclareVariable extends BaseNode {
|
|
683
|
+
type: "DeclareVariable";
|
|
684
|
+
id: Identifier;
|
|
685
|
+
}
|
|
686
|
+
interface DeclareExportDeclaration extends BaseNode {
|
|
687
|
+
type: "DeclareExportDeclaration";
|
|
688
|
+
declaration: Flow | null;
|
|
689
|
+
specifiers: (ExportSpecifier | ExportNamespaceSpecifier)[] | null;
|
|
690
|
+
source: StringLiteral | null;
|
|
691
|
+
attributes: ImportAttribute[] | null;
|
|
692
|
+
assertions: ImportAttribute[] | null;
|
|
693
|
+
default: boolean | null;
|
|
694
|
+
}
|
|
695
|
+
interface DeclareExportAllDeclaration extends BaseNode {
|
|
696
|
+
type: "DeclareExportAllDeclaration";
|
|
697
|
+
source: StringLiteral;
|
|
698
|
+
attributes: ImportAttribute[] | null;
|
|
699
|
+
assertions: ImportAttribute[] | null;
|
|
700
|
+
exportKind: "type" | "value" | null;
|
|
701
|
+
}
|
|
702
|
+
interface DeclaredPredicate extends BaseNode {
|
|
703
|
+
type: "DeclaredPredicate";
|
|
704
|
+
value: Flow;
|
|
705
|
+
}
|
|
706
|
+
interface ExistsTypeAnnotation extends BaseNode {
|
|
707
|
+
type: "ExistsTypeAnnotation";
|
|
708
|
+
}
|
|
709
|
+
interface FunctionTypeAnnotation extends BaseNode {
|
|
710
|
+
type: "FunctionTypeAnnotation";
|
|
711
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
712
|
+
params: FunctionTypeParam[];
|
|
713
|
+
rest: FunctionTypeParam | null;
|
|
714
|
+
returnType: FlowType;
|
|
715
|
+
this: FunctionTypeParam | null;
|
|
716
|
+
}
|
|
717
|
+
interface FunctionTypeParam extends BaseNode {
|
|
718
|
+
type: "FunctionTypeParam";
|
|
719
|
+
name: Identifier | null;
|
|
720
|
+
typeAnnotation: FlowType;
|
|
721
|
+
optional: boolean | null;
|
|
722
|
+
}
|
|
723
|
+
interface GenericTypeAnnotation extends BaseNode {
|
|
724
|
+
type: "GenericTypeAnnotation";
|
|
725
|
+
id: Identifier | QualifiedTypeIdentifier;
|
|
726
|
+
typeParameters: TypeParameterInstantiation | null;
|
|
727
|
+
}
|
|
728
|
+
interface InferredPredicate extends BaseNode {
|
|
729
|
+
type: "InferredPredicate";
|
|
730
|
+
}
|
|
731
|
+
interface InterfaceExtends extends BaseNode {
|
|
732
|
+
type: "InterfaceExtends";
|
|
733
|
+
id: Identifier | QualifiedTypeIdentifier;
|
|
734
|
+
typeParameters: TypeParameterInstantiation | null;
|
|
735
|
+
}
|
|
736
|
+
interface InterfaceDeclaration extends BaseNode {
|
|
737
|
+
type: "InterfaceDeclaration";
|
|
738
|
+
id: Identifier;
|
|
739
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
740
|
+
extends: InterfaceExtends[] | null;
|
|
741
|
+
body: ObjectTypeAnnotation;
|
|
742
|
+
}
|
|
743
|
+
interface InterfaceTypeAnnotation extends BaseNode {
|
|
744
|
+
type: "InterfaceTypeAnnotation";
|
|
745
|
+
extends: InterfaceExtends[] | null;
|
|
746
|
+
body: ObjectTypeAnnotation;
|
|
747
|
+
}
|
|
748
|
+
interface IntersectionTypeAnnotation extends BaseNode {
|
|
749
|
+
type: "IntersectionTypeAnnotation";
|
|
750
|
+
types: FlowType[];
|
|
751
|
+
}
|
|
752
|
+
interface MixedTypeAnnotation extends BaseNode {
|
|
753
|
+
type: "MixedTypeAnnotation";
|
|
754
|
+
}
|
|
755
|
+
interface EmptyTypeAnnotation extends BaseNode {
|
|
756
|
+
type: "EmptyTypeAnnotation";
|
|
757
|
+
}
|
|
758
|
+
interface NullableTypeAnnotation extends BaseNode {
|
|
759
|
+
type: "NullableTypeAnnotation";
|
|
760
|
+
typeAnnotation: FlowType;
|
|
761
|
+
}
|
|
762
|
+
interface NumberLiteralTypeAnnotation extends BaseNode {
|
|
763
|
+
type: "NumberLiteralTypeAnnotation";
|
|
764
|
+
value: number;
|
|
765
|
+
}
|
|
766
|
+
interface NumberTypeAnnotation extends BaseNode {
|
|
767
|
+
type: "NumberTypeAnnotation";
|
|
768
|
+
}
|
|
769
|
+
interface ObjectTypeAnnotation extends BaseNode {
|
|
770
|
+
type: "ObjectTypeAnnotation";
|
|
771
|
+
properties: (ObjectTypeProperty | ObjectTypeSpreadProperty)[];
|
|
772
|
+
indexers: ObjectTypeIndexer[];
|
|
773
|
+
callProperties: ObjectTypeCallProperty[];
|
|
774
|
+
internalSlots: ObjectTypeInternalSlot[];
|
|
775
|
+
exact: boolean;
|
|
776
|
+
inexact: boolean | null;
|
|
777
|
+
}
|
|
778
|
+
interface ObjectTypeInternalSlot extends BaseNode {
|
|
779
|
+
type: "ObjectTypeInternalSlot";
|
|
780
|
+
id: Identifier;
|
|
781
|
+
value: FlowType;
|
|
782
|
+
optional: boolean;
|
|
783
|
+
static: boolean;
|
|
784
|
+
method: boolean;
|
|
785
|
+
}
|
|
786
|
+
interface ObjectTypeCallProperty extends BaseNode {
|
|
787
|
+
type: "ObjectTypeCallProperty";
|
|
788
|
+
value: FlowType;
|
|
789
|
+
static: boolean;
|
|
790
|
+
}
|
|
791
|
+
interface ObjectTypeIndexer extends BaseNode {
|
|
792
|
+
type: "ObjectTypeIndexer";
|
|
793
|
+
id: Identifier | null;
|
|
794
|
+
key: FlowType;
|
|
795
|
+
value: FlowType;
|
|
796
|
+
variance: Variance | null;
|
|
797
|
+
static: boolean;
|
|
798
|
+
}
|
|
799
|
+
interface ObjectTypeProperty extends BaseNode {
|
|
800
|
+
type: "ObjectTypeProperty";
|
|
801
|
+
key: Identifier | StringLiteral;
|
|
802
|
+
value: FlowType;
|
|
803
|
+
variance: Variance | null;
|
|
804
|
+
kind: "init" | "get" | "set";
|
|
805
|
+
method: boolean;
|
|
806
|
+
optional: boolean;
|
|
807
|
+
proto: boolean;
|
|
808
|
+
static: boolean;
|
|
809
|
+
}
|
|
810
|
+
interface ObjectTypeSpreadProperty extends BaseNode {
|
|
811
|
+
type: "ObjectTypeSpreadProperty";
|
|
812
|
+
argument: FlowType;
|
|
813
|
+
}
|
|
814
|
+
interface OpaqueType extends BaseNode {
|
|
815
|
+
type: "OpaqueType";
|
|
816
|
+
id: Identifier;
|
|
817
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
818
|
+
supertype: FlowType | null;
|
|
819
|
+
impltype: FlowType;
|
|
820
|
+
}
|
|
821
|
+
interface QualifiedTypeIdentifier extends BaseNode {
|
|
822
|
+
type: "QualifiedTypeIdentifier";
|
|
823
|
+
id: Identifier;
|
|
824
|
+
qualification: Identifier | QualifiedTypeIdentifier;
|
|
825
|
+
}
|
|
826
|
+
interface StringLiteralTypeAnnotation extends BaseNode {
|
|
827
|
+
type: "StringLiteralTypeAnnotation";
|
|
828
|
+
value: string;
|
|
829
|
+
}
|
|
830
|
+
interface StringTypeAnnotation extends BaseNode {
|
|
831
|
+
type: "StringTypeAnnotation";
|
|
832
|
+
}
|
|
833
|
+
interface SymbolTypeAnnotation extends BaseNode {
|
|
834
|
+
type: "SymbolTypeAnnotation";
|
|
835
|
+
}
|
|
836
|
+
interface ThisTypeAnnotation extends BaseNode {
|
|
837
|
+
type: "ThisTypeAnnotation";
|
|
838
|
+
}
|
|
839
|
+
interface TupleTypeAnnotation extends BaseNode {
|
|
840
|
+
type: "TupleTypeAnnotation";
|
|
841
|
+
types: FlowType[];
|
|
842
|
+
}
|
|
843
|
+
interface TypeofTypeAnnotation extends BaseNode {
|
|
844
|
+
type: "TypeofTypeAnnotation";
|
|
845
|
+
argument: FlowType;
|
|
846
|
+
}
|
|
847
|
+
interface TypeAlias extends BaseNode {
|
|
848
|
+
type: "TypeAlias";
|
|
849
|
+
id: Identifier;
|
|
850
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
851
|
+
right: FlowType;
|
|
852
|
+
}
|
|
853
|
+
interface TypeAnnotation extends BaseNode {
|
|
854
|
+
type: "TypeAnnotation";
|
|
855
|
+
typeAnnotation: FlowType;
|
|
856
|
+
}
|
|
857
|
+
interface TypeCastExpression extends BaseNode {
|
|
858
|
+
type: "TypeCastExpression";
|
|
859
|
+
expression: Expression;
|
|
860
|
+
typeAnnotation: TypeAnnotation;
|
|
861
|
+
}
|
|
862
|
+
interface TypeParameter extends BaseNode {
|
|
863
|
+
type: "TypeParameter";
|
|
864
|
+
bound: TypeAnnotation | null;
|
|
865
|
+
default: FlowType | null;
|
|
866
|
+
variance: Variance | null;
|
|
867
|
+
name: string;
|
|
868
|
+
}
|
|
869
|
+
interface TypeParameterDeclaration extends BaseNode {
|
|
870
|
+
type: "TypeParameterDeclaration";
|
|
871
|
+
params: TypeParameter[];
|
|
872
|
+
}
|
|
873
|
+
interface TypeParameterInstantiation extends BaseNode {
|
|
874
|
+
type: "TypeParameterInstantiation";
|
|
875
|
+
params: FlowType[];
|
|
876
|
+
}
|
|
877
|
+
interface UnionTypeAnnotation extends BaseNode {
|
|
878
|
+
type: "UnionTypeAnnotation";
|
|
879
|
+
types: FlowType[];
|
|
880
|
+
}
|
|
881
|
+
interface Variance extends BaseNode {
|
|
882
|
+
type: "Variance";
|
|
883
|
+
kind: "minus" | "plus";
|
|
884
|
+
}
|
|
885
|
+
interface VoidTypeAnnotation extends BaseNode {
|
|
886
|
+
type: "VoidTypeAnnotation";
|
|
887
|
+
}
|
|
888
|
+
interface EnumDeclaration extends BaseNode {
|
|
889
|
+
type: "EnumDeclaration";
|
|
890
|
+
id: Identifier;
|
|
891
|
+
body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
|
|
892
|
+
}
|
|
893
|
+
interface EnumBooleanBody extends BaseNode {
|
|
894
|
+
type: "EnumBooleanBody";
|
|
895
|
+
members: EnumBooleanMember[];
|
|
896
|
+
explicitType: boolean;
|
|
897
|
+
hasUnknownMembers: boolean;
|
|
898
|
+
}
|
|
899
|
+
interface EnumNumberBody extends BaseNode {
|
|
900
|
+
type: "EnumNumberBody";
|
|
901
|
+
members: EnumNumberMember[];
|
|
902
|
+
explicitType: boolean;
|
|
903
|
+
hasUnknownMembers: boolean;
|
|
904
|
+
}
|
|
905
|
+
interface EnumStringBody extends BaseNode {
|
|
906
|
+
type: "EnumStringBody";
|
|
907
|
+
members: (EnumStringMember | EnumDefaultedMember)[];
|
|
908
|
+
explicitType: boolean;
|
|
909
|
+
hasUnknownMembers: boolean;
|
|
910
|
+
}
|
|
911
|
+
interface EnumSymbolBody extends BaseNode {
|
|
912
|
+
type: "EnumSymbolBody";
|
|
913
|
+
members: EnumDefaultedMember[];
|
|
914
|
+
hasUnknownMembers: boolean;
|
|
915
|
+
}
|
|
916
|
+
interface EnumBooleanMember extends BaseNode {
|
|
917
|
+
type: "EnumBooleanMember";
|
|
918
|
+
id: Identifier;
|
|
919
|
+
init: BooleanLiteral;
|
|
920
|
+
}
|
|
921
|
+
interface EnumNumberMember extends BaseNode {
|
|
922
|
+
type: "EnumNumberMember";
|
|
923
|
+
id: Identifier;
|
|
924
|
+
init: NumericLiteral;
|
|
925
|
+
}
|
|
926
|
+
interface EnumStringMember extends BaseNode {
|
|
927
|
+
type: "EnumStringMember";
|
|
928
|
+
id: Identifier;
|
|
929
|
+
init: StringLiteral;
|
|
930
|
+
}
|
|
931
|
+
interface EnumDefaultedMember extends BaseNode {
|
|
932
|
+
type: "EnumDefaultedMember";
|
|
933
|
+
id: Identifier;
|
|
934
|
+
}
|
|
935
|
+
interface IndexedAccessType extends BaseNode {
|
|
936
|
+
type: "IndexedAccessType";
|
|
937
|
+
objectType: FlowType;
|
|
938
|
+
indexType: FlowType;
|
|
939
|
+
}
|
|
940
|
+
interface OptionalIndexedAccessType extends BaseNode {
|
|
941
|
+
type: "OptionalIndexedAccessType";
|
|
942
|
+
objectType: FlowType;
|
|
943
|
+
indexType: FlowType;
|
|
944
|
+
optional: boolean;
|
|
945
|
+
}
|
|
946
|
+
interface JSXAttribute extends BaseNode {
|
|
947
|
+
type: "JSXAttribute";
|
|
948
|
+
name: JSXIdentifier | JSXNamespacedName;
|
|
949
|
+
value: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null;
|
|
950
|
+
}
|
|
951
|
+
interface JSXClosingElement extends BaseNode {
|
|
952
|
+
type: "JSXClosingElement";
|
|
953
|
+
name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
|
|
954
|
+
}
|
|
955
|
+
interface JSXElement extends BaseNode {
|
|
956
|
+
type: "JSXElement";
|
|
957
|
+
openingElement: JSXOpeningElement;
|
|
958
|
+
closingElement: JSXClosingElement | null;
|
|
959
|
+
children: (JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment)[];
|
|
960
|
+
selfClosing: boolean | null;
|
|
961
|
+
}
|
|
962
|
+
interface JSXEmptyExpression extends BaseNode {
|
|
963
|
+
type: "JSXEmptyExpression";
|
|
964
|
+
}
|
|
965
|
+
interface JSXExpressionContainer extends BaseNode {
|
|
966
|
+
type: "JSXExpressionContainer";
|
|
967
|
+
expression: Expression | JSXEmptyExpression;
|
|
968
|
+
}
|
|
969
|
+
interface JSXSpreadChild extends BaseNode {
|
|
970
|
+
type: "JSXSpreadChild";
|
|
971
|
+
expression: Expression;
|
|
972
|
+
}
|
|
973
|
+
interface JSXIdentifier extends BaseNode {
|
|
974
|
+
type: "JSXIdentifier";
|
|
975
|
+
name: string;
|
|
976
|
+
}
|
|
977
|
+
interface JSXMemberExpression extends BaseNode {
|
|
978
|
+
type: "JSXMemberExpression";
|
|
979
|
+
object: JSXMemberExpression | JSXIdentifier;
|
|
980
|
+
property: JSXIdentifier;
|
|
981
|
+
}
|
|
982
|
+
interface JSXNamespacedName extends BaseNode {
|
|
983
|
+
type: "JSXNamespacedName";
|
|
984
|
+
namespace: JSXIdentifier;
|
|
985
|
+
name: JSXIdentifier;
|
|
986
|
+
}
|
|
987
|
+
interface JSXOpeningElement extends BaseNode {
|
|
988
|
+
type: "JSXOpeningElement";
|
|
989
|
+
name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
|
|
990
|
+
attributes: (JSXAttribute | JSXSpreadAttribute)[];
|
|
991
|
+
selfClosing: boolean;
|
|
992
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
993
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
994
|
+
}
|
|
995
|
+
interface JSXSpreadAttribute extends BaseNode {
|
|
996
|
+
type: "JSXSpreadAttribute";
|
|
997
|
+
argument: Expression;
|
|
998
|
+
}
|
|
999
|
+
interface JSXText extends BaseNode {
|
|
1000
|
+
type: "JSXText";
|
|
1001
|
+
value: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface JSXFragment extends BaseNode {
|
|
1004
|
+
type: "JSXFragment";
|
|
1005
|
+
openingFragment: JSXOpeningFragment;
|
|
1006
|
+
closingFragment: JSXClosingFragment;
|
|
1007
|
+
children: (JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment)[];
|
|
1008
|
+
}
|
|
1009
|
+
interface JSXOpeningFragment extends BaseNode {
|
|
1010
|
+
type: "JSXOpeningFragment";
|
|
1011
|
+
}
|
|
1012
|
+
interface JSXClosingFragment extends BaseNode {
|
|
1013
|
+
type: "JSXClosingFragment";
|
|
1014
|
+
}
|
|
1015
|
+
interface Noop extends BaseNode {
|
|
1016
|
+
type: "Noop";
|
|
1017
|
+
}
|
|
1018
|
+
interface Placeholder extends BaseNode {
|
|
1019
|
+
type: "Placeholder";
|
|
1020
|
+
expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern";
|
|
1021
|
+
name: Identifier;
|
|
1022
|
+
decorators: Decorator[] | null;
|
|
1023
|
+
optional: boolean | null;
|
|
1024
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
1025
|
+
}
|
|
1026
|
+
interface V8IntrinsicIdentifier extends BaseNode {
|
|
1027
|
+
type: "V8IntrinsicIdentifier";
|
|
1028
|
+
name: string;
|
|
1029
|
+
}
|
|
1030
|
+
interface ArgumentPlaceholder extends BaseNode {
|
|
1031
|
+
type: "ArgumentPlaceholder";
|
|
1032
|
+
}
|
|
1033
|
+
interface BindExpression extends BaseNode {
|
|
1034
|
+
type: "BindExpression";
|
|
1035
|
+
object: Expression;
|
|
1036
|
+
callee: Expression;
|
|
1037
|
+
}
|
|
1038
|
+
interface Decorator extends BaseNode {
|
|
1039
|
+
type: "Decorator";
|
|
1040
|
+
expression: Expression;
|
|
1041
|
+
}
|
|
1042
|
+
interface DoExpression extends BaseNode {
|
|
1043
|
+
type: "DoExpression";
|
|
1044
|
+
body: BlockStatement;
|
|
1045
|
+
async: boolean;
|
|
1046
|
+
}
|
|
1047
|
+
interface ExportDefaultSpecifier extends BaseNode {
|
|
1048
|
+
type: "ExportDefaultSpecifier";
|
|
1049
|
+
exported: Identifier;
|
|
1050
|
+
}
|
|
1051
|
+
interface RecordExpression extends BaseNode {
|
|
1052
|
+
type: "RecordExpression";
|
|
1053
|
+
properties: (ObjectProperty | SpreadElement)[];
|
|
1054
|
+
}
|
|
1055
|
+
interface TupleExpression extends BaseNode {
|
|
1056
|
+
type: "TupleExpression";
|
|
1057
|
+
elements: (Expression | SpreadElement)[];
|
|
1058
|
+
}
|
|
1059
|
+
interface DecimalLiteral extends BaseNode {
|
|
1060
|
+
type: "DecimalLiteral";
|
|
1061
|
+
value: string;
|
|
1062
|
+
}
|
|
1063
|
+
interface ModuleExpression extends BaseNode {
|
|
1064
|
+
type: "ModuleExpression";
|
|
1065
|
+
body: Program;
|
|
1066
|
+
}
|
|
1067
|
+
interface TopicReference extends BaseNode {
|
|
1068
|
+
type: "TopicReference";
|
|
1069
|
+
}
|
|
1070
|
+
interface PipelineTopicExpression extends BaseNode {
|
|
1071
|
+
type: "PipelineTopicExpression";
|
|
1072
|
+
expression: Expression;
|
|
1073
|
+
}
|
|
1074
|
+
interface PipelineBareFunction extends BaseNode {
|
|
1075
|
+
type: "PipelineBareFunction";
|
|
1076
|
+
callee: Expression;
|
|
1077
|
+
}
|
|
1078
|
+
interface PipelinePrimaryTopicReference extends BaseNode {
|
|
1079
|
+
type: "PipelinePrimaryTopicReference";
|
|
1080
|
+
}
|
|
1081
|
+
interface VoidPattern extends BaseNode {
|
|
1082
|
+
type: "VoidPattern";
|
|
1083
|
+
}
|
|
1084
|
+
interface TSParameterProperty extends BaseNode {
|
|
1085
|
+
type: "TSParameterProperty";
|
|
1086
|
+
parameter: Identifier | AssignmentPattern;
|
|
1087
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
1088
|
+
decorators: Decorator[] | null;
|
|
1089
|
+
override: boolean | null;
|
|
1090
|
+
readonly: boolean | null;
|
|
1091
|
+
}
|
|
1092
|
+
interface TSDeclareFunction extends BaseNode {
|
|
1093
|
+
type: "TSDeclareFunction";
|
|
1094
|
+
id: Identifier | null;
|
|
1095
|
+
typeParameters: TSTypeParameterDeclaration | Noop | null;
|
|
1096
|
+
params: FunctionParameter[];
|
|
1097
|
+
returnType: TSTypeAnnotation | Noop | null;
|
|
1098
|
+
async: boolean;
|
|
1099
|
+
declare: boolean | null;
|
|
1100
|
+
generator: boolean;
|
|
1101
|
+
}
|
|
1102
|
+
interface TSDeclareMethod extends BaseNode {
|
|
1103
|
+
type: "TSDeclareMethod";
|
|
1104
|
+
decorators: Decorator[] | null;
|
|
1105
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
|
|
1106
|
+
typeParameters: TSTypeParameterDeclaration | Noop | null;
|
|
1107
|
+
params: (FunctionParameter | TSParameterProperty)[];
|
|
1108
|
+
returnType: TSTypeAnnotation | Noop | null;
|
|
1109
|
+
abstract: boolean | null;
|
|
1110
|
+
access: "public" | "private" | "protected" | null;
|
|
1111
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
1112
|
+
async: boolean;
|
|
1113
|
+
computed: boolean;
|
|
1114
|
+
generator: boolean;
|
|
1115
|
+
kind: "get" | "set" | "method" | "constructor";
|
|
1116
|
+
optional: boolean | null;
|
|
1117
|
+
override: boolean;
|
|
1118
|
+
static: boolean;
|
|
1119
|
+
}
|
|
1120
|
+
interface TSQualifiedName extends BaseNode {
|
|
1121
|
+
type: "TSQualifiedName";
|
|
1122
|
+
left: TSEntityName;
|
|
1123
|
+
right: Identifier;
|
|
1124
|
+
}
|
|
1125
|
+
interface TSCallSignatureDeclaration extends BaseNode {
|
|
1126
|
+
type: "TSCallSignatureDeclaration";
|
|
1127
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1128
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1129
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1130
|
+
}
|
|
1131
|
+
interface TSConstructSignatureDeclaration extends BaseNode {
|
|
1132
|
+
type: "TSConstructSignatureDeclaration";
|
|
1133
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1134
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1135
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1136
|
+
}
|
|
1137
|
+
interface TSPropertySignature extends BaseNode {
|
|
1138
|
+
type: "TSPropertySignature";
|
|
1139
|
+
key: Expression;
|
|
1140
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1141
|
+
computed: boolean;
|
|
1142
|
+
kind: "get" | "set" | null;
|
|
1143
|
+
optional: boolean | null;
|
|
1144
|
+
readonly: boolean | null;
|
|
1145
|
+
}
|
|
1146
|
+
interface TSMethodSignature extends BaseNode {
|
|
1147
|
+
type: "TSMethodSignature";
|
|
1148
|
+
key: Expression;
|
|
1149
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1150
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1151
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1152
|
+
computed: boolean;
|
|
1153
|
+
kind: "method" | "get" | "set";
|
|
1154
|
+
optional: boolean | null;
|
|
1155
|
+
}
|
|
1156
|
+
interface TSIndexSignature extends BaseNode {
|
|
1157
|
+
type: "TSIndexSignature";
|
|
1158
|
+
parameters: Identifier[];
|
|
1159
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1160
|
+
readonly: boolean | null;
|
|
1161
|
+
static: boolean | null;
|
|
1162
|
+
}
|
|
1163
|
+
interface TSAnyKeyword extends BaseNode {
|
|
1164
|
+
type: "TSAnyKeyword";
|
|
1165
|
+
}
|
|
1166
|
+
interface TSBooleanKeyword extends BaseNode {
|
|
1167
|
+
type: "TSBooleanKeyword";
|
|
1168
|
+
}
|
|
1169
|
+
interface TSBigIntKeyword extends BaseNode {
|
|
1170
|
+
type: "TSBigIntKeyword";
|
|
1171
|
+
}
|
|
1172
|
+
interface TSIntrinsicKeyword extends BaseNode {
|
|
1173
|
+
type: "TSIntrinsicKeyword";
|
|
1174
|
+
}
|
|
1175
|
+
interface TSNeverKeyword extends BaseNode {
|
|
1176
|
+
type: "TSNeverKeyword";
|
|
1177
|
+
}
|
|
1178
|
+
interface TSNullKeyword extends BaseNode {
|
|
1179
|
+
type: "TSNullKeyword";
|
|
1180
|
+
}
|
|
1181
|
+
interface TSNumberKeyword extends BaseNode {
|
|
1182
|
+
type: "TSNumberKeyword";
|
|
1183
|
+
}
|
|
1184
|
+
interface TSObjectKeyword extends BaseNode {
|
|
1185
|
+
type: "TSObjectKeyword";
|
|
1186
|
+
}
|
|
1187
|
+
interface TSStringKeyword extends BaseNode {
|
|
1188
|
+
type: "TSStringKeyword";
|
|
1189
|
+
}
|
|
1190
|
+
interface TSSymbolKeyword extends BaseNode {
|
|
1191
|
+
type: "TSSymbolKeyword";
|
|
1192
|
+
}
|
|
1193
|
+
interface TSUndefinedKeyword extends BaseNode {
|
|
1194
|
+
type: "TSUndefinedKeyword";
|
|
1195
|
+
}
|
|
1196
|
+
interface TSUnknownKeyword extends BaseNode {
|
|
1197
|
+
type: "TSUnknownKeyword";
|
|
1198
|
+
}
|
|
1199
|
+
interface TSVoidKeyword extends BaseNode {
|
|
1200
|
+
type: "TSVoidKeyword";
|
|
1201
|
+
}
|
|
1202
|
+
interface TSThisType extends BaseNode {
|
|
1203
|
+
type: "TSThisType";
|
|
1204
|
+
}
|
|
1205
|
+
interface TSFunctionType extends BaseNode {
|
|
1206
|
+
type: "TSFunctionType";
|
|
1207
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1208
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1209
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1210
|
+
}
|
|
1211
|
+
interface TSConstructorType extends BaseNode {
|
|
1212
|
+
type: "TSConstructorType";
|
|
1213
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1214
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1215
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1216
|
+
abstract: boolean | null;
|
|
1217
|
+
}
|
|
1218
|
+
interface TSTypeReference extends BaseNode {
|
|
1219
|
+
type: "TSTypeReference";
|
|
1220
|
+
typeName: TSEntityName;
|
|
1221
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1222
|
+
}
|
|
1223
|
+
interface TSTypePredicate extends BaseNode {
|
|
1224
|
+
type: "TSTypePredicate";
|
|
1225
|
+
parameterName: Identifier | TSThisType;
|
|
1226
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1227
|
+
asserts: boolean | null;
|
|
1228
|
+
}
|
|
1229
|
+
interface TSTypeQuery extends BaseNode {
|
|
1230
|
+
type: "TSTypeQuery";
|
|
1231
|
+
exprName: TSEntityName | TSImportType;
|
|
1232
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1233
|
+
}
|
|
1234
|
+
interface TSTypeLiteral extends BaseNode {
|
|
1235
|
+
type: "TSTypeLiteral";
|
|
1236
|
+
members: TSTypeElement[];
|
|
1237
|
+
}
|
|
1238
|
+
interface TSArrayType extends BaseNode {
|
|
1239
|
+
type: "TSArrayType";
|
|
1240
|
+
elementType: TSType;
|
|
1241
|
+
}
|
|
1242
|
+
interface TSTupleType extends BaseNode {
|
|
1243
|
+
type: "TSTupleType";
|
|
1244
|
+
elementTypes: (TSType | TSNamedTupleMember)[];
|
|
1245
|
+
}
|
|
1246
|
+
interface TSOptionalType extends BaseNode {
|
|
1247
|
+
type: "TSOptionalType";
|
|
1248
|
+
typeAnnotation: TSType;
|
|
1249
|
+
}
|
|
1250
|
+
interface TSRestType extends BaseNode {
|
|
1251
|
+
type: "TSRestType";
|
|
1252
|
+
typeAnnotation: TSType;
|
|
1253
|
+
}
|
|
1254
|
+
interface TSNamedTupleMember extends BaseNode {
|
|
1255
|
+
type: "TSNamedTupleMember";
|
|
1256
|
+
label: Identifier;
|
|
1257
|
+
elementType: TSType;
|
|
1258
|
+
optional: boolean;
|
|
1259
|
+
}
|
|
1260
|
+
interface TSUnionType extends BaseNode {
|
|
1261
|
+
type: "TSUnionType";
|
|
1262
|
+
types: TSType[];
|
|
1263
|
+
}
|
|
1264
|
+
interface TSIntersectionType extends BaseNode {
|
|
1265
|
+
type: "TSIntersectionType";
|
|
1266
|
+
types: TSType[];
|
|
1267
|
+
}
|
|
1268
|
+
interface TSConditionalType extends BaseNode {
|
|
1269
|
+
type: "TSConditionalType";
|
|
1270
|
+
checkType: TSType;
|
|
1271
|
+
extendsType: TSType;
|
|
1272
|
+
trueType: TSType;
|
|
1273
|
+
falseType: TSType;
|
|
1274
|
+
}
|
|
1275
|
+
interface TSInferType extends BaseNode {
|
|
1276
|
+
type: "TSInferType";
|
|
1277
|
+
typeParameter: TSTypeParameter;
|
|
1278
|
+
}
|
|
1279
|
+
interface TSParenthesizedType extends BaseNode {
|
|
1280
|
+
type: "TSParenthesizedType";
|
|
1281
|
+
typeAnnotation: TSType;
|
|
1282
|
+
}
|
|
1283
|
+
interface TSTypeOperator extends BaseNode {
|
|
1284
|
+
type: "TSTypeOperator";
|
|
1285
|
+
typeAnnotation: TSType;
|
|
1286
|
+
operator: string;
|
|
1287
|
+
}
|
|
1288
|
+
interface TSIndexedAccessType extends BaseNode {
|
|
1289
|
+
type: "TSIndexedAccessType";
|
|
1290
|
+
objectType: TSType;
|
|
1291
|
+
indexType: TSType;
|
|
1292
|
+
}
|
|
1293
|
+
interface TSMappedType extends BaseNode {
|
|
1294
|
+
type: "TSMappedType";
|
|
1295
|
+
typeParameter: TSTypeParameter;
|
|
1296
|
+
typeAnnotation: TSType | null;
|
|
1297
|
+
nameType: TSType | null;
|
|
1298
|
+
optional: true | false | "+" | "-" | null;
|
|
1299
|
+
readonly: true | false | "+" | "-" | null;
|
|
1300
|
+
}
|
|
1301
|
+
interface TSTemplateLiteralType extends BaseNode {
|
|
1302
|
+
type: "TSTemplateLiteralType";
|
|
1303
|
+
quasis: TemplateElement[];
|
|
1304
|
+
types: TSType[];
|
|
1305
|
+
}
|
|
1306
|
+
interface TSLiteralType extends BaseNode {
|
|
1307
|
+
type: "TSLiteralType";
|
|
1308
|
+
literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | TemplateLiteral | UnaryExpression;
|
|
1309
|
+
}
|
|
1310
|
+
interface TSExpressionWithTypeArguments extends BaseNode {
|
|
1311
|
+
type: "TSExpressionWithTypeArguments";
|
|
1312
|
+
expression: TSEntityName;
|
|
1313
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1314
|
+
}
|
|
1315
|
+
interface TSInterfaceDeclaration extends BaseNode {
|
|
1316
|
+
type: "TSInterfaceDeclaration";
|
|
1317
|
+
id: Identifier;
|
|
1318
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1319
|
+
extends: TSExpressionWithTypeArguments[] | null;
|
|
1320
|
+
body: TSInterfaceBody;
|
|
1321
|
+
declare: boolean | null;
|
|
1322
|
+
}
|
|
1323
|
+
interface TSInterfaceBody extends BaseNode {
|
|
1324
|
+
type: "TSInterfaceBody";
|
|
1325
|
+
body: TSTypeElement[];
|
|
1326
|
+
}
|
|
1327
|
+
interface TSTypeAliasDeclaration extends BaseNode {
|
|
1328
|
+
type: "TSTypeAliasDeclaration";
|
|
1329
|
+
id: Identifier;
|
|
1330
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1331
|
+
typeAnnotation: TSType;
|
|
1332
|
+
declare: boolean | null;
|
|
1333
|
+
}
|
|
1334
|
+
interface TSInstantiationExpression extends BaseNode {
|
|
1335
|
+
type: "TSInstantiationExpression";
|
|
1336
|
+
expression: Expression;
|
|
1337
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1338
|
+
}
|
|
1339
|
+
interface TSAsExpression extends BaseNode {
|
|
1340
|
+
type: "TSAsExpression";
|
|
1341
|
+
expression: Expression;
|
|
1342
|
+
typeAnnotation: TSType;
|
|
1343
|
+
}
|
|
1344
|
+
interface TSSatisfiesExpression extends BaseNode {
|
|
1345
|
+
type: "TSSatisfiesExpression";
|
|
1346
|
+
expression: Expression;
|
|
1347
|
+
typeAnnotation: TSType;
|
|
1348
|
+
}
|
|
1349
|
+
interface TSTypeAssertion extends BaseNode {
|
|
1350
|
+
type: "TSTypeAssertion";
|
|
1351
|
+
typeAnnotation: TSType;
|
|
1352
|
+
expression: Expression;
|
|
1353
|
+
}
|
|
1354
|
+
interface TSEnumBody extends BaseNode {
|
|
1355
|
+
type: "TSEnumBody";
|
|
1356
|
+
members: TSEnumMember[];
|
|
1357
|
+
}
|
|
1358
|
+
interface TSEnumDeclaration extends BaseNode {
|
|
1359
|
+
type: "TSEnumDeclaration";
|
|
1360
|
+
id: Identifier;
|
|
1361
|
+
members: TSEnumMember[];
|
|
1362
|
+
body: TSEnumBody | null;
|
|
1363
|
+
const: boolean | null;
|
|
1364
|
+
declare: boolean | null;
|
|
1365
|
+
initializer: Expression | null;
|
|
1366
|
+
}
|
|
1367
|
+
interface TSEnumMember extends BaseNode {
|
|
1368
|
+
type: "TSEnumMember";
|
|
1369
|
+
id: Identifier | StringLiteral;
|
|
1370
|
+
initializer: Expression | null;
|
|
1371
|
+
}
|
|
1372
|
+
interface TSModuleDeclaration extends BaseNode {
|
|
1373
|
+
type: "TSModuleDeclaration";
|
|
1374
|
+
id: Identifier | StringLiteral;
|
|
1375
|
+
body: TSModuleBlock | TSModuleDeclaration;
|
|
1376
|
+
declare: boolean | null;
|
|
1377
|
+
global: boolean | null;
|
|
1378
|
+
kind: "global" | "module" | "namespace";
|
|
1379
|
+
}
|
|
1380
|
+
interface TSModuleBlock extends BaseNode {
|
|
1381
|
+
type: "TSModuleBlock";
|
|
1382
|
+
body: Statement[];
|
|
1383
|
+
}
|
|
1384
|
+
interface TSImportType extends BaseNode {
|
|
1385
|
+
type: "TSImportType";
|
|
1386
|
+
argument: StringLiteral;
|
|
1387
|
+
qualifier: TSEntityName | null;
|
|
1388
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1389
|
+
options: ObjectExpression | null;
|
|
1390
|
+
}
|
|
1391
|
+
interface TSImportEqualsDeclaration extends BaseNode {
|
|
1392
|
+
type: "TSImportEqualsDeclaration";
|
|
1393
|
+
id: Identifier;
|
|
1394
|
+
moduleReference: TSEntityName | TSExternalModuleReference;
|
|
1395
|
+
importKind: "type" | "value" | null;
|
|
1396
|
+
isExport: boolean;
|
|
1397
|
+
}
|
|
1398
|
+
interface TSExternalModuleReference extends BaseNode {
|
|
1399
|
+
type: "TSExternalModuleReference";
|
|
1400
|
+
expression: StringLiteral;
|
|
1401
|
+
}
|
|
1402
|
+
interface TSNonNullExpression extends BaseNode {
|
|
1403
|
+
type: "TSNonNullExpression";
|
|
1404
|
+
expression: Expression;
|
|
1405
|
+
}
|
|
1406
|
+
interface TSExportAssignment extends BaseNode {
|
|
1407
|
+
type: "TSExportAssignment";
|
|
1408
|
+
expression: Expression;
|
|
1409
|
+
}
|
|
1410
|
+
interface TSNamespaceExportDeclaration extends BaseNode {
|
|
1411
|
+
type: "TSNamespaceExportDeclaration";
|
|
1412
|
+
id: Identifier;
|
|
1413
|
+
}
|
|
1414
|
+
interface TSTypeAnnotation extends BaseNode {
|
|
1415
|
+
type: "TSTypeAnnotation";
|
|
1416
|
+
typeAnnotation: TSType;
|
|
1417
|
+
}
|
|
1418
|
+
interface TSTypeParameterInstantiation extends BaseNode {
|
|
1419
|
+
type: "TSTypeParameterInstantiation";
|
|
1420
|
+
params: TSType[];
|
|
1421
|
+
}
|
|
1422
|
+
interface TSTypeParameterDeclaration extends BaseNode {
|
|
1423
|
+
type: "TSTypeParameterDeclaration";
|
|
1424
|
+
params: TSTypeParameter[];
|
|
1425
|
+
}
|
|
1426
|
+
interface TSTypeParameter extends BaseNode {
|
|
1427
|
+
type: "TSTypeParameter";
|
|
1428
|
+
constraint: TSType | null;
|
|
1429
|
+
default: TSType | null;
|
|
1430
|
+
name: string;
|
|
1431
|
+
const: boolean | null;
|
|
1432
|
+
in: boolean | null;
|
|
1433
|
+
out: boolean | null;
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* @deprecated Use `NumericLiteral`
|
|
1437
|
+
*/
|
|
1438
|
+
type NumberLiteral = NumericLiteral;
|
|
1439
|
+
/**
|
|
1440
|
+
* @deprecated Use `RegExpLiteral`
|
|
1441
|
+
*/
|
|
1442
|
+
type RegexLiteral = RegExpLiteral;
|
|
1443
|
+
/**
|
|
1444
|
+
* @deprecated Use `RestElement`
|
|
1445
|
+
*/
|
|
1446
|
+
type RestProperty = RestElement;
|
|
1447
|
+
/**
|
|
1448
|
+
* @deprecated Use `SpreadElement`
|
|
1449
|
+
*/
|
|
1450
|
+
type SpreadProperty = SpreadElement;
|
|
1451
|
+
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;
|
|
1452
|
+
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;
|
|
1453
|
+
type Binary = BinaryExpression | LogicalExpression;
|
|
1454
|
+
type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
1455
|
+
type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
1456
|
+
type Block = BlockStatement | Program | TSModuleBlock;
|
|
1457
|
+
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;
|
|
1458
|
+
type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
|
|
1459
|
+
type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
|
|
1460
|
+
type Conditional = ConditionalExpression | IfStatement;
|
|
1461
|
+
type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
|
|
1462
|
+
type While = DoWhileStatement | WhileStatement;
|
|
1463
|
+
type ExpressionWrapper = ExpressionStatement | ParenthesizedExpression | TypeCastExpression;
|
|
1464
|
+
type For = ForInStatement | ForStatement | ForOfStatement;
|
|
1465
|
+
type ForXStatement = ForInStatement | ForOfStatement;
|
|
1466
|
+
type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
|
|
1467
|
+
type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
1468
|
+
type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral;
|
|
1469
|
+
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;
|
|
1470
|
+
type FunctionParameter = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern;
|
|
1471
|
+
type PatternLike = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
1472
|
+
type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
1473
|
+
type TSEntityName = Identifier | TSQualifiedName;
|
|
1474
|
+
type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral;
|
|
1475
|
+
type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral;
|
|
1476
|
+
type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
|
|
1477
|
+
type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
|
|
1478
|
+
type ObjectMember = ObjectMethod | ObjectProperty;
|
|
1479
|
+
type Property = ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty;
|
|
1480
|
+
type UnaryLike = UnaryExpression | SpreadElement;
|
|
1481
|
+
type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern;
|
|
1482
|
+
type Class = ClassExpression | ClassDeclaration;
|
|
1483
|
+
type ImportOrExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1484
|
+
type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
|
|
1485
|
+
type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier;
|
|
1486
|
+
type Accessor = ClassAccessorProperty;
|
|
1487
|
+
type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName;
|
|
1488
|
+
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;
|
|
1489
|
+
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;
|
|
1490
|
+
type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
|
|
1491
|
+
type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias;
|
|
1492
|
+
type FlowPredicate = DeclaredPredicate | InferredPredicate;
|
|
1493
|
+
type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
|
|
1494
|
+
type EnumMember = EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember;
|
|
1495
|
+
type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
|
|
1496
|
+
type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier;
|
|
1497
|
+
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;
|
|
1498
|
+
type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
|
|
1499
|
+
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;
|
|
1500
|
+
type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSTemplateLiteralType | TSLiteralType;
|
|
1501
|
+
type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1502
|
+
interface Aliases {
|
|
1503
|
+
Standardized: Standardized;
|
|
1504
|
+
Expression: Expression;
|
|
1505
|
+
Binary: Binary;
|
|
1506
|
+
Scopable: Scopable;
|
|
1507
|
+
BlockParent: BlockParent;
|
|
1508
|
+
Block: Block;
|
|
1509
|
+
Statement: Statement;
|
|
1510
|
+
Terminatorless: Terminatorless;
|
|
1511
|
+
CompletionStatement: CompletionStatement;
|
|
1512
|
+
Conditional: Conditional;
|
|
1513
|
+
Loop: Loop;
|
|
1514
|
+
While: While;
|
|
1515
|
+
ExpressionWrapper: ExpressionWrapper;
|
|
1516
|
+
For: For;
|
|
1517
|
+
ForXStatement: ForXStatement;
|
|
1518
|
+
Function: Function;
|
|
1519
|
+
FunctionParent: FunctionParent;
|
|
1520
|
+
Pureish: Pureish;
|
|
1521
|
+
Declaration: Declaration;
|
|
1522
|
+
FunctionParameter: FunctionParameter;
|
|
1523
|
+
PatternLike: PatternLike;
|
|
1524
|
+
LVal: LVal;
|
|
1525
|
+
TSEntityName: TSEntityName;
|
|
1526
|
+
Literal: Literal;
|
|
1527
|
+
Immutable: Immutable;
|
|
1528
|
+
UserWhitespacable: UserWhitespacable;
|
|
1529
|
+
Method: Method;
|
|
1530
|
+
ObjectMember: ObjectMember;
|
|
1531
|
+
Property: Property;
|
|
1532
|
+
UnaryLike: UnaryLike;
|
|
1533
|
+
Pattern: Pattern;
|
|
1534
|
+
Class: Class;
|
|
1535
|
+
ImportOrExportDeclaration: ImportOrExportDeclaration;
|
|
1536
|
+
ExportDeclaration: ExportDeclaration;
|
|
1537
|
+
ModuleSpecifier: ModuleSpecifier;
|
|
1538
|
+
Accessor: Accessor;
|
|
1539
|
+
Private: Private;
|
|
1540
|
+
Flow: Flow;
|
|
1541
|
+
FlowType: FlowType;
|
|
1542
|
+
FlowBaseAnnotation: FlowBaseAnnotation;
|
|
1543
|
+
FlowDeclaration: FlowDeclaration;
|
|
1544
|
+
FlowPredicate: FlowPredicate;
|
|
1545
|
+
EnumBody: EnumBody;
|
|
1546
|
+
EnumMember: EnumMember;
|
|
1547
|
+
JSX: JSX;
|
|
1548
|
+
Miscellaneous: Miscellaneous;
|
|
1549
|
+
TypeScript: TypeScript;
|
|
1550
|
+
TSTypeElement: TSTypeElement;
|
|
1551
|
+
TSType: TSType;
|
|
1552
|
+
TSBaseType: TSBaseType;
|
|
1553
|
+
ModuleDeclaration: ModuleDeclaration;
|
|
1554
|
+
}
|
|
1555
|
+
declare function arrayExpression(elements?: (null | Expression | SpreadElement)[]): ArrayExpression;
|
|
1556
|
+
declare function assignmentExpression(operator: string, left: LVal | OptionalMemberExpression, right: Expression): AssignmentExpression;
|
|
1557
|
+
declare function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=" | "|>", left: Expression | PrivateName, right: Expression): BinaryExpression;
|
|
1558
|
+
declare function interpreterDirective(value: string): InterpreterDirective;
|
|
1559
|
+
declare function directive(value: DirectiveLiteral): Directive;
|
|
1560
|
+
declare function directiveLiteral(value: string): DirectiveLiteral;
|
|
1561
|
+
declare function blockStatement(body: Statement[], directives?: Directive[]): BlockStatement;
|
|
1562
|
+
declare function breakStatement(label?: Identifier | null): BreakStatement;
|
|
1563
|
+
declare function callExpression(callee: Expression | Super | V8IntrinsicIdentifier, _arguments: (Expression | SpreadElement | ArgumentPlaceholder)[]): CallExpression;
|
|
1564
|
+
declare function catchClause(param: Identifier | ArrayPattern | ObjectPattern | null | undefined, body: BlockStatement): CatchClause;
|
|
1565
|
+
declare function conditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression;
|
|
1566
|
+
declare function continueStatement(label?: Identifier | null): ContinueStatement;
|
|
1567
|
+
declare function debuggerStatement(): DebuggerStatement;
|
|
1568
|
+
declare function doWhileStatement(test: Expression, body: Statement): DoWhileStatement;
|
|
1569
|
+
declare function emptyStatement(): EmptyStatement;
|
|
1570
|
+
declare function expressionStatement(expression: Expression): ExpressionStatement;
|
|
1571
|
+
declare function file(program: Program, comments?: (CommentBlock | CommentLine)[] | null, tokens?: any[] | null): File;
|
|
1572
|
+
declare function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement;
|
|
1573
|
+
declare function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement;
|
|
1574
|
+
declare function functionDeclaration(id: Identifier | null | undefined, params: FunctionParameter[], body: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration;
|
|
1575
|
+
declare function functionExpression(id: Identifier | null | undefined, params: FunctionParameter[], body: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression;
|
|
1576
|
+
declare function identifier(name: string): Identifier;
|
|
1577
|
+
declare function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement;
|
|
1578
|
+
declare function labeledStatement(label: Identifier, body: Statement): LabeledStatement;
|
|
1579
|
+
declare function stringLiteral(value: string): StringLiteral;
|
|
1580
|
+
declare function numericLiteral(value: number): NumericLiteral;
|
|
1581
|
+
declare function nullLiteral(): NullLiteral;
|
|
1582
|
+
declare function booleanLiteral(value: boolean): BooleanLiteral;
|
|
1583
|
+
declare function regExpLiteral(pattern: string, flags?: string): RegExpLiteral;
|
|
1584
|
+
declare function logicalExpression(operator: "||" | "&&" | "??", left: Expression, right: Expression): LogicalExpression;
|
|
1585
|
+
declare function memberExpression(object: Expression | Super, property: Expression | Identifier | PrivateName, computed?: boolean, optional?: boolean | null): MemberExpression;
|
|
1586
|
+
declare function newExpression(callee: Expression | Super | V8IntrinsicIdentifier, _arguments: (Expression | SpreadElement | ArgumentPlaceholder)[]): NewExpression;
|
|
1587
|
+
declare function program(body: Statement[], directives?: Directive[], sourceType?: "script" | "module", interpreter?: InterpreterDirective | null): Program;
|
|
1588
|
+
declare function objectExpression(properties: (ObjectMethod | ObjectProperty | SpreadElement)[]): ObjectExpression;
|
|
1589
|
+
declare function objectMethod(kind: "method" | "get" | "set" | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral, params: FunctionParameter[], body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean): ObjectMethod;
|
|
1590
|
+
declare function objectProperty(key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | DecimalLiteral | PrivateName, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Decorator[] | null): ObjectProperty;
|
|
1591
|
+
declare function restElement(argument: Identifier | ArrayPattern | ObjectPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | RestElement | AssignmentPattern): RestElement;
|
|
1592
|
+
declare function returnStatement(argument?: Expression | null): ReturnStatement;
|
|
1593
|
+
declare function sequenceExpression(expressions: Expression[]): SequenceExpression;
|
|
1594
|
+
declare function parenthesizedExpression(expression: Expression): ParenthesizedExpression;
|
|
1595
|
+
declare function switchCase(test: Expression | null | undefined, consequent: Statement[]): SwitchCase;
|
|
1596
|
+
declare function switchStatement(discriminant: Expression, cases: SwitchCase[]): SwitchStatement;
|
|
1597
|
+
declare function thisExpression(): ThisExpression;
|
|
1598
|
+
declare function throwStatement(argument: Expression): ThrowStatement;
|
|
1599
|
+
declare function tryStatement(block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null): TryStatement;
|
|
1600
|
+
declare function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression;
|
|
1601
|
+
declare function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression;
|
|
1602
|
+
declare function variableDeclaration(kind: "var" | "let" | "const" | "using" | "await using", declarations: VariableDeclarator[]): VariableDeclaration;
|
|
1603
|
+
declare function variableDeclarator(id: LVal | VoidPattern, init?: Expression | null): VariableDeclarator;
|
|
1604
|
+
declare function whileStatement(test: Expression, body: Statement): WhileStatement;
|
|
1605
|
+
declare function withStatement(object: Expression, body: Statement): WithStatement;
|
|
1606
|
+
declare function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression, right: Expression): AssignmentPattern;
|
|
1607
|
+
declare function arrayPattern(elements: (null | PatternLike)[]): ArrayPattern;
|
|
1608
|
+
declare function arrowFunctionExpression(params: FunctionParameter[], body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression;
|
|
1609
|
+
declare function classBody(body: (ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock)[]): ClassBody;
|
|
1610
|
+
declare function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Decorator[] | null): ClassExpression;
|
|
1611
|
+
declare function classDeclaration(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Decorator[] | null): ClassDeclaration;
|
|
1612
|
+
declare function exportAllDeclaration(source: StringLiteral, attributes?: ImportAttribute[] | null): ExportAllDeclaration;
|
|
1613
|
+
declare function exportDefaultDeclaration(declaration: TSDeclareFunction | FunctionDeclaration | ClassDeclaration | Expression): ExportDefaultDeclaration;
|
|
1614
|
+
declare function exportNamedDeclaration(declaration?: Declaration | null, specifiers?: (ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier)[], source?: StringLiteral | null, attributes?: ImportAttribute[] | null): ExportNamedDeclaration;
|
|
1615
|
+
declare function exportSpecifier(local: Identifier, exported: Identifier | StringLiteral): ExportSpecifier;
|
|
1616
|
+
declare function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement;
|
|
1617
|
+
declare function importDeclaration(specifiers: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[], source: StringLiteral, attributes?: ImportAttribute[] | null): ImportDeclaration;
|
|
1618
|
+
declare function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier;
|
|
1619
|
+
declare function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier;
|
|
1620
|
+
declare function importSpecifier(local: Identifier, imported: Identifier | StringLiteral): ImportSpecifier;
|
|
1621
|
+
declare function importExpression(source: Expression, options?: Expression | null): ImportExpression;
|
|
1622
|
+
declare function metaProperty(meta: Identifier, property: Identifier): MetaProperty;
|
|
1623
|
+
declare function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, params: (FunctionParameter | TSParameterProperty)[], body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): ClassMethod;
|
|
1624
|
+
declare function objectPattern(properties: (RestElement | ObjectProperty)[]): ObjectPattern;
|
|
1625
|
+
declare function spreadElement(argument: Expression): SpreadElement;
|
|
1626
|
+
declare function _super(): Super;
|
|
1627
|
+
declare function taggedTemplateExpression(tag: Expression, quasi: TemplateLiteral): TaggedTemplateExpression;
|
|
1628
|
+
declare function templateElement(value: {
|
|
1629
|
+
raw: string;
|
|
1630
|
+
cooked?: string;
|
|
1631
|
+
}, tail?: boolean): TemplateElement;
|
|
1632
|
+
declare function templateLiteral(quasis: TemplateElement[], expressions: (Expression | TSType)[]): TemplateLiteral;
|
|
1633
|
+
declare function yieldExpression(argument?: Expression | null, delegate?: boolean): YieldExpression;
|
|
1634
|
+
declare function awaitExpression(argument: Expression): AwaitExpression;
|
|
1635
|
+
declare function _import(): Import;
|
|
1636
|
+
declare function bigIntLiteral(value: string): BigIntLiteral;
|
|
1637
|
+
declare function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceSpecifier;
|
|
1638
|
+
declare function optionalMemberExpression(object: Expression, property: Expression | Identifier, computed: boolean | undefined, optional: boolean): OptionalMemberExpression;
|
|
1639
|
+
declare function optionalCallExpression(callee: Expression, _arguments: (Expression | SpreadElement | ArgumentPlaceholder)[], optional: boolean): OptionalCallExpression;
|
|
1640
|
+
declare function classProperty(key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Decorator[] | null, computed?: boolean, _static?: boolean): ClassProperty;
|
|
1641
|
+
declare function classAccessorProperty(key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression | PrivateName, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Decorator[] | null, computed?: boolean, _static?: boolean): ClassAccessorProperty;
|
|
1642
|
+
declare function classPrivateProperty(key: PrivateName, value?: Expression | null, decorators?: Decorator[] | null, _static?: boolean): ClassPrivateProperty;
|
|
1643
|
+
declare function classPrivateMethod(kind: "get" | "set" | "method" | undefined, key: PrivateName, params: (FunctionParameter | TSParameterProperty)[], body: BlockStatement, _static?: boolean): ClassPrivateMethod;
|
|
1644
|
+
declare function privateName(id: Identifier): PrivateName;
|
|
1645
|
+
declare function staticBlock(body: Statement[]): StaticBlock;
|
|
1646
|
+
declare function importAttribute(key: Identifier | StringLiteral, value: StringLiteral): ImportAttribute;
|
|
1647
|
+
declare function anyTypeAnnotation(): AnyTypeAnnotation;
|
|
1648
|
+
declare function arrayTypeAnnotation(elementType: FlowType): ArrayTypeAnnotation;
|
|
1649
|
+
declare function booleanTypeAnnotation(): BooleanTypeAnnotation;
|
|
1650
|
+
declare function booleanLiteralTypeAnnotation(value: boolean): BooleanLiteralTypeAnnotation;
|
|
1651
|
+
declare function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation;
|
|
1652
|
+
declare function classImplements(id: Identifier, typeParameters?: TypeParameterInstantiation | null): ClassImplements;
|
|
1653
|
+
declare function declareClass(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: InterfaceExtends[] | null | undefined, body: ObjectTypeAnnotation): DeclareClass;
|
|
1654
|
+
declare function declareFunction(id: Identifier): DeclareFunction;
|
|
1655
|
+
declare function declareInterface(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: InterfaceExtends[] | null | undefined, body: ObjectTypeAnnotation): DeclareInterface;
|
|
1656
|
+
declare function declareModule(id: Identifier | StringLiteral, body: BlockStatement, kind?: "CommonJS" | "ES" | null): DeclareModule;
|
|
1657
|
+
declare function declareModuleExports(typeAnnotation: TypeAnnotation): DeclareModuleExports;
|
|
1658
|
+
declare function declareTypeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): DeclareTypeAlias;
|
|
1659
|
+
declare function declareOpaqueType(id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null): DeclareOpaqueType;
|
|
1660
|
+
declare function declareVariable(id: Identifier): DeclareVariable;
|
|
1661
|
+
declare function declareExportDeclaration(declaration?: Flow | null, specifiers?: (ExportSpecifier | ExportNamespaceSpecifier)[] | null, source?: StringLiteral | null, attributes?: ImportAttribute[] | null): DeclareExportDeclaration;
|
|
1662
|
+
declare function declareExportAllDeclaration(source: StringLiteral, attributes?: ImportAttribute[] | null): DeclareExportAllDeclaration;
|
|
1663
|
+
declare function declaredPredicate(value: Flow): DeclaredPredicate;
|
|
1664
|
+
declare function existsTypeAnnotation(): ExistsTypeAnnotation;
|
|
1665
|
+
declare function functionTypeAnnotation(typeParameters: TypeParameterDeclaration | null | undefined, params: FunctionTypeParam[], rest: FunctionTypeParam | null | undefined, returnType: FlowType): FunctionTypeAnnotation;
|
|
1666
|
+
declare function functionTypeParam(name: Identifier | null | undefined, typeAnnotation: FlowType): FunctionTypeParam;
|
|
1667
|
+
declare function genericTypeAnnotation(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): GenericTypeAnnotation;
|
|
1668
|
+
declare function inferredPredicate(): InferredPredicate;
|
|
1669
|
+
declare function interfaceExtends(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): InterfaceExtends;
|
|
1670
|
+
declare function interfaceDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: InterfaceExtends[] | null | undefined, body: ObjectTypeAnnotation): InterfaceDeclaration;
|
|
1671
|
+
declare function interfaceTypeAnnotation(_extends: InterfaceExtends[] | null | undefined, body: ObjectTypeAnnotation): InterfaceTypeAnnotation;
|
|
1672
|
+
declare function intersectionTypeAnnotation(types: FlowType[]): IntersectionTypeAnnotation;
|
|
1673
|
+
declare function mixedTypeAnnotation(): MixedTypeAnnotation;
|
|
1674
|
+
declare function emptyTypeAnnotation(): EmptyTypeAnnotation;
|
|
1675
|
+
declare function nullableTypeAnnotation(typeAnnotation: FlowType): NullableTypeAnnotation;
|
|
1676
|
+
declare function numberLiteralTypeAnnotation(value: number): NumberLiteralTypeAnnotation;
|
|
1677
|
+
declare function numberTypeAnnotation(): NumberTypeAnnotation;
|
|
1678
|
+
declare function objectTypeAnnotation(properties: (ObjectTypeProperty | ObjectTypeSpreadProperty)[], indexers?: ObjectTypeIndexer[], callProperties?: ObjectTypeCallProperty[], internalSlots?: ObjectTypeInternalSlot[], exact?: boolean): ObjectTypeAnnotation;
|
|
1679
|
+
declare function objectTypeInternalSlot(id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean): ObjectTypeInternalSlot;
|
|
1680
|
+
declare function objectTypeCallProperty(value: FlowType): ObjectTypeCallProperty;
|
|
1681
|
+
declare function objectTypeIndexer(id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null): ObjectTypeIndexer;
|
|
1682
|
+
declare function objectTypeProperty(key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null): ObjectTypeProperty;
|
|
1683
|
+
declare function objectTypeSpreadProperty(argument: FlowType): ObjectTypeSpreadProperty;
|
|
1684
|
+
declare function opaqueType(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType): OpaqueType;
|
|
1685
|
+
declare function qualifiedTypeIdentifier(id: Identifier, qualification: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier;
|
|
1686
|
+
declare function stringLiteralTypeAnnotation(value: string): StringLiteralTypeAnnotation;
|
|
1687
|
+
declare function stringTypeAnnotation(): StringTypeAnnotation;
|
|
1688
|
+
declare function symbolTypeAnnotation(): SymbolTypeAnnotation;
|
|
1689
|
+
declare function thisTypeAnnotation(): ThisTypeAnnotation;
|
|
1690
|
+
declare function tupleTypeAnnotation(types: FlowType[]): TupleTypeAnnotation;
|
|
1691
|
+
declare function typeofTypeAnnotation(argument: FlowType): TypeofTypeAnnotation;
|
|
1692
|
+
declare function typeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): TypeAlias;
|
|
1693
|
+
declare function typeAnnotation(typeAnnotation: FlowType): TypeAnnotation;
|
|
1694
|
+
declare function typeCastExpression(expression: Expression, typeAnnotation: TypeAnnotation): TypeCastExpression;
|
|
1695
|
+
declare function typeParameter(bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null): TypeParameter;
|
|
1696
|
+
declare function typeParameterDeclaration(params: TypeParameter[]): TypeParameterDeclaration;
|
|
1697
|
+
declare function typeParameterInstantiation(params: FlowType[]): TypeParameterInstantiation;
|
|
1698
|
+
declare function unionTypeAnnotation(types: FlowType[]): UnionTypeAnnotation;
|
|
1699
|
+
declare function variance(kind: "minus" | "plus"): Variance;
|
|
1700
|
+
declare function voidTypeAnnotation(): VoidTypeAnnotation;
|
|
1701
|
+
declare function enumDeclaration(id: Identifier, body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody): EnumDeclaration;
|
|
1702
|
+
declare function enumBooleanBody(members: EnumBooleanMember[]): EnumBooleanBody;
|
|
1703
|
+
declare function enumNumberBody(members: EnumNumberMember[]): EnumNumberBody;
|
|
1704
|
+
declare function enumStringBody(members: (EnumStringMember | EnumDefaultedMember)[]): EnumStringBody;
|
|
1705
|
+
declare function enumSymbolBody(members: EnumDefaultedMember[]): EnumSymbolBody;
|
|
1706
|
+
declare function enumBooleanMember(id: Identifier): EnumBooleanMember;
|
|
1707
|
+
declare function enumNumberMember(id: Identifier, init: NumericLiteral): EnumNumberMember;
|
|
1708
|
+
declare function enumStringMember(id: Identifier, init: StringLiteral): EnumStringMember;
|
|
1709
|
+
declare function enumDefaultedMember(id: Identifier): EnumDefaultedMember;
|
|
1710
|
+
declare function indexedAccessType(objectType: FlowType, indexType: FlowType): IndexedAccessType;
|
|
1711
|
+
declare function optionalIndexedAccessType(objectType: FlowType, indexType: FlowType): OptionalIndexedAccessType;
|
|
1712
|
+
declare function jsxAttribute(name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null): JSXAttribute;
|
|
1713
|
+
declare function jsxClosingElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName): JSXClosingElement;
|
|
1714
|
+
declare function jsxElement(openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: (JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment)[], selfClosing?: boolean | null): JSXElement;
|
|
1715
|
+
declare function jsxEmptyExpression(): JSXEmptyExpression;
|
|
1716
|
+
declare function jsxExpressionContainer(expression: Expression | JSXEmptyExpression): JSXExpressionContainer;
|
|
1717
|
+
declare function jsxSpreadChild(expression: Expression): JSXSpreadChild;
|
|
1718
|
+
declare function jsxIdentifier(name: string): JSXIdentifier;
|
|
1719
|
+
declare function jsxMemberExpression(object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier): JSXMemberExpression;
|
|
1720
|
+
declare function jsxNamespacedName(namespace: JSXIdentifier, name: JSXIdentifier): JSXNamespacedName;
|
|
1721
|
+
declare function jsxOpeningElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName, attributes: (JSXAttribute | JSXSpreadAttribute)[], selfClosing?: boolean): JSXOpeningElement;
|
|
1722
|
+
declare function jsxSpreadAttribute(argument: Expression): JSXSpreadAttribute;
|
|
1723
|
+
declare function jsxText(value: string): JSXText;
|
|
1724
|
+
declare function jsxFragment(openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: (JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment)[]): JSXFragment;
|
|
1725
|
+
declare function jsxOpeningFragment(): JSXOpeningFragment;
|
|
1726
|
+
declare function jsxClosingFragment(): JSXClosingFragment;
|
|
1727
|
+
declare function noop(): Noop;
|
|
1728
|
+
declare function placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: Identifier): Placeholder;
|
|
1729
|
+
declare function v8IntrinsicIdentifier(name: string): V8IntrinsicIdentifier;
|
|
1730
|
+
declare function argumentPlaceholder(): ArgumentPlaceholder;
|
|
1731
|
+
declare function bindExpression(object: Expression, callee: Expression): BindExpression;
|
|
1732
|
+
declare function decorator(expression: Expression): Decorator;
|
|
1733
|
+
declare function doExpression(body: BlockStatement, async?: boolean): DoExpression;
|
|
1734
|
+
declare function exportDefaultSpecifier(exported: Identifier): ExportDefaultSpecifier;
|
|
1735
|
+
declare function recordExpression(properties: (ObjectProperty | SpreadElement)[]): RecordExpression;
|
|
1736
|
+
declare function tupleExpression(elements?: (Expression | SpreadElement)[]): TupleExpression;
|
|
1737
|
+
declare function decimalLiteral(value: string): DecimalLiteral;
|
|
1738
|
+
declare function moduleExpression(body: Program): ModuleExpression;
|
|
1739
|
+
declare function topicReference(): TopicReference;
|
|
1740
|
+
declare function pipelineTopicExpression(expression: Expression): PipelineTopicExpression;
|
|
1741
|
+
declare function pipelineBareFunction(callee: Expression): PipelineBareFunction;
|
|
1742
|
+
declare function pipelinePrimaryTopicReference(): PipelinePrimaryTopicReference;
|
|
1743
|
+
declare function voidPattern(): VoidPattern;
|
|
1744
|
+
declare function tsParameterProperty(parameter: Identifier | AssignmentPattern): TSParameterProperty;
|
|
1745
|
+
declare function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: FunctionParameter[], returnType?: TSTypeAnnotation | Noop | null): TSDeclareFunction;
|
|
1746
|
+
declare function tsDeclareMethod(decorators: Decorator[] | null | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: (FunctionParameter | TSParameterProperty)[], returnType?: TSTypeAnnotation | Noop | null): TSDeclareMethod;
|
|
1747
|
+
declare function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName;
|
|
1748
|
+
declare function tsCallSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[], typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration;
|
|
1749
|
+
declare function tsConstructSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[], typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration;
|
|
1750
|
+
declare function tsPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation | null): TSPropertySignature;
|
|
1751
|
+
declare function tsMethodSignature(key: Expression, typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[], typeAnnotation?: TSTypeAnnotation | null): TSMethodSignature;
|
|
1752
|
+
declare function tsIndexSignature(parameters: Identifier[], typeAnnotation?: TSTypeAnnotation | null): TSIndexSignature;
|
|
1753
|
+
declare function tsAnyKeyword(): TSAnyKeyword;
|
|
1754
|
+
declare function tsBooleanKeyword(): TSBooleanKeyword;
|
|
1755
|
+
declare function tsBigIntKeyword(): TSBigIntKeyword;
|
|
1756
|
+
declare function tsIntrinsicKeyword(): TSIntrinsicKeyword;
|
|
1757
|
+
declare function tsNeverKeyword(): TSNeverKeyword;
|
|
1758
|
+
declare function tsNullKeyword(): TSNullKeyword;
|
|
1759
|
+
declare function tsNumberKeyword(): TSNumberKeyword;
|
|
1760
|
+
declare function tsObjectKeyword(): TSObjectKeyword;
|
|
1761
|
+
declare function tsStringKeyword(): TSStringKeyword;
|
|
1762
|
+
declare function tsSymbolKeyword(): TSSymbolKeyword;
|
|
1763
|
+
declare function tsUndefinedKeyword(): TSUndefinedKeyword;
|
|
1764
|
+
declare function tsUnknownKeyword(): TSUnknownKeyword;
|
|
1765
|
+
declare function tsVoidKeyword(): TSVoidKeyword;
|
|
1766
|
+
declare function tsThisType(): TSThisType;
|
|
1767
|
+
declare function tsFunctionType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[], typeAnnotation?: TSTypeAnnotation | null): TSFunctionType;
|
|
1768
|
+
declare function tsConstructorType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[], typeAnnotation?: TSTypeAnnotation | null): TSConstructorType;
|
|
1769
|
+
declare function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference;
|
|
1770
|
+
declare function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation?: TSTypeAnnotation | null, asserts?: boolean | null): TSTypePredicate;
|
|
1771
|
+
declare function tsTypeQuery(exprName: TSEntityName | TSImportType, typeParameters?: TSTypeParameterInstantiation | null): TSTypeQuery;
|
|
1772
|
+
declare function tsTypeLiteral(members: TSTypeElement[]): TSTypeLiteral;
|
|
1773
|
+
declare function tsArrayType(elementType: TSType): TSArrayType;
|
|
1774
|
+
declare function tsTupleType(elementTypes: (TSType | TSNamedTupleMember)[]): TSTupleType;
|
|
1775
|
+
declare function tsOptionalType(typeAnnotation: TSType): TSOptionalType;
|
|
1776
|
+
declare function tsRestType(typeAnnotation: TSType): TSRestType;
|
|
1777
|
+
declare function tsNamedTupleMember(label: Identifier, elementType: TSType, optional?: boolean): TSNamedTupleMember;
|
|
1778
|
+
declare function tsUnionType(types: TSType[]): TSUnionType;
|
|
1779
|
+
declare function tsIntersectionType(types: TSType[]): TSIntersectionType;
|
|
1780
|
+
declare function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType;
|
|
1781
|
+
declare function tsInferType(typeParameter: TSTypeParameter): TSInferType;
|
|
1782
|
+
declare function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType;
|
|
1783
|
+
declare function tsTypeOperator(typeAnnotation: TSType, operator?: string): TSTypeOperator;
|
|
1784
|
+
declare function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
|
|
1785
|
+
declare function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null): TSMappedType;
|
|
1786
|
+
declare function tsTemplateLiteralType(quasis: TemplateElement[], types: TSType[]): TSTemplateLiteralType;
|
|
1787
|
+
declare function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | TemplateLiteral | UnaryExpression): TSLiteralType;
|
|
1788
|
+
declare function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments;
|
|
1789
|
+
declare function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: TSExpressionWithTypeArguments[] | null | undefined, body: TSInterfaceBody): TSInterfaceDeclaration;
|
|
1790
|
+
declare function tsInterfaceBody(body: TSTypeElement[]): TSInterfaceBody;
|
|
1791
|
+
declare function tsTypeAliasDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType): TSTypeAliasDeclaration;
|
|
1792
|
+
declare function tsInstantiationExpression(expression: Expression, typeParameters?: TSTypeParameterInstantiation | null): TSInstantiationExpression;
|
|
1793
|
+
declare function tsAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression;
|
|
1794
|
+
declare function tsSatisfiesExpression(expression: Expression, typeAnnotation: TSType): TSSatisfiesExpression;
|
|
1795
|
+
declare function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion;
|
|
1796
|
+
declare function tsEnumBody(members: TSEnumMember[]): TSEnumBody;
|
|
1797
|
+
declare function tsEnumDeclaration(id: Identifier, members: TSEnumMember[]): TSEnumDeclaration;
|
|
1798
|
+
declare function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember;
|
|
1799
|
+
declare function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration): TSModuleDeclaration;
|
|
1800
|
+
declare function tsModuleBlock(body: Statement[]): TSModuleBlock;
|
|
1801
|
+
declare function tsImportType(argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null): TSImportType;
|
|
1802
|
+
declare function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference): TSImportEqualsDeclaration;
|
|
1803
|
+
declare function tsExternalModuleReference(expression: StringLiteral): TSExternalModuleReference;
|
|
1804
|
+
declare function tsNonNullExpression(expression: Expression): TSNonNullExpression;
|
|
1805
|
+
declare function tsExportAssignment(expression: Expression): TSExportAssignment;
|
|
1806
|
+
declare function tsNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration;
|
|
1807
|
+
declare function tsTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation;
|
|
1808
|
+
declare function tsTypeParameterInstantiation(params: TSType[]): TSTypeParameterInstantiation;
|
|
1809
|
+
declare function tsTypeParameterDeclaration(params: TSTypeParameter[]): TSTypeParameterDeclaration;
|
|
1810
|
+
declare function tsTypeParameter(constraint: TSType | null | undefined, _default: TSType | null | undefined, name: string): TSTypeParameter;
|
|
1811
|
+
declare function isAccessor(node: object | null | undefined, opts?: object | null): node is Accessor;
|
|
1812
|
+
declare function assertAccessor(node: object | null | undefined, opts?: object | null): void;
|
|
1813
|
+
declare function isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation;
|
|
1814
|
+
declare function assertAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
1815
|
+
declare function isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder;
|
|
1816
|
+
declare function assertArgumentPlaceholder(node: object | null | undefined, opts?: object | null): void;
|
|
1817
|
+
declare function isArrayExpression(node: object | null | undefined, opts?: object | null): node is ArrayExpression;
|
|
1818
|
+
declare function assertArrayExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1819
|
+
declare function isArrayPattern(node: object | null | undefined, opts?: object | null): node is ArrayPattern;
|
|
1820
|
+
declare function assertArrayPattern(node: object | null | undefined, opts?: object | null): void;
|
|
1821
|
+
declare function isArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ArrayTypeAnnotation;
|
|
1822
|
+
declare function assertArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
1823
|
+
declare function isArrowFunctionExpression(node: object | null | undefined, opts?: object | null): node is ArrowFunctionExpression;
|
|
1824
|
+
declare function assertArrowFunctionExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1825
|
+
declare function isAssignmentExpression(node: object | null | undefined, opts?: object | null): node is AssignmentExpression;
|
|
1826
|
+
declare function assertAssignmentExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1827
|
+
declare function isAssignmentPattern(node: object | null | undefined, opts?: object | null): node is AssignmentPattern;
|
|
1828
|
+
declare function assertAssignmentPattern(node: object | null | undefined, opts?: object | null): void;
|
|
1829
|
+
declare function isAwaitExpression(node: object | null | undefined, opts?: object | null): node is AwaitExpression;
|
|
1830
|
+
declare function assertAwaitExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1831
|
+
declare function isBigIntLiteral(node: object | null | undefined, opts?: object | null): node is BigIntLiteral;
|
|
1832
|
+
declare function assertBigIntLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
1833
|
+
declare function isBinary(node: object | null | undefined, opts?: object | null): node is Binary;
|
|
1834
|
+
declare function assertBinary(node: object | null | undefined, opts?: object | null): void;
|
|
1835
|
+
declare function isBinaryExpression(node: object | null | undefined, opts?: object | null): node is BinaryExpression;
|
|
1836
|
+
declare function assertBinaryExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1837
|
+
declare function isBindExpression(node: object | null | undefined, opts?: object | null): node is BindExpression;
|
|
1838
|
+
declare function assertBindExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1839
|
+
declare function isBlock(node: object | null | undefined, opts?: object | null): node is Block;
|
|
1840
|
+
declare function assertBlock(node: object | null | undefined, opts?: object | null): void;
|
|
1841
|
+
declare function isBlockParent(node: object | null | undefined, opts?: object | null): node is BlockParent;
|
|
1842
|
+
declare function assertBlockParent(node: object | null | undefined, opts?: object | null): void;
|
|
1843
|
+
declare function isBlockStatement(node: object | null | undefined, opts?: object | null): node is BlockStatement;
|
|
1844
|
+
declare function assertBlockStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1845
|
+
declare function isBooleanLiteral(node: object | null | undefined, opts?: object | null): node is BooleanLiteral;
|
|
1846
|
+
declare function assertBooleanLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
1847
|
+
declare function isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanLiteralTypeAnnotation;
|
|
1848
|
+
declare function assertBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
1849
|
+
declare function isBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanTypeAnnotation;
|
|
1850
|
+
declare function assertBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
1851
|
+
declare function isBreakStatement(node: object | null | undefined, opts?: object | null): node is BreakStatement;
|
|
1852
|
+
declare function assertBreakStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1853
|
+
declare function isCallExpression(node: object | null | undefined, opts?: object | null): node is CallExpression;
|
|
1854
|
+
declare function assertCallExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1855
|
+
declare function isCatchClause(node: object | null | undefined, opts?: object | null): node is CatchClause;
|
|
1856
|
+
declare function assertCatchClause(node: object | null | undefined, opts?: object | null): void;
|
|
1857
|
+
declare function isClass(node: object | null | undefined, opts?: object | null): node is Class;
|
|
1858
|
+
declare function assertClass(node: object | null | undefined, opts?: object | null): void;
|
|
1859
|
+
declare function isClassAccessorProperty(node: object | null | undefined, opts?: object | null): node is ClassAccessorProperty;
|
|
1860
|
+
declare function assertClassAccessorProperty(node: object | null | undefined, opts?: object | null): void;
|
|
1861
|
+
declare function isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody;
|
|
1862
|
+
declare function assertClassBody(node: object | null | undefined, opts?: object | null): void;
|
|
1863
|
+
declare function isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration;
|
|
1864
|
+
declare function assertClassDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1865
|
+
declare function isClassExpression(node: object | null | undefined, opts?: object | null): node is ClassExpression;
|
|
1866
|
+
declare function assertClassExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1867
|
+
declare function isClassImplements(node: object | null | undefined, opts?: object | null): node is ClassImplements;
|
|
1868
|
+
declare function assertClassImplements(node: object | null | undefined, opts?: object | null): void;
|
|
1869
|
+
declare function isClassMethod(node: object | null | undefined, opts?: object | null): node is ClassMethod;
|
|
1870
|
+
declare function assertClassMethod(node: object | null | undefined, opts?: object | null): void;
|
|
1871
|
+
declare function isClassPrivateMethod(node: object | null | undefined, opts?: object | null): node is ClassPrivateMethod;
|
|
1872
|
+
declare function assertClassPrivateMethod(node: object | null | undefined, opts?: object | null): void;
|
|
1873
|
+
declare function isClassPrivateProperty(node: object | null | undefined, opts?: object | null): node is ClassPrivateProperty;
|
|
1874
|
+
declare function assertClassPrivateProperty(node: object | null | undefined, opts?: object | null): void;
|
|
1875
|
+
declare function isClassProperty(node: object | null | undefined, opts?: object | null): node is ClassProperty;
|
|
1876
|
+
declare function assertClassProperty(node: object | null | undefined, opts?: object | null): void;
|
|
1877
|
+
declare function isCompletionStatement(node: object | null | undefined, opts?: object | null): node is CompletionStatement;
|
|
1878
|
+
declare function assertCompletionStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1879
|
+
declare function isConditional(node: object | null | undefined, opts?: object | null): node is Conditional;
|
|
1880
|
+
declare function assertConditional(node: object | null | undefined, opts?: object | null): void;
|
|
1881
|
+
declare function isConditionalExpression(node: object | null | undefined, opts?: object | null): node is ConditionalExpression;
|
|
1882
|
+
declare function assertConditionalExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1883
|
+
declare function isContinueStatement(node: object | null | undefined, opts?: object | null): node is ContinueStatement;
|
|
1884
|
+
declare function assertContinueStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1885
|
+
declare function isDebuggerStatement(node: object | null | undefined, opts?: object | null): node is DebuggerStatement;
|
|
1886
|
+
declare function assertDebuggerStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1887
|
+
declare function isDecimalLiteral(node: object | null | undefined, opts?: object | null): node is DecimalLiteral;
|
|
1888
|
+
declare function assertDecimalLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
1889
|
+
declare function isDeclaration(node: object | null | undefined, opts?: object | null): node is Declaration;
|
|
1890
|
+
declare function assertDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1891
|
+
declare function isDeclareClass(node: object | null | undefined, opts?: object | null): node is DeclareClass;
|
|
1892
|
+
declare function assertDeclareClass(node: object | null | undefined, opts?: object | null): void;
|
|
1893
|
+
declare function isDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportAllDeclaration;
|
|
1894
|
+
declare function assertDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1895
|
+
declare function isDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportDeclaration;
|
|
1896
|
+
declare function assertDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1897
|
+
declare function isDeclareFunction(node: object | null | undefined, opts?: object | null): node is DeclareFunction;
|
|
1898
|
+
declare function assertDeclareFunction(node: object | null | undefined, opts?: object | null): void;
|
|
1899
|
+
declare function isDeclareInterface(node: object | null | undefined, opts?: object | null): node is DeclareInterface;
|
|
1900
|
+
declare function assertDeclareInterface(node: object | null | undefined, opts?: object | null): void;
|
|
1901
|
+
declare function isDeclareModule(node: object | null | undefined, opts?: object | null): node is DeclareModule;
|
|
1902
|
+
declare function assertDeclareModule(node: object | null | undefined, opts?: object | null): void;
|
|
1903
|
+
declare function isDeclareModuleExports(node: object | null | undefined, opts?: object | null): node is DeclareModuleExports;
|
|
1904
|
+
declare function assertDeclareModuleExports(node: object | null | undefined, opts?: object | null): void;
|
|
1905
|
+
declare function isDeclareOpaqueType(node: object | null | undefined, opts?: object | null): node is DeclareOpaqueType;
|
|
1906
|
+
declare function assertDeclareOpaqueType(node: object | null | undefined, opts?: object | null): void;
|
|
1907
|
+
declare function isDeclareTypeAlias(node: object | null | undefined, opts?: object | null): node is DeclareTypeAlias;
|
|
1908
|
+
declare function assertDeclareTypeAlias(node: object | null | undefined, opts?: object | null): void;
|
|
1909
|
+
declare function isDeclareVariable(node: object | null | undefined, opts?: object | null): node is DeclareVariable;
|
|
1910
|
+
declare function assertDeclareVariable(node: object | null | undefined, opts?: object | null): void;
|
|
1911
|
+
declare function isDeclaredPredicate(node: object | null | undefined, opts?: object | null): node is DeclaredPredicate;
|
|
1912
|
+
declare function assertDeclaredPredicate(node: object | null | undefined, opts?: object | null): void;
|
|
1913
|
+
declare function isDecorator(node: object | null | undefined, opts?: object | null): node is Decorator;
|
|
1914
|
+
declare function assertDecorator(node: object | null | undefined, opts?: object | null): void;
|
|
1915
|
+
declare function isDirective(node: object | null | undefined, opts?: object | null): node is Directive;
|
|
1916
|
+
declare function assertDirective(node: object | null | undefined, opts?: object | null): void;
|
|
1917
|
+
declare function isDirectiveLiteral(node: object | null | undefined, opts?: object | null): node is DirectiveLiteral;
|
|
1918
|
+
declare function assertDirectiveLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
1919
|
+
declare function isDoExpression(node: object | null | undefined, opts?: object | null): node is DoExpression;
|
|
1920
|
+
declare function assertDoExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1921
|
+
declare function isDoWhileStatement(node: object | null | undefined, opts?: object | null): node is DoWhileStatement;
|
|
1922
|
+
declare function assertDoWhileStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1923
|
+
declare function isEmptyStatement(node: object | null | undefined, opts?: object | null): node is EmptyStatement;
|
|
1924
|
+
declare function assertEmptyStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1925
|
+
declare function isEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is EmptyTypeAnnotation;
|
|
1926
|
+
declare function assertEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
1927
|
+
declare function isEnumBody(node: object | null | undefined, opts?: object | null): node is EnumBody;
|
|
1928
|
+
declare function assertEnumBody(node: object | null | undefined, opts?: object | null): void;
|
|
1929
|
+
declare function isEnumBooleanBody(node: object | null | undefined, opts?: object | null): node is EnumBooleanBody;
|
|
1930
|
+
declare function assertEnumBooleanBody(node: object | null | undefined, opts?: object | null): void;
|
|
1931
|
+
declare function isEnumBooleanMember(node: object | null | undefined, opts?: object | null): node is EnumBooleanMember;
|
|
1932
|
+
declare function assertEnumBooleanMember(node: object | null | undefined, opts?: object | null): void;
|
|
1933
|
+
declare function isEnumDeclaration(node: object | null | undefined, opts?: object | null): node is EnumDeclaration;
|
|
1934
|
+
declare function assertEnumDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1935
|
+
declare function isEnumDefaultedMember(node: object | null | undefined, opts?: object | null): node is EnumDefaultedMember;
|
|
1936
|
+
declare function assertEnumDefaultedMember(node: object | null | undefined, opts?: object | null): void;
|
|
1937
|
+
declare function isEnumMember(node: object | null | undefined, opts?: object | null): node is EnumMember;
|
|
1938
|
+
declare function assertEnumMember(node: object | null | undefined, opts?: object | null): void;
|
|
1939
|
+
declare function isEnumNumberBody(node: object | null | undefined, opts?: object | null): node is EnumNumberBody;
|
|
1940
|
+
declare function assertEnumNumberBody(node: object | null | undefined, opts?: object | null): void;
|
|
1941
|
+
declare function isEnumNumberMember(node: object | null | undefined, opts?: object | null): node is EnumNumberMember;
|
|
1942
|
+
declare function assertEnumNumberMember(node: object | null | undefined, opts?: object | null): void;
|
|
1943
|
+
declare function isEnumStringBody(node: object | null | undefined, opts?: object | null): node is EnumStringBody;
|
|
1944
|
+
declare function assertEnumStringBody(node: object | null | undefined, opts?: object | null): void;
|
|
1945
|
+
declare function isEnumStringMember(node: object | null | undefined, opts?: object | null): node is EnumStringMember;
|
|
1946
|
+
declare function assertEnumStringMember(node: object | null | undefined, opts?: object | null): void;
|
|
1947
|
+
declare function isEnumSymbolBody(node: object | null | undefined, opts?: object | null): node is EnumSymbolBody;
|
|
1948
|
+
declare function assertEnumSymbolBody(node: object | null | undefined, opts?: object | null): void;
|
|
1949
|
+
declare function isExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ExistsTypeAnnotation;
|
|
1950
|
+
declare function assertExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
1951
|
+
declare function isExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is ExportAllDeclaration;
|
|
1952
|
+
declare function assertExportAllDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1953
|
+
declare function isExportDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDeclaration;
|
|
1954
|
+
declare function assertExportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1955
|
+
declare function isExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDefaultDeclaration;
|
|
1956
|
+
declare function assertExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1957
|
+
declare function isExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ExportDefaultSpecifier;
|
|
1958
|
+
declare function assertExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void;
|
|
1959
|
+
declare function isExportNamedDeclaration(node: object | null | undefined, opts?: object | null): node is ExportNamedDeclaration;
|
|
1960
|
+
declare function assertExportNamedDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1961
|
+
declare function isExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ExportNamespaceSpecifier;
|
|
1962
|
+
declare function assertExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void;
|
|
1963
|
+
declare function isExportSpecifier(node: object | null | undefined, opts?: object | null): node is ExportSpecifier;
|
|
1964
|
+
declare function assertExportSpecifier(node: object | null | undefined, opts?: object | null): void;
|
|
1965
|
+
declare function isExpression(node: object | null | undefined, opts?: object | null): node is Expression;
|
|
1966
|
+
declare function assertExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1967
|
+
declare function isExpressionStatement(node: object | null | undefined, opts?: object | null): node is ExpressionStatement;
|
|
1968
|
+
declare function assertExpressionStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1969
|
+
declare function isExpressionWrapper(node: object | null | undefined, opts?: object | null): node is ExpressionWrapper;
|
|
1970
|
+
declare function assertExpressionWrapper(node: object | null | undefined, opts?: object | null): void;
|
|
1971
|
+
declare function isFile(node: object | null | undefined, opts?: object | null): node is File;
|
|
1972
|
+
declare function assertFile(node: object | null | undefined, opts?: object | null): void;
|
|
1973
|
+
declare function isFlow(node: object | null | undefined, opts?: object | null): node is Flow;
|
|
1974
|
+
declare function assertFlow(node: object | null | undefined, opts?: object | null): void;
|
|
1975
|
+
declare function isFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): node is FlowBaseAnnotation;
|
|
1976
|
+
declare function assertFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
1977
|
+
declare function isFlowDeclaration(node: object | null | undefined, opts?: object | null): node is FlowDeclaration;
|
|
1978
|
+
declare function assertFlowDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1979
|
+
declare function isFlowPredicate(node: object | null | undefined, opts?: object | null): node is FlowPredicate;
|
|
1980
|
+
declare function assertFlowPredicate(node: object | null | undefined, opts?: object | null): void;
|
|
1981
|
+
declare function isFlowType(node: object | null | undefined, opts?: object | null): node is FlowType;
|
|
1982
|
+
declare function assertFlowType(node: object | null | undefined, opts?: object | null): void;
|
|
1983
|
+
declare function isFor(node: object | null | undefined, opts?: object | null): node is For;
|
|
1984
|
+
declare function assertFor(node: object | null | undefined, opts?: object | null): void;
|
|
1985
|
+
declare function isForInStatement(node: object | null | undefined, opts?: object | null): node is ForInStatement;
|
|
1986
|
+
declare function assertForInStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1987
|
+
declare function isForOfStatement(node: object | null | undefined, opts?: object | null): node is ForOfStatement;
|
|
1988
|
+
declare function assertForOfStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1989
|
+
declare function isForStatement(node: object | null | undefined, opts?: object | null): node is ForStatement;
|
|
1990
|
+
declare function assertForStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1991
|
+
declare function isForXStatement(node: object | null | undefined, opts?: object | null): node is ForXStatement;
|
|
1992
|
+
declare function assertForXStatement(node: object | null | undefined, opts?: object | null): void;
|
|
1993
|
+
declare function isFunction(node: object | null | undefined, opts?: object | null): node is Function;
|
|
1994
|
+
declare function assertFunction(node: object | null | undefined, opts?: object | null): void;
|
|
1995
|
+
declare function isFunctionDeclaration(node: object | null | undefined, opts?: object | null): node is FunctionDeclaration;
|
|
1996
|
+
declare function assertFunctionDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
1997
|
+
declare function isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression;
|
|
1998
|
+
declare function assertFunctionExpression(node: object | null | undefined, opts?: object | null): void;
|
|
1999
|
+
declare function isFunctionParameter(node: object | null | undefined, opts?: object | null): node is FunctionParameter;
|
|
2000
|
+
declare function assertFunctionParameter(node: object | null | undefined, opts?: object | null): void;
|
|
2001
|
+
declare function isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent;
|
|
2002
|
+
declare function assertFunctionParent(node: object | null | undefined, opts?: object | null): void;
|
|
2003
|
+
declare function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation;
|
|
2004
|
+
declare function assertFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2005
|
+
declare function isFunctionTypeParam(node: object | null | undefined, opts?: object | null): node is FunctionTypeParam;
|
|
2006
|
+
declare function assertFunctionTypeParam(node: object | null | undefined, opts?: object | null): void;
|
|
2007
|
+
declare function isGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): node is GenericTypeAnnotation;
|
|
2008
|
+
declare function assertGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2009
|
+
declare function isIdentifier(node: object | null | undefined, opts?: object | null): node is Identifier;
|
|
2010
|
+
declare function assertIdentifier(node: object | null | undefined, opts?: object | null): void;
|
|
2011
|
+
declare function isIfStatement(node: object | null | undefined, opts?: object | null): node is IfStatement;
|
|
2012
|
+
declare function assertIfStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2013
|
+
declare function isImmutable(node: object | null | undefined, opts?: object | null): node is Immutable;
|
|
2014
|
+
declare function assertImmutable(node: object | null | undefined, opts?: object | null): void;
|
|
2015
|
+
declare function isImport(node: object | null | undefined, opts?: object | null): node is Import;
|
|
2016
|
+
declare function assertImport(node: object | null | undefined, opts?: object | null): void;
|
|
2017
|
+
declare function isImportAttribute(node: object | null | undefined, opts?: object | null): node is ImportAttribute;
|
|
2018
|
+
declare function assertImportAttribute(node: object | null | undefined, opts?: object | null): void;
|
|
2019
|
+
declare function isImportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportDeclaration;
|
|
2020
|
+
declare function assertImportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2021
|
+
declare function isImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ImportDefaultSpecifier;
|
|
2022
|
+
declare function assertImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void;
|
|
2023
|
+
declare function isImportExpression(node: object | null | undefined, opts?: object | null): node is ImportExpression;
|
|
2024
|
+
declare function assertImportExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2025
|
+
declare function isImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ImportNamespaceSpecifier;
|
|
2026
|
+
declare function assertImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void;
|
|
2027
|
+
declare function isImportOrExportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportOrExportDeclaration;
|
|
2028
|
+
declare function assertImportOrExportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2029
|
+
declare function isImportSpecifier(node: object | null | undefined, opts?: object | null): node is ImportSpecifier;
|
|
2030
|
+
declare function assertImportSpecifier(node: object | null | undefined, opts?: object | null): void;
|
|
2031
|
+
declare function isIndexedAccessType(node: object | null | undefined, opts?: object | null): node is IndexedAccessType;
|
|
2032
|
+
declare function assertIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
|
|
2033
|
+
declare function isInferredPredicate(node: object | null | undefined, opts?: object | null): node is InferredPredicate;
|
|
2034
|
+
declare function assertInferredPredicate(node: object | null | undefined, opts?: object | null): void;
|
|
2035
|
+
declare function isInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is InterfaceDeclaration;
|
|
2036
|
+
declare function assertInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2037
|
+
declare function isInterfaceExtends(node: object | null | undefined, opts?: object | null): node is InterfaceExtends;
|
|
2038
|
+
declare function assertInterfaceExtends(node: object | null | undefined, opts?: object | null): void;
|
|
2039
|
+
declare function isInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): node is InterfaceTypeAnnotation;
|
|
2040
|
+
declare function assertInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2041
|
+
declare function isInterpreterDirective(node: object | null | undefined, opts?: object | null): node is InterpreterDirective;
|
|
2042
|
+
declare function assertInterpreterDirective(node: object | null | undefined, opts?: object | null): void;
|
|
2043
|
+
declare function isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is IntersectionTypeAnnotation;
|
|
2044
|
+
declare function assertIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2045
|
+
declare function isJSX(node: object | null | undefined, opts?: object | null): node is JSX;
|
|
2046
|
+
declare function assertJSX(node: object | null | undefined, opts?: object | null): void;
|
|
2047
|
+
declare function isJSXAttribute(node: object | null | undefined, opts?: object | null): node is JSXAttribute;
|
|
2048
|
+
declare function assertJSXAttribute(node: object | null | undefined, opts?: object | null): void;
|
|
2049
|
+
declare function isJSXClosingElement(node: object | null | undefined, opts?: object | null): node is JSXClosingElement;
|
|
2050
|
+
declare function assertJSXClosingElement(node: object | null | undefined, opts?: object | null): void;
|
|
2051
|
+
declare function isJSXClosingFragment(node: object | null | undefined, opts?: object | null): node is JSXClosingFragment;
|
|
2052
|
+
declare function assertJSXClosingFragment(node: object | null | undefined, opts?: object | null): void;
|
|
2053
|
+
declare function isJSXElement(node: object | null | undefined, opts?: object | null): node is JSXElement;
|
|
2054
|
+
declare function assertJSXElement(node: object | null | undefined, opts?: object | null): void;
|
|
2055
|
+
declare function isJSXEmptyExpression(node: object | null | undefined, opts?: object | null): node is JSXEmptyExpression;
|
|
2056
|
+
declare function assertJSXEmptyExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2057
|
+
declare function isJSXExpressionContainer(node: object | null | undefined, opts?: object | null): node is JSXExpressionContainer;
|
|
2058
|
+
declare function assertJSXExpressionContainer(node: object | null | undefined, opts?: object | null): void;
|
|
2059
|
+
declare function isJSXFragment(node: object | null | undefined, opts?: object | null): node is JSXFragment;
|
|
2060
|
+
declare function assertJSXFragment(node: object | null | undefined, opts?: object | null): void;
|
|
2061
|
+
declare function isJSXIdentifier(node: object | null | undefined, opts?: object | null): node is JSXIdentifier;
|
|
2062
|
+
declare function assertJSXIdentifier(node: object | null | undefined, opts?: object | null): void;
|
|
2063
|
+
declare function isJSXMemberExpression(node: object | null | undefined, opts?: object | null): node is JSXMemberExpression;
|
|
2064
|
+
declare function assertJSXMemberExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2065
|
+
declare function isJSXNamespacedName(node: object | null | undefined, opts?: object | null): node is JSXNamespacedName;
|
|
2066
|
+
declare function assertJSXNamespacedName(node: object | null | undefined, opts?: object | null): void;
|
|
2067
|
+
declare function isJSXOpeningElement(node: object | null | undefined, opts?: object | null): node is JSXOpeningElement;
|
|
2068
|
+
declare function assertJSXOpeningElement(node: object | null | undefined, opts?: object | null): void;
|
|
2069
|
+
declare function isJSXOpeningFragment(node: object | null | undefined, opts?: object | null): node is JSXOpeningFragment;
|
|
2070
|
+
declare function assertJSXOpeningFragment(node: object | null | undefined, opts?: object | null): void;
|
|
2071
|
+
declare function isJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): node is JSXSpreadAttribute;
|
|
2072
|
+
declare function assertJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): void;
|
|
2073
|
+
declare function isJSXSpreadChild(node: object | null | undefined, opts?: object | null): node is JSXSpreadChild;
|
|
2074
|
+
declare function assertJSXSpreadChild(node: object | null | undefined, opts?: object | null): void;
|
|
2075
|
+
declare function isJSXText(node: object | null | undefined, opts?: object | null): node is JSXText;
|
|
2076
|
+
declare function assertJSXText(node: object | null | undefined, opts?: object | null): void;
|
|
2077
|
+
declare function isLVal(node: object | null | undefined, opts?: object | null): node is LVal;
|
|
2078
|
+
declare function assertLVal(node: object | null | undefined, opts?: object | null): void;
|
|
2079
|
+
declare function isLabeledStatement(node: object | null | undefined, opts?: object | null): node is LabeledStatement;
|
|
2080
|
+
declare function assertLabeledStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2081
|
+
declare function isLiteral(node: object | null | undefined, opts?: object | null): node is Literal;
|
|
2082
|
+
declare function assertLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2083
|
+
declare function isLogicalExpression(node: object | null | undefined, opts?: object | null): node is LogicalExpression;
|
|
2084
|
+
declare function assertLogicalExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2085
|
+
declare function isLoop(node: object | null | undefined, opts?: object | null): node is Loop;
|
|
2086
|
+
declare function assertLoop(node: object | null | undefined, opts?: object | null): void;
|
|
2087
|
+
declare function isMemberExpression(node: object | null | undefined, opts?: object | null): node is MemberExpression;
|
|
2088
|
+
declare function assertMemberExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2089
|
+
declare function isMetaProperty(node: object | null | undefined, opts?: object | null): node is MetaProperty;
|
|
2090
|
+
declare function assertMetaProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2091
|
+
declare function isMethod(node: object | null | undefined, opts?: object | null): node is Method;
|
|
2092
|
+
declare function assertMethod(node: object | null | undefined, opts?: object | null): void;
|
|
2093
|
+
declare function isMiscellaneous(node: object | null | undefined, opts?: object | null): node is Miscellaneous;
|
|
2094
|
+
declare function assertMiscellaneous(node: object | null | undefined, opts?: object | null): void;
|
|
2095
|
+
declare function isMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): node is MixedTypeAnnotation;
|
|
2096
|
+
declare function assertMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2097
|
+
declare function isModuleDeclaration(node: object | null | undefined, opts?: object | null): node is ModuleDeclaration;
|
|
2098
|
+
declare function assertModuleDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2099
|
+
declare function isModuleExpression(node: object | null | undefined, opts?: object | null): node is ModuleExpression;
|
|
2100
|
+
declare function assertModuleExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2101
|
+
declare function isModuleSpecifier(node: object | null | undefined, opts?: object | null): node is ModuleSpecifier;
|
|
2102
|
+
declare function assertModuleSpecifier(node: object | null | undefined, opts?: object | null): void;
|
|
2103
|
+
declare function isNewExpression(node: object | null | undefined, opts?: object | null): node is NewExpression;
|
|
2104
|
+
declare function assertNewExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2105
|
+
declare function isNoop(node: object | null | undefined, opts?: object | null): node is Noop;
|
|
2106
|
+
declare function assertNoop(node: object | null | undefined, opts?: object | null): void;
|
|
2107
|
+
declare function isNullLiteral(node: object | null | undefined, opts?: object | null): node is NullLiteral;
|
|
2108
|
+
declare function assertNullLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2109
|
+
declare function isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullLiteralTypeAnnotation;
|
|
2110
|
+
declare function assertNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2111
|
+
declare function isNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullableTypeAnnotation;
|
|
2112
|
+
declare function assertNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2113
|
+
/** @deprecated Use `isNumericLiteral` */
|
|
2114
|
+
declare function isNumberLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral;
|
|
2115
|
+
/** @deprecated Use `assertNumericLiteral` */
|
|
2116
|
+
declare function assertNumberLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2117
|
+
declare function isNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberLiteralTypeAnnotation;
|
|
2118
|
+
declare function assertNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2119
|
+
declare function isNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberTypeAnnotation;
|
|
2120
|
+
declare function assertNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2121
|
+
declare function isNumericLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral;
|
|
2122
|
+
declare function assertNumericLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2123
|
+
declare function isObjectExpression(node: object | null | undefined, opts?: object | null): node is ObjectExpression;
|
|
2124
|
+
declare function assertObjectExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2125
|
+
declare function isObjectMember(node: object | null | undefined, opts?: object | null): node is ObjectMember;
|
|
2126
|
+
declare function assertObjectMember(node: object | null | undefined, opts?: object | null): void;
|
|
2127
|
+
declare function isObjectMethod(node: object | null | undefined, opts?: object | null): node is ObjectMethod;
|
|
2128
|
+
declare function assertObjectMethod(node: object | null | undefined, opts?: object | null): void;
|
|
2129
|
+
declare function isObjectPattern(node: object | null | undefined, opts?: object | null): node is ObjectPattern;
|
|
2130
|
+
declare function assertObjectPattern(node: object | null | undefined, opts?: object | null): void;
|
|
2131
|
+
declare function isObjectProperty(node: object | null | undefined, opts?: object | null): node is ObjectProperty;
|
|
2132
|
+
declare function assertObjectProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2133
|
+
declare function isObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ObjectTypeAnnotation;
|
|
2134
|
+
declare function assertObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2135
|
+
declare function isObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeCallProperty;
|
|
2136
|
+
declare function assertObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2137
|
+
declare function isObjectTypeIndexer(node: object | null | undefined, opts?: object | null): node is ObjectTypeIndexer;
|
|
2138
|
+
declare function assertObjectTypeIndexer(node: object | null | undefined, opts?: object | null): void;
|
|
2139
|
+
declare function isObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): node is ObjectTypeInternalSlot;
|
|
2140
|
+
declare function assertObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): void;
|
|
2141
|
+
declare function isObjectTypeProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeProperty;
|
|
2142
|
+
declare function assertObjectTypeProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2143
|
+
declare function isObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeSpreadProperty;
|
|
2144
|
+
declare function assertObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2145
|
+
declare function isOpaqueType(node: object | null | undefined, opts?: object | null): node is OpaqueType;
|
|
2146
|
+
declare function assertOpaqueType(node: object | null | undefined, opts?: object | null): void;
|
|
2147
|
+
declare function isOptionalCallExpression(node: object | null | undefined, opts?: object | null): node is OptionalCallExpression;
|
|
2148
|
+
declare function assertOptionalCallExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2149
|
+
declare function isOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): node is OptionalIndexedAccessType;
|
|
2150
|
+
declare function assertOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
|
|
2151
|
+
declare function isOptionalMemberExpression(node: object | null | undefined, opts?: object | null): node is OptionalMemberExpression;
|
|
2152
|
+
declare function assertOptionalMemberExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2153
|
+
declare function isParenthesizedExpression(node: object | null | undefined, opts?: object | null): node is ParenthesizedExpression;
|
|
2154
|
+
declare function assertParenthesizedExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2155
|
+
declare function isPattern(node: object | null | undefined, opts?: object | null): node is Pattern;
|
|
2156
|
+
declare function assertPattern(node: object | null | undefined, opts?: object | null): void;
|
|
2157
|
+
declare function isPatternLike(node: object | null | undefined, opts?: object | null): node is PatternLike;
|
|
2158
|
+
declare function assertPatternLike(node: object | null | undefined, opts?: object | null): void;
|
|
2159
|
+
declare function isPipelineBareFunction(node: object | null | undefined, opts?: object | null): node is PipelineBareFunction;
|
|
2160
|
+
declare function assertPipelineBareFunction(node: object | null | undefined, opts?: object | null): void;
|
|
2161
|
+
declare function isPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): node is PipelinePrimaryTopicReference;
|
|
2162
|
+
declare function assertPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): void;
|
|
2163
|
+
declare function isPipelineTopicExpression(node: object | null | undefined, opts?: object | null): node is PipelineTopicExpression;
|
|
2164
|
+
declare function assertPipelineTopicExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2165
|
+
declare function isPlaceholder(node: object | null | undefined, opts?: object | null): node is Placeholder;
|
|
2166
|
+
declare function assertPlaceholder(node: object | null | undefined, opts?: object | null): void;
|
|
2167
|
+
declare function isPrivate(node: object | null | undefined, opts?: object | null): node is Private;
|
|
2168
|
+
declare function assertPrivate(node: object | null | undefined, opts?: object | null): void;
|
|
2169
|
+
declare function isPrivateName(node: object | null | undefined, opts?: object | null): node is PrivateName;
|
|
2170
|
+
declare function assertPrivateName(node: object | null | undefined, opts?: object | null): void;
|
|
2171
|
+
declare function isProgram(node: object | null | undefined, opts?: object | null): node is Program;
|
|
2172
|
+
declare function assertProgram(node: object | null | undefined, opts?: object | null): void;
|
|
2173
|
+
declare function isProperty(node: object | null | undefined, opts?: object | null): node is Property;
|
|
2174
|
+
declare function assertProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2175
|
+
declare function isPureish(node: object | null | undefined, opts?: object | null): node is Pureish;
|
|
2176
|
+
declare function assertPureish(node: object | null | undefined, opts?: object | null): void;
|
|
2177
|
+
declare function isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): node is QualifiedTypeIdentifier;
|
|
2178
|
+
declare function assertQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): void;
|
|
2179
|
+
declare function isRecordExpression(node: object | null | undefined, opts?: object | null): node is RecordExpression;
|
|
2180
|
+
declare function assertRecordExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2181
|
+
declare function isRegExpLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral;
|
|
2182
|
+
declare function assertRegExpLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2183
|
+
/** @deprecated Use `isRegExpLiteral` */
|
|
2184
|
+
declare function isRegexLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral;
|
|
2185
|
+
/** @deprecated Use `assertRegExpLiteral` */
|
|
2186
|
+
declare function assertRegexLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2187
|
+
declare function isRestElement(node: object | null | undefined, opts?: object | null): node is RestElement;
|
|
2188
|
+
declare function assertRestElement(node: object | null | undefined, opts?: object | null): void;
|
|
2189
|
+
/** @deprecated Use `isRestElement` */
|
|
2190
|
+
declare function isRestProperty(node: object | null | undefined, opts?: object | null): node is RestElement;
|
|
2191
|
+
/** @deprecated Use `assertRestElement` */
|
|
2192
|
+
declare function assertRestProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2193
|
+
declare function isReturnStatement(node: object | null | undefined, opts?: object | null): node is ReturnStatement;
|
|
2194
|
+
declare function assertReturnStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2195
|
+
declare function isScopable(node: object | null | undefined, opts?: object | null): node is Scopable;
|
|
2196
|
+
declare function assertScopable(node: object | null | undefined, opts?: object | null): void;
|
|
2197
|
+
declare function isSequenceExpression(node: object | null | undefined, opts?: object | null): node is SequenceExpression;
|
|
2198
|
+
declare function assertSequenceExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2199
|
+
declare function isSpreadElement(node: object | null | undefined, opts?: object | null): node is SpreadElement;
|
|
2200
|
+
declare function assertSpreadElement(node: object | null | undefined, opts?: object | null): void;
|
|
2201
|
+
/** @deprecated Use `isSpreadElement` */
|
|
2202
|
+
declare function isSpreadProperty(node: object | null | undefined, opts?: object | null): node is SpreadElement;
|
|
2203
|
+
/** @deprecated Use `assertSpreadElement` */
|
|
2204
|
+
declare function assertSpreadProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2205
|
+
declare function isStandardized(node: object | null | undefined, opts?: object | null): node is Standardized;
|
|
2206
|
+
declare function assertStandardized(node: object | null | undefined, opts?: object | null): void;
|
|
2207
|
+
declare function isStatement(node: object | null | undefined, opts?: object | null): node is Statement;
|
|
2208
|
+
declare function assertStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2209
|
+
declare function isStaticBlock(node: object | null | undefined, opts?: object | null): node is StaticBlock;
|
|
2210
|
+
declare function assertStaticBlock(node: object | null | undefined, opts?: object | null): void;
|
|
2211
|
+
declare function isStringLiteral(node: object | null | undefined, opts?: object | null): node is StringLiteral;
|
|
2212
|
+
declare function assertStringLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2213
|
+
declare function isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringLiteralTypeAnnotation;
|
|
2214
|
+
declare function assertStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2215
|
+
declare function isStringTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringTypeAnnotation;
|
|
2216
|
+
declare function assertStringTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2217
|
+
declare function isSuper(node: object | null | undefined, opts?: object | null): node is Super;
|
|
2218
|
+
declare function assertSuper(node: object | null | undefined, opts?: object | null): void;
|
|
2219
|
+
declare function isSwitchCase(node: object | null | undefined, opts?: object | null): node is SwitchCase;
|
|
2220
|
+
declare function assertSwitchCase(node: object | null | undefined, opts?: object | null): void;
|
|
2221
|
+
declare function isSwitchStatement(node: object | null | undefined, opts?: object | null): node is SwitchStatement;
|
|
2222
|
+
declare function assertSwitchStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2223
|
+
declare function isSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): node is SymbolTypeAnnotation;
|
|
2224
|
+
declare function assertSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2225
|
+
declare function isTSAnyKeyword(node: object | null | undefined, opts?: object | null): node is TSAnyKeyword;
|
|
2226
|
+
declare function assertTSAnyKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2227
|
+
declare function isTSArrayType(node: object | null | undefined, opts?: object | null): node is TSArrayType;
|
|
2228
|
+
declare function assertTSArrayType(node: object | null | undefined, opts?: object | null): void;
|
|
2229
|
+
declare function isTSAsExpression(node: object | null | undefined, opts?: object | null): node is TSAsExpression;
|
|
2230
|
+
declare function assertTSAsExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2231
|
+
declare function isTSBaseType(node: object | null | undefined, opts?: object | null): node is TSBaseType;
|
|
2232
|
+
declare function assertTSBaseType(node: object | null | undefined, opts?: object | null): void;
|
|
2233
|
+
declare function isTSBigIntKeyword(node: object | null | undefined, opts?: object | null): node is TSBigIntKeyword;
|
|
2234
|
+
declare function assertTSBigIntKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2235
|
+
declare function isTSBooleanKeyword(node: object | null | undefined, opts?: object | null): node is TSBooleanKeyword;
|
|
2236
|
+
declare function assertTSBooleanKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2237
|
+
declare function isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSCallSignatureDeclaration;
|
|
2238
|
+
declare function assertTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2239
|
+
declare function isTSConditionalType(node: object | null | undefined, opts?: object | null): node is TSConditionalType;
|
|
2240
|
+
declare function assertTSConditionalType(node: object | null | undefined, opts?: object | null): void;
|
|
2241
|
+
declare function isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSConstructSignatureDeclaration;
|
|
2242
|
+
declare function assertTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2243
|
+
declare function isTSConstructorType(node: object | null | undefined, opts?: object | null): node is TSConstructorType;
|
|
2244
|
+
declare function assertTSConstructorType(node: object | null | undefined, opts?: object | null): void;
|
|
2245
|
+
declare function isTSDeclareFunction(node: object | null | undefined, opts?: object | null): node is TSDeclareFunction;
|
|
2246
|
+
declare function assertTSDeclareFunction(node: object | null | undefined, opts?: object | null): void;
|
|
2247
|
+
declare function isTSDeclareMethod(node: object | null | undefined, opts?: object | null): node is TSDeclareMethod;
|
|
2248
|
+
declare function assertTSDeclareMethod(node: object | null | undefined, opts?: object | null): void;
|
|
2249
|
+
declare function isTSEntityName(node: object | null | undefined, opts?: object | null): node is TSEntityName;
|
|
2250
|
+
declare function assertTSEntityName(node: object | null | undefined, opts?: object | null): void;
|
|
2251
|
+
declare function isTSEnumBody(node: object | null | undefined, opts?: object | null): node is TSEnumBody;
|
|
2252
|
+
declare function assertTSEnumBody(node: object | null | undefined, opts?: object | null): void;
|
|
2253
|
+
declare function isTSEnumDeclaration(node: object | null | undefined, opts?: object | null): node is TSEnumDeclaration;
|
|
2254
|
+
declare function assertTSEnumDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2255
|
+
declare function isTSEnumMember(node: object | null | undefined, opts?: object | null): node is TSEnumMember;
|
|
2256
|
+
declare function assertTSEnumMember(node: object | null | undefined, opts?: object | null): void;
|
|
2257
|
+
declare function isTSExportAssignment(node: object | null | undefined, opts?: object | null): node is TSExportAssignment;
|
|
2258
|
+
declare function assertTSExportAssignment(node: object | null | undefined, opts?: object | null): void;
|
|
2259
|
+
declare function isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): node is TSExpressionWithTypeArguments;
|
|
2260
|
+
declare function assertTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): void;
|
|
2261
|
+
declare function isTSExternalModuleReference(node: object | null | undefined, opts?: object | null): node is TSExternalModuleReference;
|
|
2262
|
+
declare function assertTSExternalModuleReference(node: object | null | undefined, opts?: object | null): void;
|
|
2263
|
+
declare function isTSFunctionType(node: object | null | undefined, opts?: object | null): node is TSFunctionType;
|
|
2264
|
+
declare function assertTSFunctionType(node: object | null | undefined, opts?: object | null): void;
|
|
2265
|
+
declare function isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): node is TSImportEqualsDeclaration;
|
|
2266
|
+
declare function assertTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2267
|
+
declare function isTSImportType(node: object | null | undefined, opts?: object | null): node is TSImportType;
|
|
2268
|
+
declare function assertTSImportType(node: object | null | undefined, opts?: object | null): void;
|
|
2269
|
+
declare function isTSIndexSignature(node: object | null | undefined, opts?: object | null): node is TSIndexSignature;
|
|
2270
|
+
declare function assertTSIndexSignature(node: object | null | undefined, opts?: object | null): void;
|
|
2271
|
+
declare function isTSIndexedAccessType(node: object | null | undefined, opts?: object | null): node is TSIndexedAccessType;
|
|
2272
|
+
declare function assertTSIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
|
|
2273
|
+
declare function isTSInferType(node: object | null | undefined, opts?: object | null): node is TSInferType;
|
|
2274
|
+
declare function assertTSInferType(node: object | null | undefined, opts?: object | null): void;
|
|
2275
|
+
declare function isTSInstantiationExpression(node: object | null | undefined, opts?: object | null): node is TSInstantiationExpression;
|
|
2276
|
+
declare function assertTSInstantiationExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2277
|
+
declare function isTSInterfaceBody(node: object | null | undefined, opts?: object | null): node is TSInterfaceBody;
|
|
2278
|
+
declare function assertTSInterfaceBody(node: object | null | undefined, opts?: object | null): void;
|
|
2279
|
+
declare function isTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is TSInterfaceDeclaration;
|
|
2280
|
+
declare function assertTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2281
|
+
declare function isTSIntersectionType(node: object | null | undefined, opts?: object | null): node is TSIntersectionType;
|
|
2282
|
+
declare function assertTSIntersectionType(node: object | null | undefined, opts?: object | null): void;
|
|
2283
|
+
declare function isTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): node is TSIntrinsicKeyword;
|
|
2284
|
+
declare function assertTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2285
|
+
declare function isTSLiteralType(node: object | null | undefined, opts?: object | null): node is TSLiteralType;
|
|
2286
|
+
declare function assertTSLiteralType(node: object | null | undefined, opts?: object | null): void;
|
|
2287
|
+
declare function isTSMappedType(node: object | null | undefined, opts?: object | null): node is TSMappedType;
|
|
2288
|
+
declare function assertTSMappedType(node: object | null | undefined, opts?: object | null): void;
|
|
2289
|
+
declare function isTSMethodSignature(node: object | null | undefined, opts?: object | null): node is TSMethodSignature;
|
|
2290
|
+
declare function assertTSMethodSignature(node: object | null | undefined, opts?: object | null): void;
|
|
2291
|
+
declare function isTSModuleBlock(node: object | null | undefined, opts?: object | null): node is TSModuleBlock;
|
|
2292
|
+
declare function assertTSModuleBlock(node: object | null | undefined, opts?: object | null): void;
|
|
2293
|
+
declare function isTSModuleDeclaration(node: object | null | undefined, opts?: object | null): node is TSModuleDeclaration;
|
|
2294
|
+
declare function assertTSModuleDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2295
|
+
declare function isTSNamedTupleMember(node: object | null | undefined, opts?: object | null): node is TSNamedTupleMember;
|
|
2296
|
+
declare function assertTSNamedTupleMember(node: object | null | undefined, opts?: object | null): void;
|
|
2297
|
+
declare function isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): node is TSNamespaceExportDeclaration;
|
|
2298
|
+
declare function assertTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2299
|
+
declare function isTSNeverKeyword(node: object | null | undefined, opts?: object | null): node is TSNeverKeyword;
|
|
2300
|
+
declare function assertTSNeverKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2301
|
+
declare function isTSNonNullExpression(node: object | null | undefined, opts?: object | null): node is TSNonNullExpression;
|
|
2302
|
+
declare function assertTSNonNullExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2303
|
+
declare function isTSNullKeyword(node: object | null | undefined, opts?: object | null): node is TSNullKeyword;
|
|
2304
|
+
declare function assertTSNullKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2305
|
+
declare function isTSNumberKeyword(node: object | null | undefined, opts?: object | null): node is TSNumberKeyword;
|
|
2306
|
+
declare function assertTSNumberKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2307
|
+
declare function isTSObjectKeyword(node: object | null | undefined, opts?: object | null): node is TSObjectKeyword;
|
|
2308
|
+
declare function assertTSObjectKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2309
|
+
declare function isTSOptionalType(node: object | null | undefined, opts?: object | null): node is TSOptionalType;
|
|
2310
|
+
declare function assertTSOptionalType(node: object | null | undefined, opts?: object | null): void;
|
|
2311
|
+
declare function isTSParameterProperty(node: object | null | undefined, opts?: object | null): node is TSParameterProperty;
|
|
2312
|
+
declare function assertTSParameterProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2313
|
+
declare function isTSParenthesizedType(node: object | null | undefined, opts?: object | null): node is TSParenthesizedType;
|
|
2314
|
+
declare function assertTSParenthesizedType(node: object | null | undefined, opts?: object | null): void;
|
|
2315
|
+
declare function isTSPropertySignature(node: object | null | undefined, opts?: object | null): node is TSPropertySignature;
|
|
2316
|
+
declare function assertTSPropertySignature(node: object | null | undefined, opts?: object | null): void;
|
|
2317
|
+
declare function isTSQualifiedName(node: object | null | undefined, opts?: object | null): node is TSQualifiedName;
|
|
2318
|
+
declare function assertTSQualifiedName(node: object | null | undefined, opts?: object | null): void;
|
|
2319
|
+
declare function isTSRestType(node: object | null | undefined, opts?: object | null): node is TSRestType;
|
|
2320
|
+
declare function assertTSRestType(node: object | null | undefined, opts?: object | null): void;
|
|
2321
|
+
declare function isTSSatisfiesExpression(node: object | null | undefined, opts?: object | null): node is TSSatisfiesExpression;
|
|
2322
|
+
declare function assertTSSatisfiesExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2323
|
+
declare function isTSStringKeyword(node: object | null | undefined, opts?: object | null): node is TSStringKeyword;
|
|
2324
|
+
declare function assertTSStringKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2325
|
+
declare function isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword;
|
|
2326
|
+
declare function assertTSSymbolKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2327
|
+
declare function isTSTemplateLiteralType(node: object | null | undefined, opts?: object | null): node is TSTemplateLiteralType;
|
|
2328
|
+
declare function assertTSTemplateLiteralType(node: object | null | undefined, opts?: object | null): void;
|
|
2329
|
+
declare function isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType;
|
|
2330
|
+
declare function assertTSThisType(node: object | null | undefined, opts?: object | null): void;
|
|
2331
|
+
declare function isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType;
|
|
2332
|
+
declare function assertTSTupleType(node: object | null | undefined, opts?: object | null): void;
|
|
2333
|
+
declare function isTSType(node: object | null | undefined, opts?: object | null): node is TSType;
|
|
2334
|
+
declare function assertTSType(node: object | null | undefined, opts?: object | null): void;
|
|
2335
|
+
declare function isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeAliasDeclaration;
|
|
2336
|
+
declare function assertTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2337
|
+
declare function isTSTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TSTypeAnnotation;
|
|
2338
|
+
declare function assertTSTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2339
|
+
declare function isTSTypeAssertion(node: object | null | undefined, opts?: object | null): node is TSTypeAssertion;
|
|
2340
|
+
declare function assertTSTypeAssertion(node: object | null | undefined, opts?: object | null): void;
|
|
2341
|
+
declare function isTSTypeElement(node: object | null | undefined, opts?: object | null): node is TSTypeElement;
|
|
2342
|
+
declare function assertTSTypeElement(node: object | null | undefined, opts?: object | null): void;
|
|
2343
|
+
declare function isTSTypeLiteral(node: object | null | undefined, opts?: object | null): node is TSTypeLiteral;
|
|
2344
|
+
declare function assertTSTypeLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2345
|
+
declare function isTSTypeOperator(node: object | null | undefined, opts?: object | null): node is TSTypeOperator;
|
|
2346
|
+
declare function assertTSTypeOperator(node: object | null | undefined, opts?: object | null): void;
|
|
2347
|
+
declare function isTSTypeParameter(node: object | null | undefined, opts?: object | null): node is TSTypeParameter;
|
|
2348
|
+
declare function assertTSTypeParameter(node: object | null | undefined, opts?: object | null): void;
|
|
2349
|
+
declare function isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeParameterDeclaration;
|
|
2350
|
+
declare function assertTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2351
|
+
declare function isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TSTypeParameterInstantiation;
|
|
2352
|
+
declare function assertTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void;
|
|
2353
|
+
declare function isTSTypePredicate(node: object | null | undefined, opts?: object | null): node is TSTypePredicate;
|
|
2354
|
+
declare function assertTSTypePredicate(node: object | null | undefined, opts?: object | null): void;
|
|
2355
|
+
declare function isTSTypeQuery(node: object | null | undefined, opts?: object | null): node is TSTypeQuery;
|
|
2356
|
+
declare function assertTSTypeQuery(node: object | null | undefined, opts?: object | null): void;
|
|
2357
|
+
declare function isTSTypeReference(node: object | null | undefined, opts?: object | null): node is TSTypeReference;
|
|
2358
|
+
declare function assertTSTypeReference(node: object | null | undefined, opts?: object | null): void;
|
|
2359
|
+
declare function isTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): node is TSUndefinedKeyword;
|
|
2360
|
+
declare function assertTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2361
|
+
declare function isTSUnionType(node: object | null | undefined, opts?: object | null): node is TSUnionType;
|
|
2362
|
+
declare function assertTSUnionType(node: object | null | undefined, opts?: object | null): void;
|
|
2363
|
+
declare function isTSUnknownKeyword(node: object | null | undefined, opts?: object | null): node is TSUnknownKeyword;
|
|
2364
|
+
declare function assertTSUnknownKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2365
|
+
declare function isTSVoidKeyword(node: object | null | undefined, opts?: object | null): node is TSVoidKeyword;
|
|
2366
|
+
declare function assertTSVoidKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2367
|
+
declare function isTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): node is TaggedTemplateExpression;
|
|
2368
|
+
declare function assertTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2369
|
+
declare function isTemplateElement(node: object | null | undefined, opts?: object | null): node is TemplateElement;
|
|
2370
|
+
declare function assertTemplateElement(node: object | null | undefined, opts?: object | null): void;
|
|
2371
|
+
declare function isTemplateLiteral(node: object | null | undefined, opts?: object | null): node is TemplateLiteral;
|
|
2372
|
+
declare function assertTemplateLiteral(node: object | null | undefined, opts?: object | null): void;
|
|
2373
|
+
declare function isTerminatorless(node: object | null | undefined, opts?: object | null): node is Terminatorless;
|
|
2374
|
+
declare function assertTerminatorless(node: object | null | undefined, opts?: object | null): void;
|
|
2375
|
+
declare function isThisExpression(node: object | null | undefined, opts?: object | null): node is ThisExpression;
|
|
2376
|
+
declare function assertThisExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2377
|
+
declare function isThisTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ThisTypeAnnotation;
|
|
2378
|
+
declare function assertThisTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2379
|
+
declare function isThrowStatement(node: object | null | undefined, opts?: object | null): node is ThrowStatement;
|
|
2380
|
+
declare function assertThrowStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2381
|
+
declare function isTopicReference(node: object | null | undefined, opts?: object | null): node is TopicReference;
|
|
2382
|
+
declare function assertTopicReference(node: object | null | undefined, opts?: object | null): void;
|
|
2383
|
+
declare function isTryStatement(node: object | null | undefined, opts?: object | null): node is TryStatement;
|
|
2384
|
+
declare function assertTryStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2385
|
+
declare function isTupleExpression(node: object | null | undefined, opts?: object | null): node is TupleExpression;
|
|
2386
|
+
declare function assertTupleExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2387
|
+
declare function isTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TupleTypeAnnotation;
|
|
2388
|
+
declare function assertTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2389
|
+
declare function isTypeAlias(node: object | null | undefined, opts?: object | null): node is TypeAlias;
|
|
2390
|
+
declare function assertTypeAlias(node: object | null | undefined, opts?: object | null): void;
|
|
2391
|
+
declare function isTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeAnnotation;
|
|
2392
|
+
declare function assertTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2393
|
+
declare function isTypeCastExpression(node: object | null | undefined, opts?: object | null): node is TypeCastExpression;
|
|
2394
|
+
declare function assertTypeCastExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2395
|
+
declare function isTypeParameter(node: object | null | undefined, opts?: object | null): node is TypeParameter;
|
|
2396
|
+
declare function assertTypeParameter(node: object | null | undefined, opts?: object | null): void;
|
|
2397
|
+
declare function isTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TypeParameterDeclaration;
|
|
2398
|
+
declare function assertTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2399
|
+
declare function isTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TypeParameterInstantiation;
|
|
2400
|
+
declare function assertTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void;
|
|
2401
|
+
declare function isTypeScript(node: object | null | undefined, opts?: object | null): node is TypeScript;
|
|
2402
|
+
declare function assertTypeScript(node: object | null | undefined, opts?: object | null): void;
|
|
2403
|
+
declare function isTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeofTypeAnnotation;
|
|
2404
|
+
declare function assertTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2405
|
+
declare function isUnaryExpression(node: object | null | undefined, opts?: object | null): node is UnaryExpression;
|
|
2406
|
+
declare function assertUnaryExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2407
|
+
declare function isUnaryLike(node: object | null | undefined, opts?: object | null): node is UnaryLike;
|
|
2408
|
+
declare function assertUnaryLike(node: object | null | undefined, opts?: object | null): void;
|
|
2409
|
+
declare function isUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is UnionTypeAnnotation;
|
|
2410
|
+
declare function assertUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2411
|
+
declare function isUpdateExpression(node: object | null | undefined, opts?: object | null): node is UpdateExpression;
|
|
2412
|
+
declare function assertUpdateExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2413
|
+
declare function isUserWhitespacable(node: object | null | undefined, opts?: object | null): node is UserWhitespacable;
|
|
2414
|
+
declare function assertUserWhitespacable(node: object | null | undefined, opts?: object | null): void;
|
|
2415
|
+
declare function isV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): node is V8IntrinsicIdentifier;
|
|
2416
|
+
declare function assertV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): void;
|
|
2417
|
+
declare function isVariableDeclaration(node: object | null | undefined, opts?: object | null): node is VariableDeclaration;
|
|
2418
|
+
declare function assertVariableDeclaration(node: object | null | undefined, opts?: object | null): void;
|
|
2419
|
+
declare function isVariableDeclarator(node: object | null | undefined, opts?: object | null): node is VariableDeclarator;
|
|
2420
|
+
declare function assertVariableDeclarator(node: object | null | undefined, opts?: object | null): void;
|
|
2421
|
+
declare function isVariance(node: object | null | undefined, opts?: object | null): node is Variance;
|
|
2422
|
+
declare function assertVariance(node: object | null | undefined, opts?: object | null): void;
|
|
2423
|
+
declare function isVoidPattern(node: object | null | undefined, opts?: object | null): node is VoidPattern;
|
|
2424
|
+
declare function assertVoidPattern(node: object | null | undefined, opts?: object | null): void;
|
|
2425
|
+
declare function isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation;
|
|
2426
|
+
declare function assertVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2427
|
+
declare function isWhile(node: object | null | undefined, opts?: object | null): node is While;
|
|
2428
|
+
declare function assertWhile(node: object | null | undefined, opts?: object | null): void;
|
|
2429
|
+
declare function isWhileStatement(node: object | null | undefined, opts?: object | null): node is WhileStatement;
|
|
2430
|
+
declare function assertWhileStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2431
|
+
declare function isWithStatement(node: object | null | undefined, opts?: object | null): node is WithStatement;
|
|
2432
|
+
declare function assertWithStatement(node: object | null | undefined, opts?: object | null): void;
|
|
2433
|
+
declare function isYieldExpression(node: object | null | undefined, opts?: object | null): node is YieldExpression;
|
|
2434
|
+
declare function assertYieldExpression(node: object | null | undefined, opts?: object | null): void;
|
|
2435
|
+
declare function assertNode(obj: any): void;
|
|
2436
|
+
declare function createTypeAnnotationBasedOnTypeof(type: 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol'): StringTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | BooleanTypeAnnotation | GenericTypeAnnotation;
|
|
2437
|
+
declare function createUnionTypeAnnotation<T extends FlowType>(types: [T]): T;
|
|
2438
|
+
declare function createFlowUnionType<T extends FlowType>(types: [T]): T;
|
|
2439
|
+
declare function createUnionTypeAnnotation(types: ReadonlyArray<FlowType>): UnionTypeAnnotation;
|
|
2440
|
+
declare function createFlowUnionType(types: ReadonlyArray<FlowType>): UnionTypeAnnotation;
|
|
2441
|
+
declare function buildChildren(node: {
|
|
2442
|
+
children: ReadonlyArray<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment | JSXEmptyExpression>;
|
|
2443
|
+
}): JSXElement['children'];
|
|
2444
|
+
declare function clone<T extends Node>(n: T): T;
|
|
2445
|
+
declare function cloneDeep<T extends Node>(n: T): T;
|
|
2446
|
+
declare function cloneDeepWithoutLoc<T extends Node>(n: T): T;
|
|
2447
|
+
declare function cloneNode<T extends Node>(n: T, deep?: boolean, withoutLoc?: boolean): T;
|
|
2448
|
+
declare function cloneWithoutLoc<T extends Node>(n: T): T;
|
|
2449
|
+
type CommentTypeShorthand = 'leading' | 'inner' | 'trailing';
|
|
2450
|
+
declare function addComment<T extends Node>(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T;
|
|
2451
|
+
declare function addComments<T extends Node>(node: T, type: CommentTypeShorthand, comments: ReadonlyArray<Comment>): T;
|
|
2452
|
+
declare function inheritInnerComments(node: Node, parent: Node): void;
|
|
2453
|
+
declare function inheritLeadingComments(node: Node, parent: Node): void;
|
|
2454
|
+
declare function inheritsComments<T extends Node>(node: T, parent: Node): void;
|
|
2455
|
+
declare function inheritTrailingComments(node: Node, parent: Node): void;
|
|
2456
|
+
declare function removeComments<T extends Node>(node: T): T;
|
|
2457
|
+
declare function ensureBlock(node: Extract<Node, {
|
|
2458
|
+
body: BlockStatement | Statement | Expression;
|
|
2459
|
+
}>): BlockStatement;
|
|
2460
|
+
declare function ensureBlock<K extends keyof Extract<Node, {
|
|
2461
|
+
body: BlockStatement | Statement | Expression;
|
|
2462
|
+
}> = 'body'>(node: Extract<Node, Record<K, BlockStatement | Statement | Expression>>, key: K): BlockStatement;
|
|
2463
|
+
declare function toBindingIdentifierName(name: {
|
|
2464
|
+
toString(): string;
|
|
2465
|
+
} | null | undefined): string;
|
|
2466
|
+
declare function toBlock(node: Statement | Expression, parent?: Function | null): BlockStatement;
|
|
2467
|
+
declare function toComputedKey<T extends Extract<Node, {
|
|
2468
|
+
computed: boolean | null;
|
|
2469
|
+
}>>(node: T, key?: Expression | Identifier): Expression;
|
|
2470
|
+
declare function toExpression(node: Function): FunctionExpression;
|
|
2471
|
+
declare function toExpression(node: Class): ClassExpression;
|
|
2472
|
+
declare function toExpression(node: ExpressionStatement | Expression | Class | Function): Expression;
|
|
2473
|
+
declare function toIdentifier(name: {
|
|
2474
|
+
toString(): string;
|
|
2475
|
+
} | null | undefined): string;
|
|
2476
|
+
declare function toKeyAlias(node: Method | Property, key?: Node): string;
|
|
2477
|
+
declare function toSequenceExpression(nodes: ReadonlyArray<Node>, scope: {
|
|
2478
|
+
push(value: {
|
|
2479
|
+
id: LVal;
|
|
2480
|
+
kind: 'var';
|
|
2481
|
+
init?: Expression;
|
|
2482
|
+
}): void;
|
|
2483
|
+
buildUndefinedNode(): Node;
|
|
2484
|
+
}): SequenceExpression | undefined;
|
|
2485
|
+
declare function toStatement(node: AssignmentExpression, ignore?: boolean): ExpressionStatement;
|
|
2486
|
+
declare function toStatement(node: Statement | AssignmentExpression, ignore?: boolean): Statement;
|
|
2487
|
+
declare function toStatement(node: Class, ignore: true): ClassDeclaration | undefined;
|
|
2488
|
+
declare function toStatement(node: Class, ignore?: boolean): ClassDeclaration;
|
|
2489
|
+
declare function toStatement(node: Function, ignore: true): FunctionDeclaration | undefined;
|
|
2490
|
+
declare function toStatement(node: Function, ignore?: boolean): FunctionDeclaration;
|
|
2491
|
+
declare function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore: true): Statement | undefined;
|
|
2492
|
+
declare function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore?: boolean): Statement;
|
|
2493
|
+
declare function valueToNode(value: undefined): Identifier;
|
|
2494
|
+
declare function valueToNode(value: boolean): BooleanLiteral;
|
|
2495
|
+
declare function valueToNode(value: null): NullLiteral;
|
|
2496
|
+
declare function valueToNode(value: string): StringLiteral;
|
|
2497
|
+
declare function valueToNode(value: number): NumericLiteral | BinaryExpression | UnaryExpression;
|
|
2498
|
+
declare function valueToNode(value: RegExp): RegExpLiteral;
|
|
2499
|
+
declare function valueToNode(value: ReadonlyArray<undefined | boolean | null | string | number | RegExp | object>): ArrayExpression;
|
|
2500
|
+
declare function valueToNode(value: object): ObjectExpression;
|
|
2501
|
+
declare function valueToNode(value: undefined | boolean | null | string | number | RegExp | object): Expression;
|
|
2502
|
+
declare function removeTypeDuplicates(types: ReadonlyArray<FlowType | false | null | undefined>): FlowType[];
|
|
2503
|
+
declare function appendToMemberExpression<T extends Pick<MemberExpression, 'object' | 'property'>>(member: T, append: MemberExpression['property'], computed?: boolean): T;
|
|
2504
|
+
declare function inherits<T extends Node | null | undefined>(child: T, parent: Node | null | undefined): T;
|
|
2505
|
+
declare function prependToMemberExpression<T extends Pick<MemberExpression, 'object' | 'property'>>(member: T, prepend: MemberExpression['object']): T;
|
|
2506
|
+
declare function removeProperties(n: Node, opts?: {
|
|
2507
|
+
preserveComments: boolean;
|
|
2508
|
+
} | null): void;
|
|
2509
|
+
declare function removePropertiesDeep<T extends Node>(n: T, opts?: {
|
|
2510
|
+
preserveComments: boolean;
|
|
2511
|
+
} | null): T;
|
|
2512
|
+
declare function getBindingIdentifiers(node: Node, duplicates: true, outerOnly?: boolean): Record<string, Array<Identifier>>;
|
|
2513
|
+
declare function getBindingIdentifiers(node: Node, duplicates?: false, outerOnly?: boolean): Record<string, Identifier>;
|
|
2514
|
+
declare function getBindingIdentifiers(node: Node, duplicates: boolean, outerOnly?: boolean): Record<string, Identifier | Array<Identifier>>;
|
|
2515
|
+
declare function getOuterBindingIdentifiers(node: Node, duplicates: true): Record<string, Array<Identifier>>;
|
|
2516
|
+
declare function getOuterBindingIdentifiers(node: Node, duplicates?: false): Record<string, Identifier>;
|
|
2517
|
+
declare function getOuterBindingIdentifiers(node: Node, duplicates: boolean): Record<string, Identifier | Array<Identifier>>;
|
|
2518
|
+
type TraversalAncestors = ReadonlyArray<{
|
|
2519
|
+
node: Node;
|
|
2520
|
+
key: string;
|
|
2521
|
+
index?: number;
|
|
2522
|
+
}>;
|
|
2523
|
+
type TraversalHandler<T> = (this: undefined, node: Node, parent: TraversalAncestors, type: T) => void;
|
|
2524
|
+
type TraversalHandlers<T> = {
|
|
2525
|
+
enter?: TraversalHandler<T>;
|
|
2526
|
+
exit?: TraversalHandler<T>;
|
|
2527
|
+
};
|
|
2528
|
+
declare function traverse<T>(n: Node, h: TraversalHandler<T> | TraversalHandlers<T>, state?: T): void;
|
|
2529
|
+
declare function traverseFast<T>(n: Node, h: TraversalHandler<T>, state?: T): void;
|
|
2530
|
+
declare function shallowEqual<T extends object>(actual: object, expected: T): actual is T;
|
|
2531
|
+
declare function buildMatchMemberExpression(match: string, allowPartial?: boolean): (node: Node | null | undefined) => node is MemberExpression;
|
|
2532
|
+
declare function is<T extends Node['type']>(type: T, n: Node | null | undefined, required?: undefined): n is Extract<Node, {
|
|
2533
|
+
type: T;
|
|
2534
|
+
}>;
|
|
2535
|
+
declare function is<T extends Node['type'], P extends Extract<Node, {
|
|
2536
|
+
type: T;
|
|
2537
|
+
}>>(type: T, n: Node | null | undefined, required: Partial<P>): n is P;
|
|
2538
|
+
declare function is<P extends Node>(type: string, n: Node | null | undefined, required: Partial<P>): n is P;
|
|
2539
|
+
declare function is(type: string, n: Node | null | undefined, required?: Partial<Node>): n is Node;
|
|
2540
|
+
declare function isBinding(node: Node, parent: Node, grandparent?: Node): boolean;
|
|
2541
|
+
declare function isBlockScoped(node: Node): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration;
|
|
2542
|
+
declare function isImmutable(node: Node): node is Immutable;
|
|
2543
|
+
declare function isLet(node: Node): node is VariableDeclaration;
|
|
2544
|
+
declare function isNode(node: object | null | undefined): node is Node;
|
|
2545
|
+
declare function isNodesEquivalent<T extends Partial<Node>>(a: T, b: any): b is T;
|
|
2546
|
+
declare function isNodesEquivalent(a: any, b: any): boolean;
|
|
2547
|
+
declare function isPlaceholderType(placeholderType: Node['type'], targetType: Node['type']): boolean;
|
|
2548
|
+
declare function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean;
|
|
2549
|
+
declare function isScope(node: Node, parent: Node): node is Scopable;
|
|
2550
|
+
declare function isSpecifierDefault(specifier: ModuleSpecifier): boolean;
|
|
2551
|
+
declare function isType<T extends Node['type']>(nodetype: string, targetType: T): nodetype is T;
|
|
2552
|
+
declare function isType(nodetype: string | null | undefined, targetType: string): boolean;
|
|
2553
|
+
declare function isValidES3Identifier(name: string): boolean;
|
|
2554
|
+
declare function isValidIdentifier(name: string): boolean;
|
|
2555
|
+
declare function isVar(node: Node): node is VariableDeclaration;
|
|
2556
|
+
declare function matchesPattern(node: Node | null | undefined, match: string | ReadonlyArray<string>, allowPartial?: boolean): node is MemberExpression;
|
|
2557
|
+
declare function validate<T extends Node, K extends keyof T>(n: Node | null | undefined, key: K, value: T[K]): void;
|
|
2558
|
+
declare function validate(n: Node, key: string, value: any): void;
|
|
2559
|
+
//#endregion
|
|
2560
|
+
//#region src/plugin/index.d.ts
|
|
2561
|
+
type PluginOptions = {
|
|
2562
|
+
/** Override the filename baked into each object. Defaults to basename(state.filename). */filename?: string;
|
|
2563
|
+
};
|
|
2564
|
+
type BabelApi = {
|
|
2565
|
+
types: typeof index_legacy_d_exports;
|
|
2566
|
+
};
|
|
2567
|
+
declare const plugin: ({
|
|
2568
|
+
types: t
|
|
2569
|
+
}: BabelApi) => PluginObj<PluginPass>;
|
|
2570
|
+
//#endregion
|
|
2571
|
+
export { PluginOptions, plugin as default };
|