@nuxt/webpack-builder 3.20.2 → 3.21.1
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 +5 -3
- package/dist/THIRD-PARTY-LICENSES.md +3847 -0
- package/dist/_chunks/libs/@babel/parser.d.mts +1536 -0
- package/dist/_chunks/libs/@jridgewell/trace-mapping.d.mts +82 -0
- package/dist/_chunks/libs/@types/estree.d.mts +525 -0
- package/dist/_chunks/libs/@types/pug.d.mts +123 -0
- package/dist/_chunks/libs/@unhead/vue.d.mts +1096 -0
- package/dist/_chunks/libs/@vitejs/plugin-vue-jsx.d.mts +5297 -0
- package/dist/_chunks/libs/@vitejs/plugin-vue.d.mts +83 -0
- package/dist/_chunks/libs/@volar/language-core.d.mts +56 -0
- package/dist/_chunks/libs/@volar/source-map.d.mts +10 -0
- package/dist/_chunks/libs/@vue/compiler-core.d.mts +1213 -0
- package/dist/_chunks/libs/@vue/compiler-dom.d.mts +45 -0
- package/dist/_chunks/libs/@vue/language-core.d.mts +11387 -0
- package/dist/_chunks/libs/c12.d.mts +147 -0
- package/dist/_chunks/libs/compatx.d.mts +47 -0
- package/dist/_chunks/libs/h3.d.mts +45 -0
- package/dist/_chunks/libs/ofetch.d.mts +870 -0
- package/dist/_chunks/libs/open.d.mts +1 -0
- package/dist/_chunks/libs/oxc-transform.d.mts +422 -0
- package/dist/_chunks/libs/pkg-types.d.mts +23 -0
- package/dist/_chunks/libs/rollup-plugin-visualizer.d.mts +90 -0
- package/dist/_chunks/libs/scule.d.mts +15 -0
- package/dist/_chunks/libs/unctx.d.mts +28 -0
- package/dist/_chunks/libs/unimport.d.mts +386 -0
- package/dist/_chunks/libs/untyped.d.mts +44 -0
- package/dist/_chunks/libs/vue-router.d.mts +1413 -0
- package/dist/_chunks/rolldown-runtime.mjs +12 -0
- package/dist/index.d.mts +3150 -4
- package/dist/index.mjs +1310 -1155
- package/dist/loaders/vue-module-identifier.mjs +11 -0
- package/package.json +31 -27
- package/dist/index.d.ts +0 -5
|
@@ -0,0 +1,1536 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@babel+types@7.29.0/node_modules/@babel/types/lib/index-legacy.d.ts
|
|
2
|
+
// NOTE: This file is autogenerated. Do not modify.
|
|
3
|
+
// See packages/babel-types/scripts/generators/typescript-legacy.ts for script used.
|
|
4
|
+
interface BaseComment {
|
|
5
|
+
value: string;
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
loc: SourceLocation;
|
|
9
|
+
type: "CommentBlock" | "CommentLine";
|
|
10
|
+
}
|
|
11
|
+
interface CommentBlock extends BaseComment {
|
|
12
|
+
type: "CommentBlock";
|
|
13
|
+
}
|
|
14
|
+
interface CommentLine extends BaseComment {
|
|
15
|
+
type: "CommentLine";
|
|
16
|
+
}
|
|
17
|
+
type Comment = CommentBlock | CommentLine;
|
|
18
|
+
interface SourceLocation {
|
|
19
|
+
start: {
|
|
20
|
+
line: number;
|
|
21
|
+
column: number;
|
|
22
|
+
};
|
|
23
|
+
end: {
|
|
24
|
+
line: number;
|
|
25
|
+
column: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
interface BaseNode {
|
|
29
|
+
leadingComments: ReadonlyArray<Comment> | null;
|
|
30
|
+
innerComments: ReadonlyArray<Comment> | null;
|
|
31
|
+
trailingComments: ReadonlyArray<Comment> | null;
|
|
32
|
+
start: number | null;
|
|
33
|
+
end: number | null;
|
|
34
|
+
loc: SourceLocation | null;
|
|
35
|
+
type: Node["type"];
|
|
36
|
+
extra?: Record<string, unknown>;
|
|
37
|
+
}
|
|
38
|
+
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;
|
|
39
|
+
interface ArrayExpression extends BaseNode {
|
|
40
|
+
type: "ArrayExpression";
|
|
41
|
+
elements: (null | Expression | SpreadElement)[];
|
|
42
|
+
}
|
|
43
|
+
interface AssignmentExpression extends BaseNode {
|
|
44
|
+
type: "AssignmentExpression";
|
|
45
|
+
operator: string;
|
|
46
|
+
left: LVal | OptionalMemberExpression;
|
|
47
|
+
right: Expression;
|
|
48
|
+
}
|
|
49
|
+
interface BinaryExpression extends BaseNode {
|
|
50
|
+
type: "BinaryExpression";
|
|
51
|
+
operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=" | "|>";
|
|
52
|
+
left: Expression | PrivateName;
|
|
53
|
+
right: Expression;
|
|
54
|
+
}
|
|
55
|
+
interface InterpreterDirective extends BaseNode {
|
|
56
|
+
type: "InterpreterDirective";
|
|
57
|
+
value: string;
|
|
58
|
+
}
|
|
59
|
+
interface Directive extends BaseNode {
|
|
60
|
+
type: "Directive";
|
|
61
|
+
value: DirectiveLiteral;
|
|
62
|
+
}
|
|
63
|
+
interface DirectiveLiteral extends BaseNode {
|
|
64
|
+
type: "DirectiveLiteral";
|
|
65
|
+
value: string;
|
|
66
|
+
}
|
|
67
|
+
interface BlockStatement extends BaseNode {
|
|
68
|
+
type: "BlockStatement";
|
|
69
|
+
body: Statement[];
|
|
70
|
+
directives: Directive[];
|
|
71
|
+
}
|
|
72
|
+
interface BreakStatement extends BaseNode {
|
|
73
|
+
type: "BreakStatement";
|
|
74
|
+
label: Identifier | null;
|
|
75
|
+
}
|
|
76
|
+
interface CallExpression extends BaseNode {
|
|
77
|
+
type: "CallExpression";
|
|
78
|
+
callee: Expression | Super | V8IntrinsicIdentifier;
|
|
79
|
+
arguments: (Expression | SpreadElement | ArgumentPlaceholder)[];
|
|
80
|
+
optional: boolean | null;
|
|
81
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
82
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
83
|
+
}
|
|
84
|
+
interface CatchClause extends BaseNode {
|
|
85
|
+
type: "CatchClause";
|
|
86
|
+
param: Identifier | ArrayPattern | ObjectPattern | null;
|
|
87
|
+
body: BlockStatement;
|
|
88
|
+
}
|
|
89
|
+
interface ConditionalExpression extends BaseNode {
|
|
90
|
+
type: "ConditionalExpression";
|
|
91
|
+
test: Expression;
|
|
92
|
+
consequent: Expression;
|
|
93
|
+
alternate: Expression;
|
|
94
|
+
}
|
|
95
|
+
interface ContinueStatement extends BaseNode {
|
|
96
|
+
type: "ContinueStatement";
|
|
97
|
+
label: Identifier | null;
|
|
98
|
+
}
|
|
99
|
+
interface DebuggerStatement extends BaseNode {
|
|
100
|
+
type: "DebuggerStatement";
|
|
101
|
+
}
|
|
102
|
+
interface DoWhileStatement extends BaseNode {
|
|
103
|
+
type: "DoWhileStatement";
|
|
104
|
+
test: Expression;
|
|
105
|
+
body: Statement;
|
|
106
|
+
}
|
|
107
|
+
interface EmptyStatement extends BaseNode {
|
|
108
|
+
type: "EmptyStatement";
|
|
109
|
+
}
|
|
110
|
+
interface ExpressionStatement extends BaseNode {
|
|
111
|
+
type: "ExpressionStatement";
|
|
112
|
+
expression: Expression;
|
|
113
|
+
}
|
|
114
|
+
interface File extends BaseNode {
|
|
115
|
+
type: "File";
|
|
116
|
+
program: Program;
|
|
117
|
+
comments: (CommentBlock | CommentLine)[] | null;
|
|
118
|
+
tokens: any[] | null;
|
|
119
|
+
}
|
|
120
|
+
interface ForInStatement extends BaseNode {
|
|
121
|
+
type: "ForInStatement";
|
|
122
|
+
left: VariableDeclaration | LVal;
|
|
123
|
+
right: Expression;
|
|
124
|
+
body: Statement;
|
|
125
|
+
}
|
|
126
|
+
interface ForStatement extends BaseNode {
|
|
127
|
+
type: "ForStatement";
|
|
128
|
+
init: VariableDeclaration | Expression | null;
|
|
129
|
+
test: Expression | null;
|
|
130
|
+
update: Expression | null;
|
|
131
|
+
body: Statement;
|
|
132
|
+
}
|
|
133
|
+
interface FunctionDeclaration extends BaseNode {
|
|
134
|
+
type: "FunctionDeclaration";
|
|
135
|
+
id: Identifier | null;
|
|
136
|
+
params: FunctionParameter[];
|
|
137
|
+
body: BlockStatement;
|
|
138
|
+
generator: boolean;
|
|
139
|
+
async: boolean;
|
|
140
|
+
declare: boolean | null;
|
|
141
|
+
predicate: DeclaredPredicate | InferredPredicate | null;
|
|
142
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
143
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
144
|
+
}
|
|
145
|
+
interface FunctionExpression extends BaseNode {
|
|
146
|
+
type: "FunctionExpression";
|
|
147
|
+
id: Identifier | null;
|
|
148
|
+
params: FunctionParameter[];
|
|
149
|
+
body: BlockStatement;
|
|
150
|
+
generator: boolean;
|
|
151
|
+
async: boolean;
|
|
152
|
+
predicate: DeclaredPredicate | InferredPredicate | null;
|
|
153
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
154
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
155
|
+
}
|
|
156
|
+
interface Identifier extends BaseNode {
|
|
157
|
+
type: "Identifier";
|
|
158
|
+
name: string;
|
|
159
|
+
decorators: Decorator[] | null;
|
|
160
|
+
optional: boolean | null;
|
|
161
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
162
|
+
}
|
|
163
|
+
interface IfStatement extends BaseNode {
|
|
164
|
+
type: "IfStatement";
|
|
165
|
+
test: Expression;
|
|
166
|
+
consequent: Statement;
|
|
167
|
+
alternate: Statement | null;
|
|
168
|
+
}
|
|
169
|
+
interface LabeledStatement extends BaseNode {
|
|
170
|
+
type: "LabeledStatement";
|
|
171
|
+
label: Identifier;
|
|
172
|
+
body: Statement;
|
|
173
|
+
}
|
|
174
|
+
interface StringLiteral extends BaseNode {
|
|
175
|
+
type: "StringLiteral";
|
|
176
|
+
value: string;
|
|
177
|
+
}
|
|
178
|
+
interface NumericLiteral extends BaseNode {
|
|
179
|
+
type: "NumericLiteral";
|
|
180
|
+
value: number;
|
|
181
|
+
}
|
|
182
|
+
interface NullLiteral extends BaseNode {
|
|
183
|
+
type: "NullLiteral";
|
|
184
|
+
}
|
|
185
|
+
interface BooleanLiteral extends BaseNode {
|
|
186
|
+
type: "BooleanLiteral";
|
|
187
|
+
value: boolean;
|
|
188
|
+
}
|
|
189
|
+
interface RegExpLiteral extends BaseNode {
|
|
190
|
+
type: "RegExpLiteral";
|
|
191
|
+
pattern: string;
|
|
192
|
+
flags: string;
|
|
193
|
+
}
|
|
194
|
+
interface LogicalExpression extends BaseNode {
|
|
195
|
+
type: "LogicalExpression";
|
|
196
|
+
operator: "||" | "&&" | "??";
|
|
197
|
+
left: Expression;
|
|
198
|
+
right: Expression;
|
|
199
|
+
}
|
|
200
|
+
interface MemberExpression extends BaseNode {
|
|
201
|
+
type: "MemberExpression";
|
|
202
|
+
object: Expression | Super;
|
|
203
|
+
property: Expression | Identifier | PrivateName;
|
|
204
|
+
computed: boolean;
|
|
205
|
+
optional: boolean | null;
|
|
206
|
+
}
|
|
207
|
+
interface NewExpression extends BaseNode {
|
|
208
|
+
type: "NewExpression";
|
|
209
|
+
callee: Expression | Super | V8IntrinsicIdentifier;
|
|
210
|
+
arguments: (Expression | SpreadElement | ArgumentPlaceholder)[];
|
|
211
|
+
optional: boolean | null;
|
|
212
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
213
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
214
|
+
}
|
|
215
|
+
interface Program extends BaseNode {
|
|
216
|
+
type: "Program";
|
|
217
|
+
body: Statement[];
|
|
218
|
+
directives: Directive[];
|
|
219
|
+
sourceType: "script" | "module";
|
|
220
|
+
interpreter: InterpreterDirective | null;
|
|
221
|
+
}
|
|
222
|
+
interface ObjectExpression extends BaseNode {
|
|
223
|
+
type: "ObjectExpression";
|
|
224
|
+
properties: (ObjectMethod | ObjectProperty | SpreadElement)[];
|
|
225
|
+
}
|
|
226
|
+
interface ObjectMethod extends BaseNode {
|
|
227
|
+
type: "ObjectMethod";
|
|
228
|
+
kind: "method" | "get" | "set";
|
|
229
|
+
key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral;
|
|
230
|
+
params: FunctionParameter[];
|
|
231
|
+
body: BlockStatement;
|
|
232
|
+
computed: boolean;
|
|
233
|
+
generator: boolean;
|
|
234
|
+
async: boolean;
|
|
235
|
+
decorators: Decorator[] | null;
|
|
236
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
237
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
238
|
+
}
|
|
239
|
+
interface ObjectProperty extends BaseNode {
|
|
240
|
+
type: "ObjectProperty";
|
|
241
|
+
key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | DecimalLiteral | PrivateName;
|
|
242
|
+
value: Expression | PatternLike;
|
|
243
|
+
computed: boolean;
|
|
244
|
+
shorthand: boolean;
|
|
245
|
+
decorators: Decorator[] | null;
|
|
246
|
+
}
|
|
247
|
+
interface RestElement extends BaseNode {
|
|
248
|
+
type: "RestElement";
|
|
249
|
+
argument: Identifier | ArrayPattern | ObjectPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | RestElement | AssignmentPattern;
|
|
250
|
+
decorators: Decorator[] | null;
|
|
251
|
+
optional: boolean | null;
|
|
252
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
253
|
+
}
|
|
254
|
+
interface ReturnStatement extends BaseNode {
|
|
255
|
+
type: "ReturnStatement";
|
|
256
|
+
argument: Expression | null;
|
|
257
|
+
}
|
|
258
|
+
interface SequenceExpression extends BaseNode {
|
|
259
|
+
type: "SequenceExpression";
|
|
260
|
+
expressions: Expression[];
|
|
261
|
+
}
|
|
262
|
+
interface ParenthesizedExpression extends BaseNode {
|
|
263
|
+
type: "ParenthesizedExpression";
|
|
264
|
+
expression: Expression;
|
|
265
|
+
}
|
|
266
|
+
interface SwitchCase extends BaseNode {
|
|
267
|
+
type: "SwitchCase";
|
|
268
|
+
test: Expression | null;
|
|
269
|
+
consequent: Statement[];
|
|
270
|
+
}
|
|
271
|
+
interface SwitchStatement extends BaseNode {
|
|
272
|
+
type: "SwitchStatement";
|
|
273
|
+
discriminant: Expression;
|
|
274
|
+
cases: SwitchCase[];
|
|
275
|
+
}
|
|
276
|
+
interface ThisExpression extends BaseNode {
|
|
277
|
+
type: "ThisExpression";
|
|
278
|
+
}
|
|
279
|
+
interface ThrowStatement extends BaseNode {
|
|
280
|
+
type: "ThrowStatement";
|
|
281
|
+
argument: Expression;
|
|
282
|
+
}
|
|
283
|
+
interface TryStatement extends BaseNode {
|
|
284
|
+
type: "TryStatement";
|
|
285
|
+
block: BlockStatement;
|
|
286
|
+
handler: CatchClause | null;
|
|
287
|
+
finalizer: BlockStatement | null;
|
|
288
|
+
}
|
|
289
|
+
interface UnaryExpression extends BaseNode {
|
|
290
|
+
type: "UnaryExpression";
|
|
291
|
+
operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
|
|
292
|
+
argument: Expression;
|
|
293
|
+
prefix: boolean;
|
|
294
|
+
}
|
|
295
|
+
interface UpdateExpression extends BaseNode {
|
|
296
|
+
type: "UpdateExpression";
|
|
297
|
+
operator: "++" | "--";
|
|
298
|
+
argument: Expression;
|
|
299
|
+
prefix: boolean;
|
|
300
|
+
}
|
|
301
|
+
interface VariableDeclaration extends BaseNode {
|
|
302
|
+
type: "VariableDeclaration";
|
|
303
|
+
kind: "var" | "let" | "const" | "using" | "await using";
|
|
304
|
+
declarations: VariableDeclarator[];
|
|
305
|
+
declare: boolean | null;
|
|
306
|
+
}
|
|
307
|
+
interface VariableDeclarator extends BaseNode {
|
|
308
|
+
type: "VariableDeclarator";
|
|
309
|
+
id: LVal | VoidPattern;
|
|
310
|
+
init: Expression | null;
|
|
311
|
+
definite: boolean | null;
|
|
312
|
+
}
|
|
313
|
+
interface WhileStatement extends BaseNode {
|
|
314
|
+
type: "WhileStatement";
|
|
315
|
+
test: Expression;
|
|
316
|
+
body: Statement;
|
|
317
|
+
}
|
|
318
|
+
interface WithStatement extends BaseNode {
|
|
319
|
+
type: "WithStatement";
|
|
320
|
+
object: Expression;
|
|
321
|
+
body: Statement;
|
|
322
|
+
}
|
|
323
|
+
interface AssignmentPattern extends BaseNode {
|
|
324
|
+
type: "AssignmentPattern";
|
|
325
|
+
left: Identifier | ObjectPattern | ArrayPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
326
|
+
right: Expression;
|
|
327
|
+
decorators: Decorator[] | null;
|
|
328
|
+
optional: boolean | null;
|
|
329
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
330
|
+
}
|
|
331
|
+
interface ArrayPattern extends BaseNode {
|
|
332
|
+
type: "ArrayPattern";
|
|
333
|
+
elements: (null | PatternLike)[];
|
|
334
|
+
decorators: Decorator[] | null;
|
|
335
|
+
optional: boolean | null;
|
|
336
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
337
|
+
}
|
|
338
|
+
interface ArrowFunctionExpression extends BaseNode {
|
|
339
|
+
type: "ArrowFunctionExpression";
|
|
340
|
+
params: FunctionParameter[];
|
|
341
|
+
body: BlockStatement | Expression;
|
|
342
|
+
async: boolean;
|
|
343
|
+
expression: boolean;
|
|
344
|
+
generator: boolean;
|
|
345
|
+
predicate: DeclaredPredicate | InferredPredicate | null;
|
|
346
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
347
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
348
|
+
}
|
|
349
|
+
interface ClassBody extends BaseNode {
|
|
350
|
+
type: "ClassBody";
|
|
351
|
+
body: (ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock)[];
|
|
352
|
+
}
|
|
353
|
+
interface ClassExpression extends BaseNode {
|
|
354
|
+
type: "ClassExpression";
|
|
355
|
+
id: Identifier | null;
|
|
356
|
+
superClass: Expression | null;
|
|
357
|
+
body: ClassBody;
|
|
358
|
+
decorators: Decorator[] | null;
|
|
359
|
+
implements: (TSExpressionWithTypeArguments | ClassImplements)[] | null;
|
|
360
|
+
mixins: InterfaceExtends | null;
|
|
361
|
+
superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
|
362
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
363
|
+
}
|
|
364
|
+
interface ClassDeclaration extends BaseNode {
|
|
365
|
+
type: "ClassDeclaration";
|
|
366
|
+
id: Identifier | null;
|
|
367
|
+
superClass: Expression | null;
|
|
368
|
+
body: ClassBody;
|
|
369
|
+
decorators: Decorator[] | null;
|
|
370
|
+
abstract: boolean | null;
|
|
371
|
+
declare: boolean | null;
|
|
372
|
+
implements: (TSExpressionWithTypeArguments | ClassImplements)[] | null;
|
|
373
|
+
mixins: InterfaceExtends | null;
|
|
374
|
+
superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
|
375
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
376
|
+
}
|
|
377
|
+
interface ExportAllDeclaration extends BaseNode {
|
|
378
|
+
type: "ExportAllDeclaration";
|
|
379
|
+
source: StringLiteral;
|
|
380
|
+
attributes: ImportAttribute[] | null;
|
|
381
|
+
assertions: ImportAttribute[] | null;
|
|
382
|
+
exportKind: "type" | "value" | null;
|
|
383
|
+
}
|
|
384
|
+
interface ExportDefaultDeclaration extends BaseNode {
|
|
385
|
+
type: "ExportDefaultDeclaration";
|
|
386
|
+
declaration: TSDeclareFunction | FunctionDeclaration | ClassDeclaration | Expression;
|
|
387
|
+
exportKind: "value" | null;
|
|
388
|
+
}
|
|
389
|
+
interface ExportNamedDeclaration extends BaseNode {
|
|
390
|
+
type: "ExportNamedDeclaration";
|
|
391
|
+
declaration: Declaration | null;
|
|
392
|
+
specifiers: (ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier)[];
|
|
393
|
+
source: StringLiteral | null;
|
|
394
|
+
attributes: ImportAttribute[] | null;
|
|
395
|
+
assertions: ImportAttribute[] | null;
|
|
396
|
+
exportKind: "type" | "value" | null;
|
|
397
|
+
}
|
|
398
|
+
interface ExportSpecifier extends BaseNode {
|
|
399
|
+
type: "ExportSpecifier";
|
|
400
|
+
local: Identifier;
|
|
401
|
+
exported: Identifier | StringLiteral;
|
|
402
|
+
exportKind: "type" | "value" | null;
|
|
403
|
+
}
|
|
404
|
+
interface ForOfStatement extends BaseNode {
|
|
405
|
+
type: "ForOfStatement";
|
|
406
|
+
left: VariableDeclaration | LVal;
|
|
407
|
+
right: Expression;
|
|
408
|
+
body: Statement;
|
|
409
|
+
await: boolean;
|
|
410
|
+
}
|
|
411
|
+
interface ImportDeclaration extends BaseNode {
|
|
412
|
+
type: "ImportDeclaration";
|
|
413
|
+
specifiers: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[];
|
|
414
|
+
source: StringLiteral;
|
|
415
|
+
attributes: ImportAttribute[] | null;
|
|
416
|
+
assertions: ImportAttribute[] | null;
|
|
417
|
+
importKind: "type" | "typeof" | "value" | null;
|
|
418
|
+
module: boolean | null;
|
|
419
|
+
phase: "source" | "defer" | null;
|
|
420
|
+
}
|
|
421
|
+
interface ImportDefaultSpecifier extends BaseNode {
|
|
422
|
+
type: "ImportDefaultSpecifier";
|
|
423
|
+
local: Identifier;
|
|
424
|
+
}
|
|
425
|
+
interface ImportNamespaceSpecifier extends BaseNode {
|
|
426
|
+
type: "ImportNamespaceSpecifier";
|
|
427
|
+
local: Identifier;
|
|
428
|
+
}
|
|
429
|
+
interface ImportSpecifier extends BaseNode {
|
|
430
|
+
type: "ImportSpecifier";
|
|
431
|
+
local: Identifier;
|
|
432
|
+
imported: Identifier | StringLiteral;
|
|
433
|
+
importKind: "type" | "typeof" | "value" | null;
|
|
434
|
+
}
|
|
435
|
+
interface ImportExpression extends BaseNode {
|
|
436
|
+
type: "ImportExpression";
|
|
437
|
+
source: Expression;
|
|
438
|
+
options: Expression | null;
|
|
439
|
+
phase: "source" | "defer" | null;
|
|
440
|
+
}
|
|
441
|
+
interface MetaProperty extends BaseNode {
|
|
442
|
+
type: "MetaProperty";
|
|
443
|
+
meta: Identifier;
|
|
444
|
+
property: Identifier;
|
|
445
|
+
}
|
|
446
|
+
interface ClassMethod extends BaseNode {
|
|
447
|
+
type: "ClassMethod";
|
|
448
|
+
kind: "get" | "set" | "method" | "constructor";
|
|
449
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
|
|
450
|
+
params: (FunctionParameter | TSParameterProperty)[];
|
|
451
|
+
body: BlockStatement;
|
|
452
|
+
computed: boolean;
|
|
453
|
+
static: boolean;
|
|
454
|
+
generator: boolean;
|
|
455
|
+
async: boolean;
|
|
456
|
+
abstract: boolean | null;
|
|
457
|
+
access: "public" | "private" | "protected" | null;
|
|
458
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
459
|
+
decorators: Decorator[] | null;
|
|
460
|
+
optional: boolean | null;
|
|
461
|
+
override: boolean;
|
|
462
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
463
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
464
|
+
}
|
|
465
|
+
interface ObjectPattern extends BaseNode {
|
|
466
|
+
type: "ObjectPattern";
|
|
467
|
+
properties: (RestElement | ObjectProperty)[];
|
|
468
|
+
decorators: Decorator[] | null;
|
|
469
|
+
optional: boolean | null;
|
|
470
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
471
|
+
}
|
|
472
|
+
interface SpreadElement extends BaseNode {
|
|
473
|
+
type: "SpreadElement";
|
|
474
|
+
argument: Expression;
|
|
475
|
+
}
|
|
476
|
+
interface Super extends BaseNode {
|
|
477
|
+
type: "Super";
|
|
478
|
+
}
|
|
479
|
+
interface TaggedTemplateExpression extends BaseNode {
|
|
480
|
+
type: "TaggedTemplateExpression";
|
|
481
|
+
tag: Expression;
|
|
482
|
+
quasi: TemplateLiteral;
|
|
483
|
+
typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
|
484
|
+
}
|
|
485
|
+
interface TemplateElement extends BaseNode {
|
|
486
|
+
type: "TemplateElement";
|
|
487
|
+
value: {
|
|
488
|
+
raw: string;
|
|
489
|
+
cooked?: string;
|
|
490
|
+
};
|
|
491
|
+
tail: boolean;
|
|
492
|
+
}
|
|
493
|
+
interface TemplateLiteral extends BaseNode {
|
|
494
|
+
type: "TemplateLiteral";
|
|
495
|
+
quasis: TemplateElement[];
|
|
496
|
+
expressions: (Expression | TSType)[];
|
|
497
|
+
}
|
|
498
|
+
interface YieldExpression extends BaseNode {
|
|
499
|
+
type: "YieldExpression";
|
|
500
|
+
argument: Expression | null;
|
|
501
|
+
delegate: boolean;
|
|
502
|
+
}
|
|
503
|
+
interface AwaitExpression extends BaseNode {
|
|
504
|
+
type: "AwaitExpression";
|
|
505
|
+
argument: Expression;
|
|
506
|
+
}
|
|
507
|
+
interface Import extends BaseNode {
|
|
508
|
+
type: "Import";
|
|
509
|
+
}
|
|
510
|
+
interface BigIntLiteral extends BaseNode {
|
|
511
|
+
type: "BigIntLiteral";
|
|
512
|
+
value: string;
|
|
513
|
+
}
|
|
514
|
+
interface ExportNamespaceSpecifier extends BaseNode {
|
|
515
|
+
type: "ExportNamespaceSpecifier";
|
|
516
|
+
exported: Identifier;
|
|
517
|
+
}
|
|
518
|
+
interface OptionalMemberExpression extends BaseNode {
|
|
519
|
+
type: "OptionalMemberExpression";
|
|
520
|
+
object: Expression;
|
|
521
|
+
property: Expression | Identifier;
|
|
522
|
+
computed: boolean;
|
|
523
|
+
optional: boolean;
|
|
524
|
+
}
|
|
525
|
+
interface OptionalCallExpression extends BaseNode {
|
|
526
|
+
type: "OptionalCallExpression";
|
|
527
|
+
callee: Expression;
|
|
528
|
+
arguments: (Expression | SpreadElement | ArgumentPlaceholder)[];
|
|
529
|
+
optional: boolean;
|
|
530
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
531
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
532
|
+
}
|
|
533
|
+
interface ClassProperty extends BaseNode {
|
|
534
|
+
type: "ClassProperty";
|
|
535
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
|
|
536
|
+
value: Expression | null;
|
|
537
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
538
|
+
decorators: Decorator[] | null;
|
|
539
|
+
computed: boolean;
|
|
540
|
+
static: boolean;
|
|
541
|
+
abstract: boolean | null;
|
|
542
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
543
|
+
declare: boolean | null;
|
|
544
|
+
definite: boolean | null;
|
|
545
|
+
optional: boolean | null;
|
|
546
|
+
override: boolean;
|
|
547
|
+
readonly: boolean | null;
|
|
548
|
+
variance: Variance | null;
|
|
549
|
+
}
|
|
550
|
+
interface ClassAccessorProperty extends BaseNode {
|
|
551
|
+
type: "ClassAccessorProperty";
|
|
552
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression | PrivateName;
|
|
553
|
+
value: Expression | null;
|
|
554
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
555
|
+
decorators: Decorator[] | null;
|
|
556
|
+
computed: boolean;
|
|
557
|
+
static: boolean;
|
|
558
|
+
abstract: boolean | null;
|
|
559
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
560
|
+
declare: boolean | null;
|
|
561
|
+
definite: boolean | null;
|
|
562
|
+
optional: boolean | null;
|
|
563
|
+
override: boolean;
|
|
564
|
+
readonly: boolean | null;
|
|
565
|
+
variance: Variance | null;
|
|
566
|
+
}
|
|
567
|
+
interface ClassPrivateProperty extends BaseNode {
|
|
568
|
+
type: "ClassPrivateProperty";
|
|
569
|
+
key: PrivateName;
|
|
570
|
+
value: Expression | null;
|
|
571
|
+
decorators: Decorator[] | null;
|
|
572
|
+
static: boolean;
|
|
573
|
+
definite: boolean | null;
|
|
574
|
+
optional: boolean | null;
|
|
575
|
+
readonly: boolean | null;
|
|
576
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
577
|
+
variance: Variance | null;
|
|
578
|
+
}
|
|
579
|
+
interface ClassPrivateMethod extends BaseNode {
|
|
580
|
+
type: "ClassPrivateMethod";
|
|
581
|
+
kind: "get" | "set" | "method";
|
|
582
|
+
key: PrivateName;
|
|
583
|
+
params: (FunctionParameter | TSParameterProperty)[];
|
|
584
|
+
body: BlockStatement;
|
|
585
|
+
static: boolean;
|
|
586
|
+
abstract: boolean | null;
|
|
587
|
+
access: "public" | "private" | "protected" | null;
|
|
588
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
589
|
+
async: boolean;
|
|
590
|
+
computed: boolean;
|
|
591
|
+
decorators: Decorator[] | null;
|
|
592
|
+
generator: boolean;
|
|
593
|
+
optional: boolean | null;
|
|
594
|
+
override: boolean;
|
|
595
|
+
returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
596
|
+
typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
|
597
|
+
}
|
|
598
|
+
interface PrivateName extends BaseNode {
|
|
599
|
+
type: "PrivateName";
|
|
600
|
+
id: Identifier;
|
|
601
|
+
}
|
|
602
|
+
interface StaticBlock extends BaseNode {
|
|
603
|
+
type: "StaticBlock";
|
|
604
|
+
body: Statement[];
|
|
605
|
+
}
|
|
606
|
+
interface ImportAttribute extends BaseNode {
|
|
607
|
+
type: "ImportAttribute";
|
|
608
|
+
key: Identifier | StringLiteral;
|
|
609
|
+
value: StringLiteral;
|
|
610
|
+
}
|
|
611
|
+
interface AnyTypeAnnotation extends BaseNode {
|
|
612
|
+
type: "AnyTypeAnnotation";
|
|
613
|
+
}
|
|
614
|
+
interface ArrayTypeAnnotation extends BaseNode {
|
|
615
|
+
type: "ArrayTypeAnnotation";
|
|
616
|
+
elementType: FlowType;
|
|
617
|
+
}
|
|
618
|
+
interface BooleanTypeAnnotation extends BaseNode {
|
|
619
|
+
type: "BooleanTypeAnnotation";
|
|
620
|
+
}
|
|
621
|
+
interface BooleanLiteralTypeAnnotation extends BaseNode {
|
|
622
|
+
type: "BooleanLiteralTypeAnnotation";
|
|
623
|
+
value: boolean;
|
|
624
|
+
}
|
|
625
|
+
interface NullLiteralTypeAnnotation extends BaseNode {
|
|
626
|
+
type: "NullLiteralTypeAnnotation";
|
|
627
|
+
}
|
|
628
|
+
interface ClassImplements extends BaseNode {
|
|
629
|
+
type: "ClassImplements";
|
|
630
|
+
id: Identifier;
|
|
631
|
+
typeParameters: TypeParameterInstantiation | null;
|
|
632
|
+
}
|
|
633
|
+
interface DeclareClass extends BaseNode {
|
|
634
|
+
type: "DeclareClass";
|
|
635
|
+
id: Identifier;
|
|
636
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
637
|
+
extends: InterfaceExtends[] | null;
|
|
638
|
+
body: ObjectTypeAnnotation;
|
|
639
|
+
implements: ClassImplements[] | null;
|
|
640
|
+
mixins: InterfaceExtends[] | null;
|
|
641
|
+
}
|
|
642
|
+
interface DeclareFunction extends BaseNode {
|
|
643
|
+
type: "DeclareFunction";
|
|
644
|
+
id: Identifier;
|
|
645
|
+
predicate: DeclaredPredicate | null;
|
|
646
|
+
}
|
|
647
|
+
interface DeclareInterface extends BaseNode {
|
|
648
|
+
type: "DeclareInterface";
|
|
649
|
+
id: Identifier;
|
|
650
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
651
|
+
extends: InterfaceExtends[] | null;
|
|
652
|
+
body: ObjectTypeAnnotation;
|
|
653
|
+
}
|
|
654
|
+
interface DeclareModule extends BaseNode {
|
|
655
|
+
type: "DeclareModule";
|
|
656
|
+
id: Identifier | StringLiteral;
|
|
657
|
+
body: BlockStatement;
|
|
658
|
+
kind: "CommonJS" | "ES" | null;
|
|
659
|
+
}
|
|
660
|
+
interface DeclareModuleExports extends BaseNode {
|
|
661
|
+
type: "DeclareModuleExports";
|
|
662
|
+
typeAnnotation: TypeAnnotation;
|
|
663
|
+
}
|
|
664
|
+
interface DeclareTypeAlias extends BaseNode {
|
|
665
|
+
type: "DeclareTypeAlias";
|
|
666
|
+
id: Identifier;
|
|
667
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
668
|
+
right: FlowType;
|
|
669
|
+
}
|
|
670
|
+
interface DeclareOpaqueType extends BaseNode {
|
|
671
|
+
type: "DeclareOpaqueType";
|
|
672
|
+
id: Identifier;
|
|
673
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
674
|
+
supertype: FlowType | null;
|
|
675
|
+
impltype: FlowType | null;
|
|
676
|
+
}
|
|
677
|
+
interface DeclareVariable extends BaseNode {
|
|
678
|
+
type: "DeclareVariable";
|
|
679
|
+
id: Identifier;
|
|
680
|
+
}
|
|
681
|
+
interface DeclareExportDeclaration extends BaseNode {
|
|
682
|
+
type: "DeclareExportDeclaration";
|
|
683
|
+
declaration: Flow | null;
|
|
684
|
+
specifiers: (ExportSpecifier | ExportNamespaceSpecifier)[] | null;
|
|
685
|
+
source: StringLiteral | null;
|
|
686
|
+
attributes: ImportAttribute[] | null;
|
|
687
|
+
assertions: ImportAttribute[] | null;
|
|
688
|
+
default: boolean | null;
|
|
689
|
+
}
|
|
690
|
+
interface DeclareExportAllDeclaration extends BaseNode {
|
|
691
|
+
type: "DeclareExportAllDeclaration";
|
|
692
|
+
source: StringLiteral;
|
|
693
|
+
attributes: ImportAttribute[] | null;
|
|
694
|
+
assertions: ImportAttribute[] | null;
|
|
695
|
+
exportKind: "type" | "value" | null;
|
|
696
|
+
}
|
|
697
|
+
interface DeclaredPredicate extends BaseNode {
|
|
698
|
+
type: "DeclaredPredicate";
|
|
699
|
+
value: Flow;
|
|
700
|
+
}
|
|
701
|
+
interface ExistsTypeAnnotation extends BaseNode {
|
|
702
|
+
type: "ExistsTypeAnnotation";
|
|
703
|
+
}
|
|
704
|
+
interface FunctionTypeAnnotation extends BaseNode {
|
|
705
|
+
type: "FunctionTypeAnnotation";
|
|
706
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
707
|
+
params: FunctionTypeParam[];
|
|
708
|
+
rest: FunctionTypeParam | null;
|
|
709
|
+
returnType: FlowType;
|
|
710
|
+
this: FunctionTypeParam | null;
|
|
711
|
+
}
|
|
712
|
+
interface FunctionTypeParam extends BaseNode {
|
|
713
|
+
type: "FunctionTypeParam";
|
|
714
|
+
name: Identifier | null;
|
|
715
|
+
typeAnnotation: FlowType;
|
|
716
|
+
optional: boolean | null;
|
|
717
|
+
}
|
|
718
|
+
interface GenericTypeAnnotation extends BaseNode {
|
|
719
|
+
type: "GenericTypeAnnotation";
|
|
720
|
+
id: Identifier | QualifiedTypeIdentifier;
|
|
721
|
+
typeParameters: TypeParameterInstantiation | null;
|
|
722
|
+
}
|
|
723
|
+
interface InferredPredicate extends BaseNode {
|
|
724
|
+
type: "InferredPredicate";
|
|
725
|
+
}
|
|
726
|
+
interface InterfaceExtends extends BaseNode {
|
|
727
|
+
type: "InterfaceExtends";
|
|
728
|
+
id: Identifier | QualifiedTypeIdentifier;
|
|
729
|
+
typeParameters: TypeParameterInstantiation | null;
|
|
730
|
+
}
|
|
731
|
+
interface InterfaceDeclaration extends BaseNode {
|
|
732
|
+
type: "InterfaceDeclaration";
|
|
733
|
+
id: Identifier;
|
|
734
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
735
|
+
extends: InterfaceExtends[] | null;
|
|
736
|
+
body: ObjectTypeAnnotation;
|
|
737
|
+
}
|
|
738
|
+
interface InterfaceTypeAnnotation extends BaseNode {
|
|
739
|
+
type: "InterfaceTypeAnnotation";
|
|
740
|
+
extends: InterfaceExtends[] | null;
|
|
741
|
+
body: ObjectTypeAnnotation;
|
|
742
|
+
}
|
|
743
|
+
interface IntersectionTypeAnnotation extends BaseNode {
|
|
744
|
+
type: "IntersectionTypeAnnotation";
|
|
745
|
+
types: FlowType[];
|
|
746
|
+
}
|
|
747
|
+
interface MixedTypeAnnotation extends BaseNode {
|
|
748
|
+
type: "MixedTypeAnnotation";
|
|
749
|
+
}
|
|
750
|
+
interface EmptyTypeAnnotation extends BaseNode {
|
|
751
|
+
type: "EmptyTypeAnnotation";
|
|
752
|
+
}
|
|
753
|
+
interface NullableTypeAnnotation extends BaseNode {
|
|
754
|
+
type: "NullableTypeAnnotation";
|
|
755
|
+
typeAnnotation: FlowType;
|
|
756
|
+
}
|
|
757
|
+
interface NumberLiteralTypeAnnotation extends BaseNode {
|
|
758
|
+
type: "NumberLiteralTypeAnnotation";
|
|
759
|
+
value: number;
|
|
760
|
+
}
|
|
761
|
+
interface NumberTypeAnnotation extends BaseNode {
|
|
762
|
+
type: "NumberTypeAnnotation";
|
|
763
|
+
}
|
|
764
|
+
interface ObjectTypeAnnotation extends BaseNode {
|
|
765
|
+
type: "ObjectTypeAnnotation";
|
|
766
|
+
properties: (ObjectTypeProperty | ObjectTypeSpreadProperty)[];
|
|
767
|
+
indexers: ObjectTypeIndexer[];
|
|
768
|
+
callProperties: ObjectTypeCallProperty[];
|
|
769
|
+
internalSlots: ObjectTypeInternalSlot[];
|
|
770
|
+
exact: boolean;
|
|
771
|
+
inexact: boolean | null;
|
|
772
|
+
}
|
|
773
|
+
interface ObjectTypeInternalSlot extends BaseNode {
|
|
774
|
+
type: "ObjectTypeInternalSlot";
|
|
775
|
+
id: Identifier;
|
|
776
|
+
value: FlowType;
|
|
777
|
+
optional: boolean;
|
|
778
|
+
static: boolean;
|
|
779
|
+
method: boolean;
|
|
780
|
+
}
|
|
781
|
+
interface ObjectTypeCallProperty extends BaseNode {
|
|
782
|
+
type: "ObjectTypeCallProperty";
|
|
783
|
+
value: FlowType;
|
|
784
|
+
static: boolean;
|
|
785
|
+
}
|
|
786
|
+
interface ObjectTypeIndexer extends BaseNode {
|
|
787
|
+
type: "ObjectTypeIndexer";
|
|
788
|
+
id: Identifier | null;
|
|
789
|
+
key: FlowType;
|
|
790
|
+
value: FlowType;
|
|
791
|
+
variance: Variance | null;
|
|
792
|
+
static: boolean;
|
|
793
|
+
}
|
|
794
|
+
interface ObjectTypeProperty extends BaseNode {
|
|
795
|
+
type: "ObjectTypeProperty";
|
|
796
|
+
key: Identifier | StringLiteral;
|
|
797
|
+
value: FlowType;
|
|
798
|
+
variance: Variance | null;
|
|
799
|
+
kind: "init" | "get" | "set";
|
|
800
|
+
method: boolean;
|
|
801
|
+
optional: boolean;
|
|
802
|
+
proto: boolean;
|
|
803
|
+
static: boolean;
|
|
804
|
+
}
|
|
805
|
+
interface ObjectTypeSpreadProperty extends BaseNode {
|
|
806
|
+
type: "ObjectTypeSpreadProperty";
|
|
807
|
+
argument: FlowType;
|
|
808
|
+
}
|
|
809
|
+
interface OpaqueType extends BaseNode {
|
|
810
|
+
type: "OpaqueType";
|
|
811
|
+
id: Identifier;
|
|
812
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
813
|
+
supertype: FlowType | null;
|
|
814
|
+
impltype: FlowType;
|
|
815
|
+
}
|
|
816
|
+
interface QualifiedTypeIdentifier extends BaseNode {
|
|
817
|
+
type: "QualifiedTypeIdentifier";
|
|
818
|
+
id: Identifier;
|
|
819
|
+
qualification: Identifier | QualifiedTypeIdentifier;
|
|
820
|
+
}
|
|
821
|
+
interface StringLiteralTypeAnnotation extends BaseNode {
|
|
822
|
+
type: "StringLiteralTypeAnnotation";
|
|
823
|
+
value: string;
|
|
824
|
+
}
|
|
825
|
+
interface StringTypeAnnotation extends BaseNode {
|
|
826
|
+
type: "StringTypeAnnotation";
|
|
827
|
+
}
|
|
828
|
+
interface SymbolTypeAnnotation extends BaseNode {
|
|
829
|
+
type: "SymbolTypeAnnotation";
|
|
830
|
+
}
|
|
831
|
+
interface ThisTypeAnnotation extends BaseNode {
|
|
832
|
+
type: "ThisTypeAnnotation";
|
|
833
|
+
}
|
|
834
|
+
interface TupleTypeAnnotation extends BaseNode {
|
|
835
|
+
type: "TupleTypeAnnotation";
|
|
836
|
+
types: FlowType[];
|
|
837
|
+
}
|
|
838
|
+
interface TypeofTypeAnnotation extends BaseNode {
|
|
839
|
+
type: "TypeofTypeAnnotation";
|
|
840
|
+
argument: FlowType;
|
|
841
|
+
}
|
|
842
|
+
interface TypeAlias extends BaseNode {
|
|
843
|
+
type: "TypeAlias";
|
|
844
|
+
id: Identifier;
|
|
845
|
+
typeParameters: TypeParameterDeclaration | null;
|
|
846
|
+
right: FlowType;
|
|
847
|
+
}
|
|
848
|
+
interface TypeAnnotation extends BaseNode {
|
|
849
|
+
type: "TypeAnnotation";
|
|
850
|
+
typeAnnotation: FlowType;
|
|
851
|
+
}
|
|
852
|
+
interface TypeCastExpression extends BaseNode {
|
|
853
|
+
type: "TypeCastExpression";
|
|
854
|
+
expression: Expression;
|
|
855
|
+
typeAnnotation: TypeAnnotation;
|
|
856
|
+
}
|
|
857
|
+
interface TypeParameter extends BaseNode {
|
|
858
|
+
type: "TypeParameter";
|
|
859
|
+
bound: TypeAnnotation | null;
|
|
860
|
+
default: FlowType | null;
|
|
861
|
+
variance: Variance | null;
|
|
862
|
+
name: string;
|
|
863
|
+
}
|
|
864
|
+
interface TypeParameterDeclaration extends BaseNode {
|
|
865
|
+
type: "TypeParameterDeclaration";
|
|
866
|
+
params: TypeParameter[];
|
|
867
|
+
}
|
|
868
|
+
interface TypeParameterInstantiation extends BaseNode {
|
|
869
|
+
type: "TypeParameterInstantiation";
|
|
870
|
+
params: FlowType[];
|
|
871
|
+
}
|
|
872
|
+
interface UnionTypeAnnotation extends BaseNode {
|
|
873
|
+
type: "UnionTypeAnnotation";
|
|
874
|
+
types: FlowType[];
|
|
875
|
+
}
|
|
876
|
+
interface Variance extends BaseNode {
|
|
877
|
+
type: "Variance";
|
|
878
|
+
kind: "minus" | "plus";
|
|
879
|
+
}
|
|
880
|
+
interface VoidTypeAnnotation extends BaseNode {
|
|
881
|
+
type: "VoidTypeAnnotation";
|
|
882
|
+
}
|
|
883
|
+
interface EnumDeclaration extends BaseNode {
|
|
884
|
+
type: "EnumDeclaration";
|
|
885
|
+
id: Identifier;
|
|
886
|
+
body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
|
|
887
|
+
}
|
|
888
|
+
interface EnumBooleanBody extends BaseNode {
|
|
889
|
+
type: "EnumBooleanBody";
|
|
890
|
+
members: EnumBooleanMember[];
|
|
891
|
+
explicitType: boolean;
|
|
892
|
+
hasUnknownMembers: boolean;
|
|
893
|
+
}
|
|
894
|
+
interface EnumNumberBody extends BaseNode {
|
|
895
|
+
type: "EnumNumberBody";
|
|
896
|
+
members: EnumNumberMember[];
|
|
897
|
+
explicitType: boolean;
|
|
898
|
+
hasUnknownMembers: boolean;
|
|
899
|
+
}
|
|
900
|
+
interface EnumStringBody extends BaseNode {
|
|
901
|
+
type: "EnumStringBody";
|
|
902
|
+
members: (EnumStringMember | EnumDefaultedMember)[];
|
|
903
|
+
explicitType: boolean;
|
|
904
|
+
hasUnknownMembers: boolean;
|
|
905
|
+
}
|
|
906
|
+
interface EnumSymbolBody extends BaseNode {
|
|
907
|
+
type: "EnumSymbolBody";
|
|
908
|
+
members: EnumDefaultedMember[];
|
|
909
|
+
hasUnknownMembers: boolean;
|
|
910
|
+
}
|
|
911
|
+
interface EnumBooleanMember extends BaseNode {
|
|
912
|
+
type: "EnumBooleanMember";
|
|
913
|
+
id: Identifier;
|
|
914
|
+
init: BooleanLiteral;
|
|
915
|
+
}
|
|
916
|
+
interface EnumNumberMember extends BaseNode {
|
|
917
|
+
type: "EnumNumberMember";
|
|
918
|
+
id: Identifier;
|
|
919
|
+
init: NumericLiteral;
|
|
920
|
+
}
|
|
921
|
+
interface EnumStringMember extends BaseNode {
|
|
922
|
+
type: "EnumStringMember";
|
|
923
|
+
id: Identifier;
|
|
924
|
+
init: StringLiteral;
|
|
925
|
+
}
|
|
926
|
+
interface EnumDefaultedMember extends BaseNode {
|
|
927
|
+
type: "EnumDefaultedMember";
|
|
928
|
+
id: Identifier;
|
|
929
|
+
}
|
|
930
|
+
interface IndexedAccessType extends BaseNode {
|
|
931
|
+
type: "IndexedAccessType";
|
|
932
|
+
objectType: FlowType;
|
|
933
|
+
indexType: FlowType;
|
|
934
|
+
}
|
|
935
|
+
interface OptionalIndexedAccessType extends BaseNode {
|
|
936
|
+
type: "OptionalIndexedAccessType";
|
|
937
|
+
objectType: FlowType;
|
|
938
|
+
indexType: FlowType;
|
|
939
|
+
optional: boolean;
|
|
940
|
+
}
|
|
941
|
+
interface JSXAttribute extends BaseNode {
|
|
942
|
+
type: "JSXAttribute";
|
|
943
|
+
name: JSXIdentifier | JSXNamespacedName;
|
|
944
|
+
value: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null;
|
|
945
|
+
}
|
|
946
|
+
interface JSXClosingElement extends BaseNode {
|
|
947
|
+
type: "JSXClosingElement";
|
|
948
|
+
name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
|
|
949
|
+
}
|
|
950
|
+
interface JSXElement extends BaseNode {
|
|
951
|
+
type: "JSXElement";
|
|
952
|
+
openingElement: JSXOpeningElement;
|
|
953
|
+
closingElement: JSXClosingElement | null;
|
|
954
|
+
children: (JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment)[];
|
|
955
|
+
selfClosing: boolean | null;
|
|
956
|
+
}
|
|
957
|
+
interface JSXEmptyExpression extends BaseNode {
|
|
958
|
+
type: "JSXEmptyExpression";
|
|
959
|
+
}
|
|
960
|
+
interface JSXExpressionContainer extends BaseNode {
|
|
961
|
+
type: "JSXExpressionContainer";
|
|
962
|
+
expression: Expression | JSXEmptyExpression;
|
|
963
|
+
}
|
|
964
|
+
interface JSXSpreadChild extends BaseNode {
|
|
965
|
+
type: "JSXSpreadChild";
|
|
966
|
+
expression: Expression;
|
|
967
|
+
}
|
|
968
|
+
interface JSXIdentifier extends BaseNode {
|
|
969
|
+
type: "JSXIdentifier";
|
|
970
|
+
name: string;
|
|
971
|
+
}
|
|
972
|
+
interface JSXMemberExpression extends BaseNode {
|
|
973
|
+
type: "JSXMemberExpression";
|
|
974
|
+
object: JSXMemberExpression | JSXIdentifier;
|
|
975
|
+
property: JSXIdentifier;
|
|
976
|
+
}
|
|
977
|
+
interface JSXNamespacedName extends BaseNode {
|
|
978
|
+
type: "JSXNamespacedName";
|
|
979
|
+
namespace: JSXIdentifier;
|
|
980
|
+
name: JSXIdentifier;
|
|
981
|
+
}
|
|
982
|
+
interface JSXOpeningElement extends BaseNode {
|
|
983
|
+
type: "JSXOpeningElement";
|
|
984
|
+
name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
|
|
985
|
+
attributes: (JSXAttribute | JSXSpreadAttribute)[];
|
|
986
|
+
selfClosing: boolean;
|
|
987
|
+
typeArguments: TypeParameterInstantiation | null;
|
|
988
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
989
|
+
}
|
|
990
|
+
interface JSXSpreadAttribute extends BaseNode {
|
|
991
|
+
type: "JSXSpreadAttribute";
|
|
992
|
+
argument: Expression;
|
|
993
|
+
}
|
|
994
|
+
interface JSXText extends BaseNode {
|
|
995
|
+
type: "JSXText";
|
|
996
|
+
value: string;
|
|
997
|
+
}
|
|
998
|
+
interface JSXFragment extends BaseNode {
|
|
999
|
+
type: "JSXFragment";
|
|
1000
|
+
openingFragment: JSXOpeningFragment;
|
|
1001
|
+
closingFragment: JSXClosingFragment;
|
|
1002
|
+
children: (JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment)[];
|
|
1003
|
+
}
|
|
1004
|
+
interface JSXOpeningFragment extends BaseNode {
|
|
1005
|
+
type: "JSXOpeningFragment";
|
|
1006
|
+
}
|
|
1007
|
+
interface JSXClosingFragment extends BaseNode {
|
|
1008
|
+
type: "JSXClosingFragment";
|
|
1009
|
+
}
|
|
1010
|
+
interface Noop extends BaseNode {
|
|
1011
|
+
type: "Noop";
|
|
1012
|
+
}
|
|
1013
|
+
interface Placeholder extends BaseNode {
|
|
1014
|
+
type: "Placeholder";
|
|
1015
|
+
expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern";
|
|
1016
|
+
name: Identifier;
|
|
1017
|
+
decorators: Decorator[] | null;
|
|
1018
|
+
optional: boolean | null;
|
|
1019
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
1020
|
+
}
|
|
1021
|
+
interface V8IntrinsicIdentifier extends BaseNode {
|
|
1022
|
+
type: "V8IntrinsicIdentifier";
|
|
1023
|
+
name: string;
|
|
1024
|
+
}
|
|
1025
|
+
interface ArgumentPlaceholder extends BaseNode {
|
|
1026
|
+
type: "ArgumentPlaceholder";
|
|
1027
|
+
}
|
|
1028
|
+
interface BindExpression extends BaseNode {
|
|
1029
|
+
type: "BindExpression";
|
|
1030
|
+
object: Expression;
|
|
1031
|
+
callee: Expression;
|
|
1032
|
+
}
|
|
1033
|
+
interface Decorator extends BaseNode {
|
|
1034
|
+
type: "Decorator";
|
|
1035
|
+
expression: Expression;
|
|
1036
|
+
}
|
|
1037
|
+
interface DoExpression extends BaseNode {
|
|
1038
|
+
type: "DoExpression";
|
|
1039
|
+
body: BlockStatement;
|
|
1040
|
+
async: boolean;
|
|
1041
|
+
}
|
|
1042
|
+
interface ExportDefaultSpecifier extends BaseNode {
|
|
1043
|
+
type: "ExportDefaultSpecifier";
|
|
1044
|
+
exported: Identifier;
|
|
1045
|
+
}
|
|
1046
|
+
interface RecordExpression extends BaseNode {
|
|
1047
|
+
type: "RecordExpression";
|
|
1048
|
+
properties: (ObjectProperty | SpreadElement)[];
|
|
1049
|
+
}
|
|
1050
|
+
interface TupleExpression extends BaseNode {
|
|
1051
|
+
type: "TupleExpression";
|
|
1052
|
+
elements: (Expression | SpreadElement)[];
|
|
1053
|
+
}
|
|
1054
|
+
interface DecimalLiteral extends BaseNode {
|
|
1055
|
+
type: "DecimalLiteral";
|
|
1056
|
+
value: string;
|
|
1057
|
+
}
|
|
1058
|
+
interface ModuleExpression extends BaseNode {
|
|
1059
|
+
type: "ModuleExpression";
|
|
1060
|
+
body: Program;
|
|
1061
|
+
}
|
|
1062
|
+
interface TopicReference extends BaseNode {
|
|
1063
|
+
type: "TopicReference";
|
|
1064
|
+
}
|
|
1065
|
+
interface PipelineTopicExpression extends BaseNode {
|
|
1066
|
+
type: "PipelineTopicExpression";
|
|
1067
|
+
expression: Expression;
|
|
1068
|
+
}
|
|
1069
|
+
interface PipelineBareFunction extends BaseNode {
|
|
1070
|
+
type: "PipelineBareFunction";
|
|
1071
|
+
callee: Expression;
|
|
1072
|
+
}
|
|
1073
|
+
interface PipelinePrimaryTopicReference extends BaseNode {
|
|
1074
|
+
type: "PipelinePrimaryTopicReference";
|
|
1075
|
+
}
|
|
1076
|
+
interface VoidPattern extends BaseNode {
|
|
1077
|
+
type: "VoidPattern";
|
|
1078
|
+
}
|
|
1079
|
+
interface TSParameterProperty extends BaseNode {
|
|
1080
|
+
type: "TSParameterProperty";
|
|
1081
|
+
parameter: Identifier | AssignmentPattern;
|
|
1082
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
1083
|
+
decorators: Decorator[] | null;
|
|
1084
|
+
override: boolean | null;
|
|
1085
|
+
readonly: boolean | null;
|
|
1086
|
+
}
|
|
1087
|
+
interface TSDeclareFunction extends BaseNode {
|
|
1088
|
+
type: "TSDeclareFunction";
|
|
1089
|
+
id: Identifier | null;
|
|
1090
|
+
typeParameters: TSTypeParameterDeclaration | Noop | null;
|
|
1091
|
+
params: FunctionParameter[];
|
|
1092
|
+
returnType: TSTypeAnnotation | Noop | null;
|
|
1093
|
+
async: boolean;
|
|
1094
|
+
declare: boolean | null;
|
|
1095
|
+
generator: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
interface TSDeclareMethod extends BaseNode {
|
|
1098
|
+
type: "TSDeclareMethod";
|
|
1099
|
+
decorators: Decorator[] | null;
|
|
1100
|
+
key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
|
|
1101
|
+
typeParameters: TSTypeParameterDeclaration | Noop | null;
|
|
1102
|
+
params: (FunctionParameter | TSParameterProperty)[];
|
|
1103
|
+
returnType: TSTypeAnnotation | Noop | null;
|
|
1104
|
+
abstract: boolean | null;
|
|
1105
|
+
access: "public" | "private" | "protected" | null;
|
|
1106
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
1107
|
+
async: boolean;
|
|
1108
|
+
computed: boolean;
|
|
1109
|
+
generator: boolean;
|
|
1110
|
+
kind: "get" | "set" | "method" | "constructor";
|
|
1111
|
+
optional: boolean | null;
|
|
1112
|
+
override: boolean;
|
|
1113
|
+
static: boolean;
|
|
1114
|
+
}
|
|
1115
|
+
interface TSQualifiedName extends BaseNode {
|
|
1116
|
+
type: "TSQualifiedName";
|
|
1117
|
+
left: TSEntityName;
|
|
1118
|
+
right: Identifier;
|
|
1119
|
+
}
|
|
1120
|
+
interface TSCallSignatureDeclaration extends BaseNode {
|
|
1121
|
+
type: "TSCallSignatureDeclaration";
|
|
1122
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1123
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1124
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1125
|
+
}
|
|
1126
|
+
interface TSConstructSignatureDeclaration extends BaseNode {
|
|
1127
|
+
type: "TSConstructSignatureDeclaration";
|
|
1128
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1129
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1130
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1131
|
+
}
|
|
1132
|
+
interface TSPropertySignature extends BaseNode {
|
|
1133
|
+
type: "TSPropertySignature";
|
|
1134
|
+
key: Expression;
|
|
1135
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1136
|
+
computed: boolean;
|
|
1137
|
+
kind: "get" | "set" | null;
|
|
1138
|
+
optional: boolean | null;
|
|
1139
|
+
readonly: boolean | null;
|
|
1140
|
+
}
|
|
1141
|
+
interface TSMethodSignature extends BaseNode {
|
|
1142
|
+
type: "TSMethodSignature";
|
|
1143
|
+
key: Expression;
|
|
1144
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1145
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1146
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1147
|
+
computed: boolean;
|
|
1148
|
+
kind: "method" | "get" | "set";
|
|
1149
|
+
optional: boolean | null;
|
|
1150
|
+
}
|
|
1151
|
+
interface TSIndexSignature extends BaseNode {
|
|
1152
|
+
type: "TSIndexSignature";
|
|
1153
|
+
parameters: Identifier[];
|
|
1154
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1155
|
+
readonly: boolean | null;
|
|
1156
|
+
static: boolean | null;
|
|
1157
|
+
}
|
|
1158
|
+
interface TSAnyKeyword extends BaseNode {
|
|
1159
|
+
type: "TSAnyKeyword";
|
|
1160
|
+
}
|
|
1161
|
+
interface TSBooleanKeyword extends BaseNode {
|
|
1162
|
+
type: "TSBooleanKeyword";
|
|
1163
|
+
}
|
|
1164
|
+
interface TSBigIntKeyword extends BaseNode {
|
|
1165
|
+
type: "TSBigIntKeyword";
|
|
1166
|
+
}
|
|
1167
|
+
interface TSIntrinsicKeyword extends BaseNode {
|
|
1168
|
+
type: "TSIntrinsicKeyword";
|
|
1169
|
+
}
|
|
1170
|
+
interface TSNeverKeyword extends BaseNode {
|
|
1171
|
+
type: "TSNeverKeyword";
|
|
1172
|
+
}
|
|
1173
|
+
interface TSNullKeyword extends BaseNode {
|
|
1174
|
+
type: "TSNullKeyword";
|
|
1175
|
+
}
|
|
1176
|
+
interface TSNumberKeyword extends BaseNode {
|
|
1177
|
+
type: "TSNumberKeyword";
|
|
1178
|
+
}
|
|
1179
|
+
interface TSObjectKeyword extends BaseNode {
|
|
1180
|
+
type: "TSObjectKeyword";
|
|
1181
|
+
}
|
|
1182
|
+
interface TSStringKeyword extends BaseNode {
|
|
1183
|
+
type: "TSStringKeyword";
|
|
1184
|
+
}
|
|
1185
|
+
interface TSSymbolKeyword extends BaseNode {
|
|
1186
|
+
type: "TSSymbolKeyword";
|
|
1187
|
+
}
|
|
1188
|
+
interface TSUndefinedKeyword extends BaseNode {
|
|
1189
|
+
type: "TSUndefinedKeyword";
|
|
1190
|
+
}
|
|
1191
|
+
interface TSUnknownKeyword extends BaseNode {
|
|
1192
|
+
type: "TSUnknownKeyword";
|
|
1193
|
+
}
|
|
1194
|
+
interface TSVoidKeyword extends BaseNode {
|
|
1195
|
+
type: "TSVoidKeyword";
|
|
1196
|
+
}
|
|
1197
|
+
interface TSThisType extends BaseNode {
|
|
1198
|
+
type: "TSThisType";
|
|
1199
|
+
}
|
|
1200
|
+
interface TSFunctionType extends BaseNode {
|
|
1201
|
+
type: "TSFunctionType";
|
|
1202
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1203
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1204
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1205
|
+
}
|
|
1206
|
+
interface TSConstructorType extends BaseNode {
|
|
1207
|
+
type: "TSConstructorType";
|
|
1208
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1209
|
+
parameters: (ArrayPattern | Identifier | ObjectPattern | RestElement)[];
|
|
1210
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1211
|
+
abstract: boolean | null;
|
|
1212
|
+
}
|
|
1213
|
+
interface TSTypeReference extends BaseNode {
|
|
1214
|
+
type: "TSTypeReference";
|
|
1215
|
+
typeName: TSEntityName;
|
|
1216
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1217
|
+
}
|
|
1218
|
+
interface TSTypePredicate extends BaseNode {
|
|
1219
|
+
type: "TSTypePredicate";
|
|
1220
|
+
parameterName: Identifier | TSThisType;
|
|
1221
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1222
|
+
asserts: boolean | null;
|
|
1223
|
+
}
|
|
1224
|
+
interface TSTypeQuery extends BaseNode {
|
|
1225
|
+
type: "TSTypeQuery";
|
|
1226
|
+
exprName: TSEntityName | TSImportType;
|
|
1227
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1228
|
+
}
|
|
1229
|
+
interface TSTypeLiteral extends BaseNode {
|
|
1230
|
+
type: "TSTypeLiteral";
|
|
1231
|
+
members: TSTypeElement[];
|
|
1232
|
+
}
|
|
1233
|
+
interface TSArrayType extends BaseNode {
|
|
1234
|
+
type: "TSArrayType";
|
|
1235
|
+
elementType: TSType;
|
|
1236
|
+
}
|
|
1237
|
+
interface TSTupleType extends BaseNode {
|
|
1238
|
+
type: "TSTupleType";
|
|
1239
|
+
elementTypes: (TSType | TSNamedTupleMember)[];
|
|
1240
|
+
}
|
|
1241
|
+
interface TSOptionalType extends BaseNode {
|
|
1242
|
+
type: "TSOptionalType";
|
|
1243
|
+
typeAnnotation: TSType;
|
|
1244
|
+
}
|
|
1245
|
+
interface TSRestType extends BaseNode {
|
|
1246
|
+
type: "TSRestType";
|
|
1247
|
+
typeAnnotation: TSType;
|
|
1248
|
+
}
|
|
1249
|
+
interface TSNamedTupleMember extends BaseNode {
|
|
1250
|
+
type: "TSNamedTupleMember";
|
|
1251
|
+
label: Identifier;
|
|
1252
|
+
elementType: TSType;
|
|
1253
|
+
optional: boolean;
|
|
1254
|
+
}
|
|
1255
|
+
interface TSUnionType extends BaseNode {
|
|
1256
|
+
type: "TSUnionType";
|
|
1257
|
+
types: TSType[];
|
|
1258
|
+
}
|
|
1259
|
+
interface TSIntersectionType extends BaseNode {
|
|
1260
|
+
type: "TSIntersectionType";
|
|
1261
|
+
types: TSType[];
|
|
1262
|
+
}
|
|
1263
|
+
interface TSConditionalType extends BaseNode {
|
|
1264
|
+
type: "TSConditionalType";
|
|
1265
|
+
checkType: TSType;
|
|
1266
|
+
extendsType: TSType;
|
|
1267
|
+
trueType: TSType;
|
|
1268
|
+
falseType: TSType;
|
|
1269
|
+
}
|
|
1270
|
+
interface TSInferType extends BaseNode {
|
|
1271
|
+
type: "TSInferType";
|
|
1272
|
+
typeParameter: TSTypeParameter;
|
|
1273
|
+
}
|
|
1274
|
+
interface TSParenthesizedType extends BaseNode {
|
|
1275
|
+
type: "TSParenthesizedType";
|
|
1276
|
+
typeAnnotation: TSType;
|
|
1277
|
+
}
|
|
1278
|
+
interface TSTypeOperator extends BaseNode {
|
|
1279
|
+
type: "TSTypeOperator";
|
|
1280
|
+
typeAnnotation: TSType;
|
|
1281
|
+
operator: string;
|
|
1282
|
+
}
|
|
1283
|
+
interface TSIndexedAccessType extends BaseNode {
|
|
1284
|
+
type: "TSIndexedAccessType";
|
|
1285
|
+
objectType: TSType;
|
|
1286
|
+
indexType: TSType;
|
|
1287
|
+
}
|
|
1288
|
+
interface TSMappedType extends BaseNode {
|
|
1289
|
+
type: "TSMappedType";
|
|
1290
|
+
typeParameter: TSTypeParameter;
|
|
1291
|
+
typeAnnotation: TSType | null;
|
|
1292
|
+
nameType: TSType | null;
|
|
1293
|
+
optional: true | false | "+" | "-" | null;
|
|
1294
|
+
readonly: true | false | "+" | "-" | null;
|
|
1295
|
+
}
|
|
1296
|
+
interface TSTemplateLiteralType extends BaseNode {
|
|
1297
|
+
type: "TSTemplateLiteralType";
|
|
1298
|
+
quasis: TemplateElement[];
|
|
1299
|
+
types: TSType[];
|
|
1300
|
+
}
|
|
1301
|
+
interface TSLiteralType extends BaseNode {
|
|
1302
|
+
type: "TSLiteralType";
|
|
1303
|
+
literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | TemplateLiteral | UnaryExpression;
|
|
1304
|
+
}
|
|
1305
|
+
interface TSExpressionWithTypeArguments extends BaseNode {
|
|
1306
|
+
type: "TSExpressionWithTypeArguments";
|
|
1307
|
+
expression: TSEntityName;
|
|
1308
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1309
|
+
}
|
|
1310
|
+
interface TSInterfaceDeclaration extends BaseNode {
|
|
1311
|
+
type: "TSInterfaceDeclaration";
|
|
1312
|
+
id: Identifier;
|
|
1313
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1314
|
+
extends: TSExpressionWithTypeArguments[] | null;
|
|
1315
|
+
body: TSInterfaceBody;
|
|
1316
|
+
declare: boolean | null;
|
|
1317
|
+
}
|
|
1318
|
+
interface TSInterfaceBody extends BaseNode {
|
|
1319
|
+
type: "TSInterfaceBody";
|
|
1320
|
+
body: TSTypeElement[];
|
|
1321
|
+
}
|
|
1322
|
+
interface TSTypeAliasDeclaration extends BaseNode {
|
|
1323
|
+
type: "TSTypeAliasDeclaration";
|
|
1324
|
+
id: Identifier;
|
|
1325
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1326
|
+
typeAnnotation: TSType;
|
|
1327
|
+
declare: boolean | null;
|
|
1328
|
+
}
|
|
1329
|
+
interface TSInstantiationExpression extends BaseNode {
|
|
1330
|
+
type: "TSInstantiationExpression";
|
|
1331
|
+
expression: Expression;
|
|
1332
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1333
|
+
}
|
|
1334
|
+
interface TSAsExpression extends BaseNode {
|
|
1335
|
+
type: "TSAsExpression";
|
|
1336
|
+
expression: Expression;
|
|
1337
|
+
typeAnnotation: TSType;
|
|
1338
|
+
}
|
|
1339
|
+
interface TSSatisfiesExpression extends BaseNode {
|
|
1340
|
+
type: "TSSatisfiesExpression";
|
|
1341
|
+
expression: Expression;
|
|
1342
|
+
typeAnnotation: TSType;
|
|
1343
|
+
}
|
|
1344
|
+
interface TSTypeAssertion extends BaseNode {
|
|
1345
|
+
type: "TSTypeAssertion";
|
|
1346
|
+
typeAnnotation: TSType;
|
|
1347
|
+
expression: Expression;
|
|
1348
|
+
}
|
|
1349
|
+
interface TSEnumBody extends BaseNode {
|
|
1350
|
+
type: "TSEnumBody";
|
|
1351
|
+
members: TSEnumMember[];
|
|
1352
|
+
}
|
|
1353
|
+
interface TSEnumDeclaration extends BaseNode {
|
|
1354
|
+
type: "TSEnumDeclaration";
|
|
1355
|
+
id: Identifier;
|
|
1356
|
+
members: TSEnumMember[];
|
|
1357
|
+
body: TSEnumBody | null;
|
|
1358
|
+
const: boolean | null;
|
|
1359
|
+
declare: boolean | null;
|
|
1360
|
+
initializer: Expression | null;
|
|
1361
|
+
}
|
|
1362
|
+
interface TSEnumMember extends BaseNode {
|
|
1363
|
+
type: "TSEnumMember";
|
|
1364
|
+
id: Identifier | StringLiteral;
|
|
1365
|
+
initializer: Expression | null;
|
|
1366
|
+
}
|
|
1367
|
+
interface TSModuleDeclaration extends BaseNode {
|
|
1368
|
+
type: "TSModuleDeclaration";
|
|
1369
|
+
id: Identifier | StringLiteral;
|
|
1370
|
+
body: TSModuleBlock | TSModuleDeclaration;
|
|
1371
|
+
declare: boolean | null;
|
|
1372
|
+
global: boolean | null;
|
|
1373
|
+
kind: "global" | "module" | "namespace";
|
|
1374
|
+
}
|
|
1375
|
+
interface TSModuleBlock extends BaseNode {
|
|
1376
|
+
type: "TSModuleBlock";
|
|
1377
|
+
body: Statement[];
|
|
1378
|
+
}
|
|
1379
|
+
interface TSImportType extends BaseNode {
|
|
1380
|
+
type: "TSImportType";
|
|
1381
|
+
argument: StringLiteral;
|
|
1382
|
+
qualifier: TSEntityName | null;
|
|
1383
|
+
typeParameters: TSTypeParameterInstantiation | null;
|
|
1384
|
+
options: ObjectExpression | null;
|
|
1385
|
+
}
|
|
1386
|
+
interface TSImportEqualsDeclaration extends BaseNode {
|
|
1387
|
+
type: "TSImportEqualsDeclaration";
|
|
1388
|
+
id: Identifier;
|
|
1389
|
+
moduleReference: TSEntityName | TSExternalModuleReference;
|
|
1390
|
+
importKind: "type" | "value" | null;
|
|
1391
|
+
isExport: boolean;
|
|
1392
|
+
}
|
|
1393
|
+
interface TSExternalModuleReference extends BaseNode {
|
|
1394
|
+
type: "TSExternalModuleReference";
|
|
1395
|
+
expression: StringLiteral;
|
|
1396
|
+
}
|
|
1397
|
+
interface TSNonNullExpression extends BaseNode {
|
|
1398
|
+
type: "TSNonNullExpression";
|
|
1399
|
+
expression: Expression;
|
|
1400
|
+
}
|
|
1401
|
+
interface TSExportAssignment extends BaseNode {
|
|
1402
|
+
type: "TSExportAssignment";
|
|
1403
|
+
expression: Expression;
|
|
1404
|
+
}
|
|
1405
|
+
interface TSNamespaceExportDeclaration extends BaseNode {
|
|
1406
|
+
type: "TSNamespaceExportDeclaration";
|
|
1407
|
+
id: Identifier;
|
|
1408
|
+
}
|
|
1409
|
+
interface TSTypeAnnotation extends BaseNode {
|
|
1410
|
+
type: "TSTypeAnnotation";
|
|
1411
|
+
typeAnnotation: TSType;
|
|
1412
|
+
}
|
|
1413
|
+
interface TSTypeParameterInstantiation extends BaseNode {
|
|
1414
|
+
type: "TSTypeParameterInstantiation";
|
|
1415
|
+
params: TSType[];
|
|
1416
|
+
}
|
|
1417
|
+
interface TSTypeParameterDeclaration extends BaseNode {
|
|
1418
|
+
type: "TSTypeParameterDeclaration";
|
|
1419
|
+
params: TSTypeParameter[];
|
|
1420
|
+
}
|
|
1421
|
+
interface TSTypeParameter extends BaseNode {
|
|
1422
|
+
type: "TSTypeParameter";
|
|
1423
|
+
constraint: TSType | null;
|
|
1424
|
+
default: TSType | null;
|
|
1425
|
+
name: string;
|
|
1426
|
+
const: boolean | null;
|
|
1427
|
+
in: boolean | null;
|
|
1428
|
+
out: boolean | null;
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* @deprecated Use `NumericLiteral`
|
|
1432
|
+
*/
|
|
1433
|
+
type NumberLiteral = NumericLiteral;
|
|
1434
|
+
/**
|
|
1435
|
+
* @deprecated Use `RegExpLiteral`
|
|
1436
|
+
*/
|
|
1437
|
+
type RegexLiteral = RegExpLiteral;
|
|
1438
|
+
/**
|
|
1439
|
+
* @deprecated Use `RestElement`
|
|
1440
|
+
*/
|
|
1441
|
+
type RestProperty = RestElement;
|
|
1442
|
+
/**
|
|
1443
|
+
* @deprecated Use `SpreadElement`
|
|
1444
|
+
*/
|
|
1445
|
+
type SpreadProperty = SpreadElement;
|
|
1446
|
+
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;
|
|
1447
|
+
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;
|
|
1448
|
+
type Binary = BinaryExpression | LogicalExpression;
|
|
1449
|
+
type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
1450
|
+
type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
1451
|
+
type Block = BlockStatement | Program | TSModuleBlock;
|
|
1452
|
+
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;
|
|
1453
|
+
type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
|
|
1454
|
+
type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
|
|
1455
|
+
type Conditional = ConditionalExpression | IfStatement;
|
|
1456
|
+
type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
|
|
1457
|
+
type While = DoWhileStatement | WhileStatement;
|
|
1458
|
+
type ExpressionWrapper = ExpressionStatement | ParenthesizedExpression | TypeCastExpression;
|
|
1459
|
+
type For = ForInStatement | ForStatement | ForOfStatement;
|
|
1460
|
+
type ForXStatement = ForInStatement | ForOfStatement;
|
|
1461
|
+
type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
|
|
1462
|
+
type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
1463
|
+
type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral;
|
|
1464
|
+
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;
|
|
1465
|
+
type FunctionParameter = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern;
|
|
1466
|
+
type PatternLike = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
1467
|
+
type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
1468
|
+
type TSEntityName = Identifier | TSQualifiedName;
|
|
1469
|
+
type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral;
|
|
1470
|
+
type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral;
|
|
1471
|
+
type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
|
|
1472
|
+
type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
|
|
1473
|
+
type ObjectMember = ObjectMethod | ObjectProperty;
|
|
1474
|
+
type Property = ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty;
|
|
1475
|
+
type UnaryLike = UnaryExpression | SpreadElement;
|
|
1476
|
+
type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern;
|
|
1477
|
+
type Class = ClassExpression | ClassDeclaration;
|
|
1478
|
+
type ImportOrExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1479
|
+
type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
|
|
1480
|
+
type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier;
|
|
1481
|
+
type Accessor = ClassAccessorProperty;
|
|
1482
|
+
type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName;
|
|
1483
|
+
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;
|
|
1484
|
+
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;
|
|
1485
|
+
type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
|
|
1486
|
+
type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias;
|
|
1487
|
+
type FlowPredicate = DeclaredPredicate | InferredPredicate;
|
|
1488
|
+
type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
|
|
1489
|
+
type EnumMember = EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember;
|
|
1490
|
+
type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
|
|
1491
|
+
type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier;
|
|
1492
|
+
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;
|
|
1493
|
+
type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
|
|
1494
|
+
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;
|
|
1495
|
+
type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSTemplateLiteralType | TSLiteralType;
|
|
1496
|
+
type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1497
|
+
//#endregion
|
|
1498
|
+
//#region ../../node_modules/.pnpm/@babel+parser@7.29.0/node_modules/@babel/parser/typings/babel-parser.d.ts
|
|
1499
|
+
type BABEL_8_BREAKING = false;
|
|
1500
|
+
type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
|
|
1501
|
+
type Plugin$1 = "asyncDoExpressions" | IF_BABEL_7<"asyncGenerators"> | IF_BABEL_7<"bigInt"> | IF_BABEL_7<"classPrivateMethods"> | IF_BABEL_7<"classPrivateProperties"> | IF_BABEL_7<"classProperties"> | IF_BABEL_7<"classStaticBlock"> | IF_BABEL_7<"decimal"> | "decorators-legacy" | "deferredImportEvaluation" | "decoratorAutoAccessors" | "destructuringPrivate" | IF_BABEL_7<"deprecatedImportAssert"> | "doExpressions" | IF_BABEL_7<"dynamicImport"> | IF_BABEL_7<"explicitResourceManagement"> | "exportDefaultFrom" | IF_BABEL_7<"exportNamespaceFrom"> | "flow" | "flowComments" | "functionBind" | "functionSent" | "importMeta" | "jsx" | IF_BABEL_7<"jsonStrings"> | IF_BABEL_7<"logicalAssignment"> | IF_BABEL_7<"importAssertions"> | IF_BABEL_7<"importReflection"> | "moduleBlocks" | IF_BABEL_7<"moduleStringNames"> | IF_BABEL_7<"nullishCoalescingOperator"> | IF_BABEL_7<"numericSeparator"> | IF_BABEL_7<"objectRestSpread"> | IF_BABEL_7<"optionalCatchBinding"> | IF_BABEL_7<"optionalChaining"> | "partialApplication" | "placeholders" | IF_BABEL_7<"privateIn"> | IF_BABEL_7<"regexpUnicodeSets"> | "sourcePhaseImports" | "throwExpressions" | IF_BABEL_7<"topLevelAwait"> | "v8intrinsic" | ParserPluginWithOptions[0];
|
|
1502
|
+
type ParserPluginWithOptions = ["decorators", DecoratorsPluginOptions] | ["discardBinding", {
|
|
1503
|
+
syntaxType: "void";
|
|
1504
|
+
}] | ["estree", {
|
|
1505
|
+
classFeatures?: boolean;
|
|
1506
|
+
}] | IF_BABEL_7<["importAttributes", {
|
|
1507
|
+
deprecatedAssertSyntax: boolean;
|
|
1508
|
+
}]> | IF_BABEL_7<["moduleAttributes", {
|
|
1509
|
+
version: "may-2020";
|
|
1510
|
+
}]> | ["optionalChainingAssign", {
|
|
1511
|
+
version: "2023-07";
|
|
1512
|
+
}] | ["pipelineOperator", PipelineOperatorPluginOptions] | ["recordAndTuple", RecordAndTuplePluginOptions] | ["flow", FlowPluginOptions] | ["typescript", TypeScriptPluginOptions];
|
|
1513
|
+
type PluginConfig = Plugin$1 | ParserPluginWithOptions;
|
|
1514
|
+
interface DecoratorsPluginOptions {
|
|
1515
|
+
decoratorsBeforeExport?: boolean;
|
|
1516
|
+
allowCallParenthesized?: boolean;
|
|
1517
|
+
}
|
|
1518
|
+
interface PipelineOperatorPluginOptions {
|
|
1519
|
+
proposal: BABEL_8_BREAKING extends false ? "minimal" | "fsharp" | "hack" | "smart" : "fsharp" | "hack";
|
|
1520
|
+
topicToken?: "%" | "#" | "@@" | "^^" | "^";
|
|
1521
|
+
}
|
|
1522
|
+
interface RecordAndTuplePluginOptions {
|
|
1523
|
+
syntaxType: "bar" | "hash";
|
|
1524
|
+
}
|
|
1525
|
+
type FlowPluginOptions = BABEL_8_BREAKING extends true ? {
|
|
1526
|
+
all?: boolean;
|
|
1527
|
+
enums?: boolean;
|
|
1528
|
+
} : {
|
|
1529
|
+
all?: boolean;
|
|
1530
|
+
};
|
|
1531
|
+
interface TypeScriptPluginOptions {
|
|
1532
|
+
dts?: boolean;
|
|
1533
|
+
disallowAmbiguousJSXLike?: boolean;
|
|
1534
|
+
}
|
|
1535
|
+
//#endregion
|
|
1536
|
+
export { Node as a, SwitchCase as c, Identifier as i, BlockStatement as n, ObjectProperty as o, Function as r, Program as s, PluginConfig as t };
|