@typescript-eslint/types 8.8.2-alpha.0 → 8.8.2-alpha.10
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/dist/generated/ast-spec.d.ts +123 -123
- package/dist/generated/ast-spec.d.ts.map +1 -1
- package/dist/lib.d.ts +1 -1
- package/dist/lib.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -17,20 +17,21 @@ export declare interface AccessorPropertyNonComputedName extends PropertyDefinit
|
|
|
17
17
|
type: AST_NODE_TYPES.AccessorProperty;
|
|
18
18
|
}
|
|
19
19
|
export declare interface ArrayExpression extends BaseNode {
|
|
20
|
+
type: AST_NODE_TYPES.ArrayExpression;
|
|
20
21
|
/**
|
|
21
22
|
* an element will be `null` in the case of a sparse array: `[1, ,3]`
|
|
22
23
|
*/
|
|
23
24
|
elements: (Expression | SpreadElement | null)[];
|
|
24
|
-
type: AST_NODE_TYPES.ArrayExpression;
|
|
25
25
|
}
|
|
26
26
|
export declare interface ArrayPattern extends BaseNode {
|
|
27
|
+
type: AST_NODE_TYPES.ArrayPattern;
|
|
27
28
|
decorators: Decorator[];
|
|
28
29
|
elements: (DestructuringPattern | null)[];
|
|
29
30
|
optional: boolean;
|
|
30
|
-
type: AST_NODE_TYPES.ArrayPattern;
|
|
31
31
|
typeAnnotation: TSTypeAnnotation | undefined;
|
|
32
32
|
}
|
|
33
33
|
export declare interface ArrowFunctionExpression extends BaseNode {
|
|
34
|
+
type: AST_NODE_TYPES.ArrowFunctionExpression;
|
|
34
35
|
async: boolean;
|
|
35
36
|
body: BlockStatement | Expression;
|
|
36
37
|
expression: boolean;
|
|
@@ -38,14 +39,13 @@ export declare interface ArrowFunctionExpression extends BaseNode {
|
|
|
38
39
|
id: null;
|
|
39
40
|
params: Parameter[];
|
|
40
41
|
returnType: TSTypeAnnotation | undefined;
|
|
41
|
-
type: AST_NODE_TYPES.ArrowFunctionExpression;
|
|
42
42
|
typeParameters: TSTypeParameterDeclaration | undefined;
|
|
43
43
|
}
|
|
44
44
|
export declare interface AssignmentExpression extends BaseNode {
|
|
45
|
+
type: AST_NODE_TYPES.AssignmentExpression;
|
|
45
46
|
left: Expression;
|
|
46
47
|
operator: ValueOf<AssignmentOperatorToText>;
|
|
47
48
|
right: Expression;
|
|
48
|
-
type: AST_NODE_TYPES.AssignmentExpression;
|
|
49
49
|
}
|
|
50
50
|
export declare interface AssignmentOperatorToText {
|
|
51
51
|
[SyntaxKind.AmpersandAmpersandEqualsToken]: '&&=';
|
|
@@ -66,11 +66,11 @@ export declare interface AssignmentOperatorToText {
|
|
|
66
66
|
[SyntaxKind.SlashEqualsToken]: '/=';
|
|
67
67
|
}
|
|
68
68
|
export declare interface AssignmentPattern extends BaseNode {
|
|
69
|
+
type: AST_NODE_TYPES.AssignmentPattern;
|
|
69
70
|
decorators: Decorator[];
|
|
70
71
|
left: BindingName;
|
|
71
72
|
optional: boolean;
|
|
72
73
|
right: Expression;
|
|
73
|
-
type: AST_NODE_TYPES.AssignmentPattern;
|
|
74
74
|
typeAnnotation: TSTypeAnnotation | undefined;
|
|
75
75
|
}
|
|
76
76
|
export declare enum AST_NODE_TYPES {
|
|
@@ -259,8 +259,8 @@ export declare enum AST_TOKEN_TYPES {
|
|
|
259
259
|
Line = "Line"
|
|
260
260
|
}
|
|
261
261
|
export declare interface AwaitExpression extends BaseNode {
|
|
262
|
-
argument: Expression;
|
|
263
262
|
type: AST_NODE_TYPES.AwaitExpression;
|
|
263
|
+
argument: Expression;
|
|
264
264
|
}
|
|
265
265
|
export declare interface BaseNode extends NodeOrTokenData {
|
|
266
266
|
type: AST_NODE_TYPES;
|
|
@@ -274,10 +274,10 @@ export declare interface BigIntLiteral extends LiteralBase {
|
|
|
274
274
|
value: bigint | null;
|
|
275
275
|
}
|
|
276
276
|
export declare interface BinaryExpression extends BaseNode {
|
|
277
|
+
type: AST_NODE_TYPES.BinaryExpression;
|
|
277
278
|
left: Expression | PrivateIdentifier;
|
|
278
279
|
operator: ValueOf<BinaryOperatorToText>;
|
|
279
280
|
right: Expression;
|
|
280
|
-
type: AST_NODE_TYPES.BinaryExpression;
|
|
281
281
|
}
|
|
282
282
|
export declare interface BinaryOperatorToText {
|
|
283
283
|
[SyntaxKind.AmpersandAmpersandToken]: '&&';
|
|
@@ -311,8 +311,8 @@ export declare interface BlockComment extends BaseToken {
|
|
|
311
311
|
type: AST_TOKEN_TYPES.Block;
|
|
312
312
|
}
|
|
313
313
|
export declare interface BlockStatement extends BaseNode {
|
|
314
|
-
body: Statement[];
|
|
315
314
|
type: AST_NODE_TYPES.BlockStatement;
|
|
315
|
+
body: Statement[];
|
|
316
316
|
}
|
|
317
317
|
export declare interface BooleanLiteral extends LiteralBase {
|
|
318
318
|
raw: 'false' | 'true';
|
|
@@ -322,26 +322,26 @@ export declare interface BooleanToken extends BaseToken {
|
|
|
322
322
|
type: AST_TOKEN_TYPES.Boolean;
|
|
323
323
|
}
|
|
324
324
|
export declare interface BreakStatement extends BaseNode {
|
|
325
|
-
label: Identifier | null;
|
|
326
325
|
type: AST_NODE_TYPES.BreakStatement;
|
|
326
|
+
label: Identifier | null;
|
|
327
327
|
}
|
|
328
328
|
export declare interface CallExpression extends BaseNode {
|
|
329
|
+
type: AST_NODE_TYPES.CallExpression;
|
|
329
330
|
arguments: CallExpressionArgument[];
|
|
330
331
|
callee: Expression;
|
|
331
332
|
optional: boolean;
|
|
332
|
-
type: AST_NODE_TYPES.CallExpression;
|
|
333
333
|
typeArguments: TSTypeParameterInstantiation | undefined;
|
|
334
334
|
}
|
|
335
335
|
export declare type CallExpressionArgument = Expression | SpreadElement;
|
|
336
336
|
export declare interface CatchClause extends BaseNode {
|
|
337
|
+
type: AST_NODE_TYPES.CatchClause;
|
|
337
338
|
body: BlockStatement;
|
|
338
339
|
param: BindingName | null;
|
|
339
|
-
type: AST_NODE_TYPES.CatchClause;
|
|
340
340
|
}
|
|
341
341
|
export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression;
|
|
342
342
|
export declare interface ChainExpression extends BaseNode {
|
|
343
|
-
expression: ChainElement;
|
|
344
343
|
type: AST_NODE_TYPES.ChainExpression;
|
|
344
|
+
expression: ChainElement;
|
|
345
345
|
}
|
|
346
346
|
declare interface ClassBase extends BaseNode {
|
|
347
347
|
/**
|
|
@@ -398,8 +398,8 @@ declare interface ClassBase extends BaseNode {
|
|
|
398
398
|
typeParameters: TSTypeParameterDeclaration | undefined;
|
|
399
399
|
}
|
|
400
400
|
export declare interface ClassBody extends BaseNode {
|
|
401
|
-
body: ClassElement[];
|
|
402
401
|
type: AST_NODE_TYPES.ClassBody;
|
|
402
|
+
body: ClassElement[];
|
|
403
403
|
}
|
|
404
404
|
export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName;
|
|
405
405
|
declare interface ClassDeclarationBase extends ClassBase {
|
|
@@ -425,9 +425,9 @@ export declare interface ClassDeclarationWithOptionalName extends ClassDeclarati
|
|
|
425
425
|
}
|
|
426
426
|
export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature;
|
|
427
427
|
export declare interface ClassExpression extends ClassBase {
|
|
428
|
+
type: AST_NODE_TYPES.ClassExpression;
|
|
428
429
|
abstract: false;
|
|
429
430
|
declare: false;
|
|
430
|
-
type: AST_NODE_TYPES.ClassExpression;
|
|
431
431
|
}
|
|
432
432
|
declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase {
|
|
433
433
|
computed: false;
|
|
@@ -440,10 +440,10 @@ declare interface ClassPropertyDefinitionNonComputedNameBase extends PropertyDef
|
|
|
440
440
|
export declare type ClassPropertyNameNonComputed = PrivateIdentifier | PropertyNameNonComputed;
|
|
441
441
|
export declare type Comment = BlockComment | LineComment;
|
|
442
442
|
export declare interface ConditionalExpression extends BaseNode {
|
|
443
|
+
type: AST_NODE_TYPES.ConditionalExpression;
|
|
443
444
|
alternate: Expression;
|
|
444
445
|
consequent: Expression;
|
|
445
446
|
test: Expression;
|
|
446
|
-
type: AST_NODE_TYPES.ConditionalExpression;
|
|
447
447
|
}
|
|
448
448
|
export declare interface ConstDeclaration extends LetOrConstOrVarDeclarationBase {
|
|
449
449
|
/**
|
|
@@ -458,8 +458,8 @@ export declare interface ConstDeclaration extends LetOrConstOrVarDeclarationBase
|
|
|
458
458
|
kind: 'const';
|
|
459
459
|
}
|
|
460
460
|
export declare interface ContinueStatement extends BaseNode {
|
|
461
|
-
label: Identifier | null;
|
|
462
461
|
type: AST_NODE_TYPES.ContinueStatement;
|
|
462
|
+
label: Identifier | null;
|
|
463
463
|
}
|
|
464
464
|
export declare interface DebuggerStatement extends BaseNode {
|
|
465
465
|
type: AST_NODE_TYPES.DebuggerStatement;
|
|
@@ -470,21 +470,22 @@ export declare interface DebuggerStatement extends BaseNode {
|
|
|
470
470
|
*/
|
|
471
471
|
export declare type DeclarationStatement = ClassDeclaration | ClassExpression | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration;
|
|
472
472
|
export declare interface Decorator extends BaseNode {
|
|
473
|
-
expression: LeftHandSideExpression;
|
|
474
473
|
type: AST_NODE_TYPES.Decorator;
|
|
474
|
+
expression: LeftHandSideExpression;
|
|
475
475
|
}
|
|
476
476
|
export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration;
|
|
477
477
|
export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement;
|
|
478
478
|
export declare interface DoWhileStatement extends BaseNode {
|
|
479
|
+
type: AST_NODE_TYPES.DoWhileStatement;
|
|
479
480
|
body: Statement;
|
|
480
481
|
test: Expression;
|
|
481
|
-
type: AST_NODE_TYPES.DoWhileStatement;
|
|
482
482
|
}
|
|
483
483
|
export declare interface EmptyStatement extends BaseNode {
|
|
484
484
|
type: AST_NODE_TYPES.EmptyStatement;
|
|
485
485
|
}
|
|
486
486
|
export declare type EntityName = Identifier | ThisExpression | TSQualifiedName;
|
|
487
487
|
export declare interface ExportAllDeclaration extends BaseNode {
|
|
488
|
+
type: AST_NODE_TYPES.ExportAllDeclaration;
|
|
488
489
|
/**
|
|
489
490
|
* The assertions declared for the export.
|
|
490
491
|
* @example
|
|
@@ -514,11 +515,11 @@ export declare interface ExportAllDeclaration extends BaseNode {
|
|
|
514
515
|
* The source module being exported from.
|
|
515
516
|
*/
|
|
516
517
|
source: StringLiteral;
|
|
517
|
-
type: AST_NODE_TYPES.ExportAllDeclaration;
|
|
518
518
|
}
|
|
519
519
|
declare type ExportAndImportKind = 'type' | 'value';
|
|
520
520
|
export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations;
|
|
521
521
|
export declare interface ExportDefaultDeclaration extends BaseNode {
|
|
522
|
+
type: AST_NODE_TYPES.ExportDefaultDeclaration;
|
|
522
523
|
/**
|
|
523
524
|
* The declaration being exported.
|
|
524
525
|
*/
|
|
@@ -527,11 +528,11 @@ export declare interface ExportDefaultDeclaration extends BaseNode {
|
|
|
527
528
|
* The kind of the export. Always `value` for default exports.
|
|
528
529
|
*/
|
|
529
530
|
exportKind: 'value';
|
|
530
|
-
type: AST_NODE_TYPES.ExportDefaultDeclaration;
|
|
531
531
|
}
|
|
532
532
|
declare type ExportKind = ExportAndImportKind;
|
|
533
533
|
export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource;
|
|
534
534
|
declare interface ExportNamedDeclarationBase extends BaseNode {
|
|
535
|
+
type: AST_NODE_TYPES.ExportNamedDeclaration;
|
|
535
536
|
/**
|
|
536
537
|
* The assertions declared for the export.
|
|
537
538
|
* @example
|
|
@@ -577,7 +578,6 @@ declare interface ExportNamedDeclarationBase extends BaseNode {
|
|
|
577
578
|
* This will be an empty array if `declaration` is not `null`
|
|
578
579
|
*/
|
|
579
580
|
specifiers: ExportSpecifier[];
|
|
580
|
-
type: AST_NODE_TYPES.ExportNamedDeclaration;
|
|
581
581
|
}
|
|
582
582
|
/**
|
|
583
583
|
* Exporting names from the current module.
|
|
@@ -633,37 +633,37 @@ export declare interface ExportNamedDeclarationWithSource extends ExportNamedDec
|
|
|
633
633
|
source: StringLiteral;
|
|
634
634
|
}
|
|
635
635
|
export declare interface ExportSpecifier extends BaseNode {
|
|
636
|
+
type: AST_NODE_TYPES.ExportSpecifier;
|
|
636
637
|
exported: Identifier;
|
|
637
638
|
exportKind: ExportKind;
|
|
638
639
|
local: Identifier;
|
|
639
|
-
type: AST_NODE_TYPES.ExportSpecifier;
|
|
640
640
|
}
|
|
641
641
|
export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression;
|
|
642
642
|
export declare interface ExpressionStatement extends BaseNode {
|
|
643
|
+
type: AST_NODE_TYPES.ExpressionStatement;
|
|
643
644
|
directive: string | undefined;
|
|
644
645
|
expression: Expression;
|
|
645
|
-
type: AST_NODE_TYPES.ExpressionStatement;
|
|
646
646
|
}
|
|
647
647
|
export declare type ForInitialiser = Expression | LetOrConstOrVarDeclaration;
|
|
648
648
|
export declare interface ForInStatement extends BaseNode {
|
|
649
|
+
type: AST_NODE_TYPES.ForInStatement;
|
|
649
650
|
body: Statement;
|
|
650
651
|
left: ForInitialiser;
|
|
651
652
|
right: Expression;
|
|
652
|
-
type: AST_NODE_TYPES.ForInStatement;
|
|
653
653
|
}
|
|
654
654
|
declare type ForOfInitialiser = Expression | LetOrConstOrVarDeclaration | UsingInForOfDeclaration;
|
|
655
655
|
export declare interface ForOfStatement extends BaseNode {
|
|
656
|
+
type: AST_NODE_TYPES.ForOfStatement;
|
|
656
657
|
await: boolean;
|
|
657
658
|
body: Statement;
|
|
658
659
|
left: ForOfInitialiser;
|
|
659
660
|
right: Expression;
|
|
660
|
-
type: AST_NODE_TYPES.ForOfStatement;
|
|
661
661
|
}
|
|
662
662
|
export declare interface ForStatement extends BaseNode {
|
|
663
|
+
type: AST_NODE_TYPES.ForStatement;
|
|
663
664
|
body: Statement;
|
|
664
665
|
init: Expression | ForInitialiser | null;
|
|
665
666
|
test: Expression | null;
|
|
666
|
-
type: AST_NODE_TYPES.ForStatement;
|
|
667
667
|
update: Expression | null;
|
|
668
668
|
}
|
|
669
669
|
declare interface FunctionBase extends BaseNode {
|
|
@@ -731,10 +731,10 @@ declare interface FunctionBase extends BaseNode {
|
|
|
731
731
|
}
|
|
732
732
|
export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName;
|
|
733
733
|
declare interface FunctionDeclarationBase extends FunctionBase {
|
|
734
|
+
type: AST_NODE_TYPES.FunctionDeclaration;
|
|
734
735
|
body: BlockStatement;
|
|
735
736
|
declare: false;
|
|
736
737
|
expression: false;
|
|
737
|
-
type: AST_NODE_TYPES.FunctionDeclaration;
|
|
738
738
|
}
|
|
739
739
|
/**
|
|
740
740
|
* A normal function declaration:
|
|
@@ -755,34 +755,35 @@ export declare interface FunctionDeclarationWithOptionalName extends FunctionDec
|
|
|
755
755
|
id: Identifier | null;
|
|
756
756
|
}
|
|
757
757
|
export declare interface FunctionExpression extends FunctionBase {
|
|
758
|
+
type: AST_NODE_TYPES.FunctionExpression;
|
|
758
759
|
body: BlockStatement;
|
|
759
760
|
expression: false;
|
|
760
|
-
type: AST_NODE_TYPES.FunctionExpression;
|
|
761
761
|
}
|
|
762
762
|
export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression;
|
|
763
763
|
export declare interface Identifier extends BaseNode {
|
|
764
|
+
type: AST_NODE_TYPES.Identifier;
|
|
764
765
|
decorators: Decorator[];
|
|
765
766
|
name: string;
|
|
766
767
|
optional: boolean;
|
|
767
|
-
type: AST_NODE_TYPES.Identifier;
|
|
768
768
|
typeAnnotation: TSTypeAnnotation | undefined;
|
|
769
769
|
}
|
|
770
770
|
export declare interface IdentifierToken extends BaseToken {
|
|
771
771
|
type: AST_TOKEN_TYPES.Identifier;
|
|
772
772
|
}
|
|
773
773
|
export declare interface IfStatement extends BaseNode {
|
|
774
|
+
type: AST_NODE_TYPES.IfStatement;
|
|
774
775
|
alternate: Statement | null;
|
|
775
776
|
consequent: Statement;
|
|
776
777
|
test: Expression;
|
|
777
|
-
type: AST_NODE_TYPES.IfStatement;
|
|
778
778
|
}
|
|
779
779
|
export declare interface ImportAttribute extends BaseNode {
|
|
780
|
-
key: Identifier | Literal;
|
|
781
780
|
type: AST_NODE_TYPES.ImportAttribute;
|
|
781
|
+
key: Identifier | Literal;
|
|
782
782
|
value: Literal;
|
|
783
783
|
}
|
|
784
784
|
export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier;
|
|
785
785
|
export declare interface ImportDeclaration extends BaseNode {
|
|
786
|
+
type: AST_NODE_TYPES.ImportDeclaration;
|
|
786
787
|
/**
|
|
787
788
|
* The assertions declared for the export.
|
|
788
789
|
* @example
|
|
@@ -820,101 +821,100 @@ export declare interface ImportDeclaration extends BaseNode {
|
|
|
820
821
|
* ```
|
|
821
822
|
*/
|
|
822
823
|
specifiers: ImportClause[];
|
|
823
|
-
type: AST_NODE_TYPES.ImportDeclaration;
|
|
824
824
|
}
|
|
825
825
|
export declare interface ImportDefaultSpecifier extends BaseNode {
|
|
826
|
-
local: Identifier;
|
|
827
826
|
type: AST_NODE_TYPES.ImportDefaultSpecifier;
|
|
827
|
+
local: Identifier;
|
|
828
828
|
}
|
|
829
829
|
export declare interface ImportExpression extends BaseNode {
|
|
830
|
+
type: AST_NODE_TYPES.ImportExpression;
|
|
830
831
|
attributes: Expression | null;
|
|
831
832
|
source: Expression;
|
|
832
|
-
type: AST_NODE_TYPES.ImportExpression;
|
|
833
833
|
}
|
|
834
834
|
declare type ImportKind = ExportAndImportKind;
|
|
835
835
|
export declare interface ImportNamespaceSpecifier extends BaseNode {
|
|
836
|
-
local: Identifier;
|
|
837
836
|
type: AST_NODE_TYPES.ImportNamespaceSpecifier;
|
|
837
|
+
local: Identifier;
|
|
838
838
|
}
|
|
839
839
|
export declare interface ImportSpecifier extends BaseNode {
|
|
840
|
+
type: AST_NODE_TYPES.ImportSpecifier;
|
|
840
841
|
imported: Identifier;
|
|
841
842
|
importKind: ImportKind;
|
|
842
843
|
local: Identifier;
|
|
843
|
-
type: AST_NODE_TYPES.ImportSpecifier;
|
|
844
844
|
}
|
|
845
845
|
export declare type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement;
|
|
846
846
|
export declare interface JSXAttribute extends BaseNode {
|
|
847
|
-
name: JSXIdentifier | JSXNamespacedName;
|
|
848
847
|
type: AST_NODE_TYPES.JSXAttribute;
|
|
848
|
+
name: JSXIdentifier | JSXNamespacedName;
|
|
849
849
|
value: JSXElement | JSXExpression | Literal | null;
|
|
850
850
|
}
|
|
851
851
|
export declare type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText;
|
|
852
852
|
export declare interface JSXClosingElement extends BaseNode {
|
|
853
|
-
name: JSXTagNameExpression;
|
|
854
853
|
type: AST_NODE_TYPES.JSXClosingElement;
|
|
854
|
+
name: JSXTagNameExpression;
|
|
855
855
|
}
|
|
856
856
|
export declare interface JSXClosingFragment extends BaseNode {
|
|
857
857
|
type: AST_NODE_TYPES.JSXClosingFragment;
|
|
858
858
|
}
|
|
859
859
|
export declare interface JSXElement extends BaseNode {
|
|
860
|
+
type: AST_NODE_TYPES.JSXElement;
|
|
860
861
|
children: JSXChild[];
|
|
861
862
|
closingElement: JSXClosingElement | null;
|
|
862
863
|
openingElement: JSXOpeningElement;
|
|
863
|
-
type: AST_NODE_TYPES.JSXElement;
|
|
864
864
|
}
|
|
865
865
|
export declare interface JSXEmptyExpression extends BaseNode {
|
|
866
866
|
type: AST_NODE_TYPES.JSXEmptyExpression;
|
|
867
867
|
}
|
|
868
868
|
export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild;
|
|
869
869
|
export declare interface JSXExpressionContainer extends BaseNode {
|
|
870
|
-
expression: Expression | JSXEmptyExpression;
|
|
871
870
|
type: AST_NODE_TYPES.JSXExpressionContainer;
|
|
871
|
+
expression: Expression | JSXEmptyExpression;
|
|
872
872
|
}
|
|
873
873
|
export declare interface JSXFragment extends BaseNode {
|
|
874
|
+
type: AST_NODE_TYPES.JSXFragment;
|
|
874
875
|
children: JSXChild[];
|
|
875
876
|
closingFragment: JSXClosingFragment;
|
|
876
877
|
openingFragment: JSXOpeningFragment;
|
|
877
|
-
type: AST_NODE_TYPES.JSXFragment;
|
|
878
878
|
}
|
|
879
879
|
export declare interface JSXIdentifier extends BaseNode {
|
|
880
|
-
name: string;
|
|
881
880
|
type: AST_NODE_TYPES.JSXIdentifier;
|
|
881
|
+
name: string;
|
|
882
882
|
}
|
|
883
883
|
export declare interface JSXIdentifierToken extends BaseToken {
|
|
884
884
|
type: AST_TOKEN_TYPES.JSXIdentifier;
|
|
885
885
|
}
|
|
886
886
|
export declare interface JSXMemberExpression extends BaseNode {
|
|
887
|
+
type: AST_NODE_TYPES.JSXMemberExpression;
|
|
887
888
|
object: JSXTagNameExpression;
|
|
888
889
|
property: JSXIdentifier;
|
|
889
|
-
type: AST_NODE_TYPES.JSXMemberExpression;
|
|
890
890
|
}
|
|
891
891
|
export declare interface JSXNamespacedName extends BaseNode {
|
|
892
|
+
type: AST_NODE_TYPES.JSXNamespacedName;
|
|
892
893
|
name: JSXIdentifier;
|
|
893
894
|
namespace: JSXIdentifier;
|
|
894
|
-
type: AST_NODE_TYPES.JSXNamespacedName;
|
|
895
895
|
}
|
|
896
896
|
export declare interface JSXOpeningElement extends BaseNode {
|
|
897
|
+
type: AST_NODE_TYPES.JSXOpeningElement;
|
|
897
898
|
attributes: (JSXAttribute | JSXSpreadAttribute)[];
|
|
898
899
|
name: JSXTagNameExpression;
|
|
899
900
|
selfClosing: boolean;
|
|
900
|
-
type: AST_NODE_TYPES.JSXOpeningElement;
|
|
901
901
|
typeArguments: TSTypeParameterInstantiation | undefined;
|
|
902
902
|
}
|
|
903
903
|
export declare interface JSXOpeningFragment extends BaseNode {
|
|
904
904
|
type: AST_NODE_TYPES.JSXOpeningFragment;
|
|
905
905
|
}
|
|
906
906
|
export declare interface JSXSpreadAttribute extends BaseNode {
|
|
907
|
-
argument: Expression;
|
|
908
907
|
type: AST_NODE_TYPES.JSXSpreadAttribute;
|
|
908
|
+
argument: Expression;
|
|
909
909
|
}
|
|
910
910
|
export declare interface JSXSpreadChild extends BaseNode {
|
|
911
|
-
expression: Expression | JSXEmptyExpression;
|
|
912
911
|
type: AST_NODE_TYPES.JSXSpreadChild;
|
|
912
|
+
expression: Expression | JSXEmptyExpression;
|
|
913
913
|
}
|
|
914
914
|
export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
|
|
915
915
|
export declare interface JSXText extends BaseNode {
|
|
916
|
-
raw: string;
|
|
917
916
|
type: AST_NODE_TYPES.JSXText;
|
|
917
|
+
raw: string;
|
|
918
918
|
value: string;
|
|
919
919
|
}
|
|
920
920
|
export declare interface JSXTextToken extends BaseToken {
|
|
@@ -924,13 +924,14 @@ export declare interface KeywordToken extends BaseToken {
|
|
|
924
924
|
type: AST_TOKEN_TYPES.Keyword;
|
|
925
925
|
}
|
|
926
926
|
export declare interface LabeledStatement extends BaseNode {
|
|
927
|
+
type: AST_NODE_TYPES.LabeledStatement;
|
|
927
928
|
body: Statement;
|
|
928
929
|
label: Identifier;
|
|
929
|
-
type: AST_NODE_TYPES.LabeledStatement;
|
|
930
930
|
}
|
|
931
931
|
export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion;
|
|
932
932
|
export declare type LetOrConstOrVarDeclaration = ConstDeclaration | LetOrVarDeclaredDeclaration | LetOrVarNonDeclaredDeclaration;
|
|
933
933
|
declare interface LetOrConstOrVarDeclarationBase extends BaseNode {
|
|
934
|
+
type: AST_NODE_TYPES.VariableDeclaration;
|
|
934
935
|
/**
|
|
935
936
|
* The variables declared by this declaration.
|
|
936
937
|
* Always non-empty.
|
|
@@ -959,7 +960,6 @@ declare interface LetOrConstOrVarDeclarationBase extends BaseNode {
|
|
|
959
960
|
* ```
|
|
960
961
|
*/
|
|
961
962
|
kind: 'const' | 'let' | 'var';
|
|
962
|
-
type: AST_NODE_TYPES.VariableDeclaration;
|
|
963
963
|
}
|
|
964
964
|
export declare type LetOrConstOrVarDeclarator = VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit | VariableDeclaratorNoInit;
|
|
965
965
|
export declare interface LetOrVarDeclaredDeclaration extends LetOrConstOrVarDeclarationBase {
|
|
@@ -991,16 +991,16 @@ export declare interface LineComment extends BaseToken {
|
|
|
991
991
|
}
|
|
992
992
|
export declare type Literal = BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral;
|
|
993
993
|
declare interface LiteralBase extends BaseNode {
|
|
994
|
-
raw: string;
|
|
995
994
|
type: AST_NODE_TYPES.Literal;
|
|
995
|
+
raw: string;
|
|
996
996
|
value: RegExp | bigint | boolean | number | string | null;
|
|
997
997
|
}
|
|
998
998
|
export declare type LiteralExpression = Literal | TemplateLiteral;
|
|
999
999
|
export declare interface LogicalExpression extends BaseNode {
|
|
1000
|
+
type: AST_NODE_TYPES.LogicalExpression;
|
|
1000
1001
|
left: Expression;
|
|
1001
1002
|
operator: '&&' | '??' | '||';
|
|
1002
1003
|
right: Expression;
|
|
1003
|
-
type: AST_NODE_TYPES.LogicalExpression;
|
|
1004
1004
|
}
|
|
1005
1005
|
export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName;
|
|
1006
1006
|
declare interface MemberExpressionBase extends BaseNode {
|
|
@@ -1010,19 +1010,19 @@ declare interface MemberExpressionBase extends BaseNode {
|
|
|
1010
1010
|
property: Expression | Identifier | PrivateIdentifier;
|
|
1011
1011
|
}
|
|
1012
1012
|
export declare interface MemberExpressionComputedName extends MemberExpressionBase {
|
|
1013
|
+
type: AST_NODE_TYPES.MemberExpression;
|
|
1013
1014
|
computed: true;
|
|
1014
1015
|
property: Expression;
|
|
1015
|
-
type: AST_NODE_TYPES.MemberExpression;
|
|
1016
1016
|
}
|
|
1017
1017
|
export declare interface MemberExpressionNonComputedName extends MemberExpressionBase {
|
|
1018
|
+
type: AST_NODE_TYPES.MemberExpression;
|
|
1018
1019
|
computed: false;
|
|
1019
1020
|
property: Identifier | PrivateIdentifier;
|
|
1020
|
-
type: AST_NODE_TYPES.MemberExpression;
|
|
1021
1021
|
}
|
|
1022
1022
|
export declare interface MetaProperty extends BaseNode {
|
|
1023
|
+
type: AST_NODE_TYPES.MetaProperty;
|
|
1023
1024
|
meta: Identifier;
|
|
1024
1025
|
property: Identifier;
|
|
1025
|
-
type: AST_NODE_TYPES.MetaProperty;
|
|
1026
1026
|
}
|
|
1027
1027
|
export declare type MethodDefinition = MethodDefinitionComputedName | MethodDefinitionNonComputedName;
|
|
1028
1028
|
/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */
|
|
@@ -1053,13 +1053,14 @@ declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBa
|
|
|
1053
1053
|
}
|
|
1054
1054
|
export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration;
|
|
1055
1055
|
export declare interface NewExpression extends BaseNode {
|
|
1056
|
+
type: AST_NODE_TYPES.NewExpression;
|
|
1056
1057
|
arguments: CallExpressionArgument[];
|
|
1057
1058
|
callee: Expression;
|
|
1058
|
-
type: AST_NODE_TYPES.NewExpression;
|
|
1059
1059
|
typeArguments: TSTypeParameterInstantiation | undefined;
|
|
1060
1060
|
}
|
|
1061
1061
|
export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
|
|
1062
1062
|
export declare interface NodeOrTokenData {
|
|
1063
|
+
type: string;
|
|
1063
1064
|
/**
|
|
1064
1065
|
* The source location information of the node.
|
|
1065
1066
|
*
|
|
@@ -1067,7 +1068,6 @@ export declare interface NodeOrTokenData {
|
|
|
1067
1068
|
*/
|
|
1068
1069
|
loc: SourceLocation;
|
|
1069
1070
|
range: Range;
|
|
1070
|
-
type: string;
|
|
1071
1071
|
}
|
|
1072
1072
|
export declare interface NullLiteral extends LiteralBase {
|
|
1073
1073
|
raw: 'null';
|
|
@@ -1083,16 +1083,16 @@ export declare interface NumericToken extends BaseToken {
|
|
|
1083
1083
|
type: AST_TOKEN_TYPES.Numeric;
|
|
1084
1084
|
}
|
|
1085
1085
|
export declare interface ObjectExpression extends BaseNode {
|
|
1086
|
-
properties: ObjectLiteralElement[];
|
|
1087
1086
|
type: AST_NODE_TYPES.ObjectExpression;
|
|
1087
|
+
properties: ObjectLiteralElement[];
|
|
1088
1088
|
}
|
|
1089
1089
|
export declare type ObjectLiteralElement = Property | SpreadElement;
|
|
1090
1090
|
export declare type ObjectLiteralElementLike = ObjectLiteralElement;
|
|
1091
1091
|
export declare interface ObjectPattern extends BaseNode {
|
|
1092
|
+
type: AST_NODE_TYPES.ObjectPattern;
|
|
1092
1093
|
decorators: Decorator[];
|
|
1093
1094
|
optional: boolean;
|
|
1094
1095
|
properties: (Property | RestElement)[];
|
|
1095
|
-
type: AST_NODE_TYPES.ObjectPattern;
|
|
1096
1096
|
typeAnnotation: TSTypeAnnotation | undefined;
|
|
1097
1097
|
}
|
|
1098
1098
|
export declare type OptionalRangeAndLoc<T> = {
|
|
@@ -1112,26 +1112,26 @@ export declare interface Position {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword;
|
|
1114
1114
|
export declare interface PrivateIdentifier extends BaseNode {
|
|
1115
|
-
name: string;
|
|
1116
1115
|
type: AST_NODE_TYPES.PrivateIdentifier;
|
|
1116
|
+
name: string;
|
|
1117
1117
|
}
|
|
1118
1118
|
export declare interface Program extends NodeOrTokenData {
|
|
1119
|
+
type: AST_NODE_TYPES.Program;
|
|
1119
1120
|
body: ProgramStatement[];
|
|
1120
1121
|
comments: Comment[] | undefined;
|
|
1121
1122
|
sourceType: 'module' | 'script';
|
|
1122
1123
|
tokens: Token[] | undefined;
|
|
1123
|
-
type: AST_NODE_TYPES.Program;
|
|
1124
1124
|
}
|
|
1125
1125
|
export declare type ProgramStatement = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | Statement | TSImportEqualsDeclaration | TSNamespaceExportDeclaration;
|
|
1126
1126
|
export declare type Property = PropertyComputedName | PropertyNonComputedName;
|
|
1127
1127
|
declare interface PropertyBase extends BaseNode {
|
|
1128
|
+
type: AST_NODE_TYPES.Property;
|
|
1128
1129
|
computed: boolean;
|
|
1129
1130
|
key: PropertyName;
|
|
1130
1131
|
kind: 'get' | 'init' | 'set';
|
|
1131
1132
|
method: boolean;
|
|
1132
1133
|
optional: boolean;
|
|
1133
1134
|
shorthand: boolean;
|
|
1134
|
-
type: AST_NODE_TYPES.Property;
|
|
1135
1135
|
value: AssignmentPattern | BindingName | Expression | TSEmptyBodyFunctionExpression;
|
|
1136
1136
|
}
|
|
1137
1137
|
export declare interface PropertyComputedName extends PropertyBase {
|
|
@@ -1239,27 +1239,27 @@ export declare interface RegExpLiteral extends LiteralBase {
|
|
|
1239
1239
|
value: RegExp | null;
|
|
1240
1240
|
}
|
|
1241
1241
|
export declare interface RegularExpressionToken extends BaseToken {
|
|
1242
|
+
type: AST_TOKEN_TYPES.RegularExpression;
|
|
1242
1243
|
regex: {
|
|
1243
1244
|
flags: string;
|
|
1244
1245
|
pattern: string;
|
|
1245
1246
|
};
|
|
1246
|
-
type: AST_TOKEN_TYPES.RegularExpression;
|
|
1247
1247
|
}
|
|
1248
1248
|
export declare interface RestElement extends BaseNode {
|
|
1249
|
+
type: AST_NODE_TYPES.RestElement;
|
|
1249
1250
|
argument: DestructuringPattern;
|
|
1250
1251
|
decorators: Decorator[];
|
|
1251
1252
|
optional: boolean;
|
|
1252
|
-
type: AST_NODE_TYPES.RestElement;
|
|
1253
1253
|
typeAnnotation: TSTypeAnnotation | undefined;
|
|
1254
1254
|
value: AssignmentPattern | undefined;
|
|
1255
1255
|
}
|
|
1256
1256
|
export declare interface ReturnStatement extends BaseNode {
|
|
1257
|
-
argument: Expression | null;
|
|
1258
1257
|
type: AST_NODE_TYPES.ReturnStatement;
|
|
1258
|
+
argument: Expression | null;
|
|
1259
1259
|
}
|
|
1260
1260
|
export declare interface SequenceExpression extends BaseNode {
|
|
1261
|
-
expressions: Expression[];
|
|
1262
1261
|
type: AST_NODE_TYPES.SequenceExpression;
|
|
1262
|
+
expressions: Expression[];
|
|
1263
1263
|
}
|
|
1264
1264
|
export declare interface SourceLocation {
|
|
1265
1265
|
/**
|
|
@@ -1272,13 +1272,13 @@ export declare interface SourceLocation {
|
|
|
1272
1272
|
start: Position;
|
|
1273
1273
|
}
|
|
1274
1274
|
export declare interface SpreadElement extends BaseNode {
|
|
1275
|
-
argument: Expression;
|
|
1276
1275
|
type: AST_NODE_TYPES.SpreadElement;
|
|
1276
|
+
argument: Expression;
|
|
1277
1277
|
}
|
|
1278
1278
|
export declare type Statement = BlockStatement | BreakStatement | ClassDeclarationWithName | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclarationWithName | IfStatement | ImportDeclaration | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | TSDeclareFunction | TSEnumDeclaration | TSExportAssignment | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration | VariableDeclaration | WhileStatement | WithStatement;
|
|
1279
1279
|
export declare interface StaticBlock extends BaseNode {
|
|
1280
|
-
body: Statement[];
|
|
1281
1280
|
type: AST_NODE_TYPES.StaticBlock;
|
|
1281
|
+
body: Statement[];
|
|
1282
1282
|
}
|
|
1283
1283
|
export declare interface StringLiteral extends LiteralBase {
|
|
1284
1284
|
value: string;
|
|
@@ -1290,33 +1290,33 @@ export declare interface Super extends BaseNode {
|
|
|
1290
1290
|
type: AST_NODE_TYPES.Super;
|
|
1291
1291
|
}
|
|
1292
1292
|
export declare interface SwitchCase extends BaseNode {
|
|
1293
|
+
type: AST_NODE_TYPES.SwitchCase;
|
|
1293
1294
|
consequent: Statement[];
|
|
1294
1295
|
test: Expression | null;
|
|
1295
|
-
type: AST_NODE_TYPES.SwitchCase;
|
|
1296
1296
|
}
|
|
1297
1297
|
export declare interface SwitchStatement extends BaseNode {
|
|
1298
|
+
type: AST_NODE_TYPES.SwitchStatement;
|
|
1298
1299
|
cases: SwitchCase[];
|
|
1299
1300
|
discriminant: Expression;
|
|
1300
|
-
type: AST_NODE_TYPES.SwitchStatement;
|
|
1301
1301
|
}
|
|
1302
1302
|
export declare interface TaggedTemplateExpression extends BaseNode {
|
|
1303
|
+
type: AST_NODE_TYPES.TaggedTemplateExpression;
|
|
1303
1304
|
quasi: TemplateLiteral;
|
|
1304
1305
|
tag: Expression;
|
|
1305
|
-
type: AST_NODE_TYPES.TaggedTemplateExpression;
|
|
1306
1306
|
typeArguments: TSTypeParameterInstantiation | undefined;
|
|
1307
1307
|
}
|
|
1308
1308
|
export declare interface TemplateElement extends BaseNode {
|
|
1309
|
-
tail: boolean;
|
|
1310
1309
|
type: AST_NODE_TYPES.TemplateElement;
|
|
1310
|
+
tail: boolean;
|
|
1311
1311
|
value: {
|
|
1312
1312
|
cooked: string;
|
|
1313
1313
|
raw: string;
|
|
1314
1314
|
};
|
|
1315
1315
|
}
|
|
1316
1316
|
export declare interface TemplateLiteral extends BaseNode {
|
|
1317
|
+
type: AST_NODE_TYPES.TemplateLiteral;
|
|
1317
1318
|
expressions: Expression[];
|
|
1318
1319
|
quasis: TemplateElement[];
|
|
1319
|
-
type: AST_NODE_TYPES.TemplateLiteral;
|
|
1320
1320
|
}
|
|
1321
1321
|
export declare interface TemplateToken extends BaseToken {
|
|
1322
1322
|
type: AST_TOKEN_TYPES.Template;
|
|
@@ -1325,15 +1325,15 @@ export declare interface ThisExpression extends BaseNode {
|
|
|
1325
1325
|
type: AST_NODE_TYPES.ThisExpression;
|
|
1326
1326
|
}
|
|
1327
1327
|
export declare interface ThrowStatement extends BaseNode {
|
|
1328
|
-
argument: Expression;
|
|
1329
1328
|
type: AST_NODE_TYPES.ThrowStatement;
|
|
1329
|
+
argument: Expression;
|
|
1330
1330
|
}
|
|
1331
1331
|
export declare type Token = BooleanToken | Comment | IdentifierToken | JSXIdentifierToken | JSXTextToken | KeywordToken | NullToken | NumericToken | PunctuatorToken | RegularExpressionToken | StringToken | TemplateToken;
|
|
1332
1332
|
export declare interface TryStatement extends BaseNode {
|
|
1333
|
+
type: AST_NODE_TYPES.TryStatement;
|
|
1333
1334
|
block: BlockStatement;
|
|
1334
1335
|
finalizer: BlockStatement | null;
|
|
1335
1336
|
handler: CatchClause | null;
|
|
1336
|
-
type: AST_NODE_TYPES.TryStatement;
|
|
1337
1337
|
}
|
|
1338
1338
|
export declare type TSAbstractAccessorProperty = TSAbstractAccessorPropertyComputedName | TSAbstractAccessorPropertyNonComputedName;
|
|
1339
1339
|
export declare interface TSAbstractAccessorPropertyComputedName extends PropertyDefinitionComputedNameBase {
|
|
@@ -1367,12 +1367,12 @@ export declare interface TSAnyKeyword extends BaseNode {
|
|
|
1367
1367
|
type: AST_NODE_TYPES.TSAnyKeyword;
|
|
1368
1368
|
}
|
|
1369
1369
|
export declare interface TSArrayType extends BaseNode {
|
|
1370
|
-
elementType: TypeNode;
|
|
1371
1370
|
type: AST_NODE_TYPES.TSArrayType;
|
|
1371
|
+
elementType: TypeNode;
|
|
1372
1372
|
}
|
|
1373
1373
|
export declare interface TSAsExpression extends BaseNode {
|
|
1374
|
-
expression: Expression;
|
|
1375
1374
|
type: AST_NODE_TYPES.TSAsExpression;
|
|
1375
|
+
expression: Expression;
|
|
1376
1376
|
typeAnnotation: TypeNode;
|
|
1377
1377
|
}
|
|
1378
1378
|
export declare interface TSAsyncKeyword extends BaseNode {
|
|
@@ -1391,21 +1391,22 @@ export declare interface TSClassImplements extends TSHeritageBase {
|
|
|
1391
1391
|
type: AST_NODE_TYPES.TSClassImplements;
|
|
1392
1392
|
}
|
|
1393
1393
|
export declare interface TSConditionalType extends BaseNode {
|
|
1394
|
+
type: AST_NODE_TYPES.TSConditionalType;
|
|
1394
1395
|
checkType: TypeNode;
|
|
1395
1396
|
extendsType: TypeNode;
|
|
1396
1397
|
falseType: TypeNode;
|
|
1397
1398
|
trueType: TypeNode;
|
|
1398
|
-
type: AST_NODE_TYPES.TSConditionalType;
|
|
1399
1399
|
}
|
|
1400
1400
|
export declare interface TSConstructorType extends TSFunctionSignatureBase {
|
|
1401
|
-
abstract: boolean;
|
|
1402
1401
|
type: AST_NODE_TYPES.TSConstructorType;
|
|
1402
|
+
abstract: boolean;
|
|
1403
1403
|
}
|
|
1404
1404
|
export declare interface TSConstructSignatureDeclaration extends TSFunctionSignatureBase {
|
|
1405
1405
|
type: AST_NODE_TYPES.TSConstructSignatureDeclaration;
|
|
1406
1406
|
}
|
|
1407
1407
|
export declare type TSDeclareFunction = TSDeclareFunctionNoDeclare | TSDeclareFunctionWithDeclare;
|
|
1408
1408
|
declare interface TSDeclareFunctionBase extends FunctionBase {
|
|
1409
|
+
type: AST_NODE_TYPES.TSDeclareFunction;
|
|
1409
1410
|
/**
|
|
1410
1411
|
* TS1183: An implementation cannot be declared in ambient contexts.
|
|
1411
1412
|
*/
|
|
@@ -1415,7 +1416,6 @@ declare interface TSDeclareFunctionBase extends FunctionBase {
|
|
|
1415
1416
|
*/
|
|
1416
1417
|
declare: boolean;
|
|
1417
1418
|
expression: false;
|
|
1418
|
-
type: AST_NODE_TYPES.TSDeclareFunction;
|
|
1419
1419
|
}
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Function declaration without the `declare` keyword:
|
|
@@ -1454,15 +1454,16 @@ export declare interface TSDeclareKeyword extends BaseNode {
|
|
|
1454
1454
|
type: AST_NODE_TYPES.TSDeclareKeyword;
|
|
1455
1455
|
}
|
|
1456
1456
|
export declare interface TSEmptyBodyFunctionExpression extends FunctionBase {
|
|
1457
|
+
type: AST_NODE_TYPES.TSEmptyBodyFunctionExpression;
|
|
1457
1458
|
body: null;
|
|
1458
1459
|
id: null;
|
|
1459
|
-
type: AST_NODE_TYPES.TSEmptyBodyFunctionExpression;
|
|
1460
1460
|
}
|
|
1461
1461
|
export declare interface TSEnumBody extends BaseNode {
|
|
1462
|
-
members: TSEnumMember[];
|
|
1463
1462
|
type: AST_NODE_TYPES.TSEnumBody;
|
|
1463
|
+
members: TSEnumMember[];
|
|
1464
1464
|
}
|
|
1465
1465
|
export declare interface TSEnumDeclaration extends BaseNode {
|
|
1466
|
+
type: AST_NODE_TYPES.TSEnumDeclaration;
|
|
1466
1467
|
/**
|
|
1467
1468
|
* The body of the enum.
|
|
1468
1469
|
*/
|
|
@@ -1492,14 +1493,13 @@ export declare interface TSEnumDeclaration extends BaseNode {
|
|
|
1492
1493
|
* @deprecated Use {@link body} instead.
|
|
1493
1494
|
*/
|
|
1494
1495
|
members: TSEnumMember[];
|
|
1495
|
-
type: AST_NODE_TYPES.TSEnumDeclaration;
|
|
1496
1496
|
}
|
|
1497
1497
|
export declare type TSEnumMember = TSEnumMemberComputedName | TSEnumMemberNonComputedName;
|
|
1498
1498
|
declare interface TSEnumMemberBase extends BaseNode {
|
|
1499
|
+
type: AST_NODE_TYPES.TSEnumMember;
|
|
1499
1500
|
computed: boolean;
|
|
1500
1501
|
id: PropertyNameComputed | PropertyNameNonComputed;
|
|
1501
1502
|
initializer: Expression | undefined;
|
|
1502
|
-
type: AST_NODE_TYPES.TSEnumMember;
|
|
1503
1503
|
}
|
|
1504
1504
|
/**
|
|
1505
1505
|
* this should only really happen in semantically invalid code (errors 1164 and 2452)
|
|
@@ -1524,15 +1524,15 @@ export declare interface TSEnumMemberNonComputedName extends TSEnumMemberBase {
|
|
|
1524
1524
|
id: PropertyNameNonComputed;
|
|
1525
1525
|
}
|
|
1526
1526
|
export declare interface TSExportAssignment extends BaseNode {
|
|
1527
|
-
expression: Expression;
|
|
1528
1527
|
type: AST_NODE_TYPES.TSExportAssignment;
|
|
1528
|
+
expression: Expression;
|
|
1529
1529
|
}
|
|
1530
1530
|
export declare interface TSExportKeyword extends BaseNode {
|
|
1531
1531
|
type: AST_NODE_TYPES.TSExportKeyword;
|
|
1532
1532
|
}
|
|
1533
1533
|
export declare interface TSExternalModuleReference extends BaseNode {
|
|
1534
|
-
expression: StringLiteral;
|
|
1535
1534
|
type: AST_NODE_TYPES.TSExternalModuleReference;
|
|
1535
|
+
expression: StringLiteral;
|
|
1536
1536
|
}
|
|
1537
1537
|
declare interface TSFunctionSignatureBase extends BaseNode {
|
|
1538
1538
|
params: Parameter[];
|
|
@@ -1548,6 +1548,7 @@ declare interface TSHeritageBase extends BaseNode {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
export declare type TSImportEqualsDeclaration = TSImportEqualsNamespaceDeclaration | TSImportEqualsRequireDeclaration;
|
|
1550
1550
|
declare interface TSImportEqualsDeclarationBase extends BaseNode {
|
|
1551
|
+
type: AST_NODE_TYPES.TSImportEqualsDeclaration;
|
|
1551
1552
|
/**
|
|
1552
1553
|
* The locally imported name.
|
|
1553
1554
|
*/
|
|
@@ -1567,7 +1568,6 @@ declare interface TSImportEqualsDeclarationBase extends BaseNode {
|
|
|
1567
1568
|
* ```
|
|
1568
1569
|
*/
|
|
1569
1570
|
moduleReference: Identifier | TSExternalModuleReference | TSQualifiedName;
|
|
1570
|
-
type: AST_NODE_TYPES.TSImportEqualsDeclaration;
|
|
1571
1571
|
}
|
|
1572
1572
|
export declare interface TSImportEqualsNamespaceDeclaration extends TSImportEqualsDeclarationBase {
|
|
1573
1573
|
/**
|
|
@@ -1597,22 +1597,22 @@ export declare interface TSImportEqualsRequireDeclaration extends TSImportEquals
|
|
|
1597
1597
|
moduleReference: TSExternalModuleReference;
|
|
1598
1598
|
}
|
|
1599
1599
|
export declare interface TSImportType extends BaseNode {
|
|
1600
|
+
type: AST_NODE_TYPES.TSImportType;
|
|
1600
1601
|
argument: TypeNode;
|
|
1601
1602
|
qualifier: EntityName | null;
|
|
1602
|
-
type: AST_NODE_TYPES.TSImportType;
|
|
1603
1603
|
typeArguments: TSTypeParameterInstantiation | null;
|
|
1604
1604
|
}
|
|
1605
1605
|
export declare interface TSIndexedAccessType extends BaseNode {
|
|
1606
|
+
type: AST_NODE_TYPES.TSIndexedAccessType;
|
|
1606
1607
|
indexType: TypeNode;
|
|
1607
1608
|
objectType: TypeNode;
|
|
1608
|
-
type: AST_NODE_TYPES.TSIndexedAccessType;
|
|
1609
1609
|
}
|
|
1610
1610
|
export declare interface TSIndexSignature extends BaseNode {
|
|
1611
|
+
type: AST_NODE_TYPES.TSIndexSignature;
|
|
1611
1612
|
accessibility: Accessibility | undefined;
|
|
1612
1613
|
parameters: Parameter[];
|
|
1613
1614
|
readonly: boolean;
|
|
1614
1615
|
static: boolean;
|
|
1615
|
-
type: AST_NODE_TYPES.TSIndexSignature;
|
|
1616
1616
|
typeAnnotation: TSTypeAnnotation | undefined;
|
|
1617
1617
|
}
|
|
1618
1618
|
export declare interface TSInferType extends BaseNode {
|
|
@@ -1620,15 +1620,16 @@ export declare interface TSInferType extends BaseNode {
|
|
|
1620
1620
|
typeParameter: TSTypeParameter;
|
|
1621
1621
|
}
|
|
1622
1622
|
export declare interface TSInstantiationExpression extends BaseNode {
|
|
1623
|
-
expression: Expression;
|
|
1624
1623
|
type: AST_NODE_TYPES.TSInstantiationExpression;
|
|
1624
|
+
expression: Expression;
|
|
1625
1625
|
typeArguments: TSTypeParameterInstantiation;
|
|
1626
1626
|
}
|
|
1627
1627
|
export declare interface TSInterfaceBody extends BaseNode {
|
|
1628
|
-
body: TypeElement[];
|
|
1629
1628
|
type: AST_NODE_TYPES.TSInterfaceBody;
|
|
1629
|
+
body: TypeElement[];
|
|
1630
1630
|
}
|
|
1631
1631
|
export declare interface TSInterfaceDeclaration extends BaseNode {
|
|
1632
|
+
type: AST_NODE_TYPES.TSInterfaceDeclaration;
|
|
1632
1633
|
/**
|
|
1633
1634
|
* The body of the interface
|
|
1634
1635
|
*/
|
|
@@ -1645,7 +1646,6 @@ export declare interface TSInterfaceDeclaration extends BaseNode {
|
|
|
1645
1646
|
* The name of this interface
|
|
1646
1647
|
*/
|
|
1647
1648
|
id: Identifier;
|
|
1648
|
-
type: AST_NODE_TYPES.TSInterfaceDeclaration;
|
|
1649
1649
|
/**
|
|
1650
1650
|
* The generic type parameters declared for the interface. Empty declaration
|
|
1651
1651
|
* (`<>`) is different from no declaration.
|
|
@@ -1663,22 +1663,23 @@ export declare interface TSIntrinsicKeyword extends BaseNode {
|
|
|
1663
1663
|
type: AST_NODE_TYPES.TSIntrinsicKeyword;
|
|
1664
1664
|
}
|
|
1665
1665
|
export declare interface TSLiteralType extends BaseNode {
|
|
1666
|
-
literal: LiteralExpression | UnaryExpression | UpdateExpression;
|
|
1667
1666
|
type: AST_NODE_TYPES.TSLiteralType;
|
|
1667
|
+
literal: LiteralExpression | UnaryExpression | UpdateExpression;
|
|
1668
1668
|
}
|
|
1669
1669
|
export declare interface TSMappedType extends BaseNode {
|
|
1670
|
+
type: AST_NODE_TYPES.TSMappedType;
|
|
1670
1671
|
constraint: TypeNode;
|
|
1671
1672
|
key: Identifier;
|
|
1672
1673
|
nameType: TypeNode | null;
|
|
1673
1674
|
optional: '+' | '-' | boolean | undefined;
|
|
1674
1675
|
readonly: '+' | '-' | boolean | undefined;
|
|
1675
|
-
type: AST_NODE_TYPES.TSMappedType;
|
|
1676
1676
|
typeAnnotation: TypeNode | undefined;
|
|
1677
1677
|
/** @deprecated Use {@link `constraint`} and {@link `key`} instead. */
|
|
1678
1678
|
typeParameter: TSTypeParameter;
|
|
1679
1679
|
}
|
|
1680
1680
|
export declare type TSMethodSignature = TSMethodSignatureComputedName | TSMethodSignatureNonComputedName;
|
|
1681
1681
|
declare interface TSMethodSignatureBase extends BaseNode {
|
|
1682
|
+
type: AST_NODE_TYPES.TSMethodSignature;
|
|
1682
1683
|
accessibility: Accessibility | undefined;
|
|
1683
1684
|
computed: boolean;
|
|
1684
1685
|
key: PropertyName;
|
|
@@ -1688,7 +1689,6 @@ declare interface TSMethodSignatureBase extends BaseNode {
|
|
|
1688
1689
|
readonly: boolean;
|
|
1689
1690
|
returnType: TSTypeAnnotation | undefined;
|
|
1690
1691
|
static: boolean;
|
|
1691
|
-
type: AST_NODE_TYPES.TSMethodSignature;
|
|
1692
1692
|
typeParameters: TSTypeParameterDeclaration | undefined;
|
|
1693
1693
|
}
|
|
1694
1694
|
export declare interface TSMethodSignatureComputedName extends TSMethodSignatureBase {
|
|
@@ -1700,11 +1700,12 @@ export declare interface TSMethodSignatureNonComputedName extends TSMethodSignat
|
|
|
1700
1700
|
key: PropertyNameNonComputed;
|
|
1701
1701
|
}
|
|
1702
1702
|
export declare interface TSModuleBlock extends BaseNode {
|
|
1703
|
-
body: ProgramStatement[];
|
|
1704
1703
|
type: AST_NODE_TYPES.TSModuleBlock;
|
|
1704
|
+
body: ProgramStatement[];
|
|
1705
1705
|
}
|
|
1706
1706
|
export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace;
|
|
1707
1707
|
declare interface TSModuleDeclarationBase extends BaseNode {
|
|
1708
|
+
type: AST_NODE_TYPES.TSModuleDeclaration;
|
|
1708
1709
|
/**
|
|
1709
1710
|
* The body of the module.
|
|
1710
1711
|
* This can only be `undefined` for the code `declare module 'mod';`
|
|
@@ -1752,7 +1753,6 @@ declare interface TSModuleDeclarationBase extends BaseNode {
|
|
|
1752
1753
|
* ```
|
|
1753
1754
|
*/
|
|
1754
1755
|
kind: TSModuleDeclarationKind;
|
|
1755
|
-
type: AST_NODE_TYPES.TSModuleDeclaration;
|
|
1756
1756
|
}
|
|
1757
1757
|
export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase {
|
|
1758
1758
|
body: TSModuleBlock;
|
|
@@ -1810,10 +1810,10 @@ export declare interface TSModuleDeclarationNamespace extends TSModuleDeclaratio
|
|
|
1810
1810
|
kind: 'namespace';
|
|
1811
1811
|
}
|
|
1812
1812
|
export declare interface TSNamedTupleMember extends BaseNode {
|
|
1813
|
+
type: AST_NODE_TYPES.TSNamedTupleMember;
|
|
1813
1814
|
elementType: TypeNode;
|
|
1814
1815
|
label: Identifier;
|
|
1815
1816
|
optional: boolean;
|
|
1816
|
-
type: AST_NODE_TYPES.TSNamedTupleMember;
|
|
1817
1817
|
}
|
|
1818
1818
|
/**
|
|
1819
1819
|
* For the following declaration:
|
|
@@ -1822,18 +1822,18 @@ export declare interface TSNamedTupleMember extends BaseNode {
|
|
|
1822
1822
|
* ```
|
|
1823
1823
|
*/
|
|
1824
1824
|
export declare interface TSNamespaceExportDeclaration extends BaseNode {
|
|
1825
|
+
type: AST_NODE_TYPES.TSNamespaceExportDeclaration;
|
|
1825
1826
|
/**
|
|
1826
1827
|
* The name of the global variable that's exported as namespace
|
|
1827
1828
|
*/
|
|
1828
1829
|
id: Identifier;
|
|
1829
|
-
type: AST_NODE_TYPES.TSNamespaceExportDeclaration;
|
|
1830
1830
|
}
|
|
1831
1831
|
export declare interface TSNeverKeyword extends BaseNode {
|
|
1832
1832
|
type: AST_NODE_TYPES.TSNeverKeyword;
|
|
1833
1833
|
}
|
|
1834
1834
|
export declare interface TSNonNullExpression extends BaseNode {
|
|
1835
|
-
expression: Expression;
|
|
1836
1835
|
type: AST_NODE_TYPES.TSNonNullExpression;
|
|
1836
|
+
expression: Expression;
|
|
1837
1837
|
}
|
|
1838
1838
|
export declare interface TSNullKeyword extends BaseNode {
|
|
1839
1839
|
type: AST_NODE_TYPES.TSNullKeyword;
|
|
@@ -1849,26 +1849,26 @@ export declare interface TSOptionalType extends BaseNode {
|
|
|
1849
1849
|
typeAnnotation: TypeNode;
|
|
1850
1850
|
}
|
|
1851
1851
|
export declare interface TSParameterProperty extends BaseNode {
|
|
1852
|
+
type: AST_NODE_TYPES.TSParameterProperty;
|
|
1852
1853
|
accessibility: Accessibility | undefined;
|
|
1853
1854
|
decorators: Decorator[];
|
|
1854
1855
|
override: boolean;
|
|
1855
1856
|
parameter: AssignmentPattern | BindingName | RestElement;
|
|
1856
1857
|
readonly: boolean;
|
|
1857
1858
|
static: boolean;
|
|
1858
|
-
type: AST_NODE_TYPES.TSParameterProperty;
|
|
1859
1859
|
}
|
|
1860
1860
|
export declare interface TSPrivateKeyword extends BaseNode {
|
|
1861
1861
|
type: AST_NODE_TYPES.TSPrivateKeyword;
|
|
1862
1862
|
}
|
|
1863
1863
|
export declare type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName;
|
|
1864
1864
|
declare interface TSPropertySignatureBase extends BaseNode {
|
|
1865
|
+
type: AST_NODE_TYPES.TSPropertySignature;
|
|
1865
1866
|
accessibility: Accessibility | undefined;
|
|
1866
1867
|
computed: boolean;
|
|
1867
1868
|
key: PropertyName;
|
|
1868
1869
|
optional: boolean;
|
|
1869
1870
|
readonly: boolean;
|
|
1870
1871
|
static: boolean;
|
|
1871
|
-
type: AST_NODE_TYPES.TSPropertySignature;
|
|
1872
1872
|
typeAnnotation: TSTypeAnnotation | undefined;
|
|
1873
1873
|
}
|
|
1874
1874
|
export declare interface TSPropertySignatureComputedName extends TSPropertySignatureBase {
|
|
@@ -1886,9 +1886,9 @@ export declare interface TSPublicKeyword extends BaseNode {
|
|
|
1886
1886
|
type: AST_NODE_TYPES.TSPublicKeyword;
|
|
1887
1887
|
}
|
|
1888
1888
|
export declare interface TSQualifiedName extends BaseNode {
|
|
1889
|
+
type: AST_NODE_TYPES.TSQualifiedName;
|
|
1889
1890
|
left: EntityName;
|
|
1890
1891
|
right: Identifier;
|
|
1891
|
-
type: AST_NODE_TYPES.TSQualifiedName;
|
|
1892
1892
|
}
|
|
1893
1893
|
export declare interface TSReadonlyKeyword extends BaseNode {
|
|
1894
1894
|
type: AST_NODE_TYPES.TSReadonlyKeyword;
|
|
@@ -1898,8 +1898,8 @@ export declare interface TSRestType extends BaseNode {
|
|
|
1898
1898
|
typeAnnotation: TypeNode;
|
|
1899
1899
|
}
|
|
1900
1900
|
export declare interface TSSatisfiesExpression extends BaseNode {
|
|
1901
|
-
expression: Expression;
|
|
1902
1901
|
type: AST_NODE_TYPES.TSSatisfiesExpression;
|
|
1902
|
+
expression: Expression;
|
|
1903
1903
|
typeAnnotation: TypeNode;
|
|
1904
1904
|
}
|
|
1905
1905
|
export declare interface TSStaticKeyword extends BaseNode {
|
|
@@ -1912,18 +1912,19 @@ export declare interface TSSymbolKeyword extends BaseNode {
|
|
|
1912
1912
|
type: AST_NODE_TYPES.TSSymbolKeyword;
|
|
1913
1913
|
}
|
|
1914
1914
|
export declare interface TSTemplateLiteralType extends BaseNode {
|
|
1915
|
-
quasis: TemplateElement[];
|
|
1916
1915
|
type: AST_NODE_TYPES.TSTemplateLiteralType;
|
|
1916
|
+
quasis: TemplateElement[];
|
|
1917
1917
|
types: TypeNode[];
|
|
1918
1918
|
}
|
|
1919
1919
|
export declare interface TSThisType extends BaseNode {
|
|
1920
1920
|
type: AST_NODE_TYPES.TSThisType;
|
|
1921
1921
|
}
|
|
1922
1922
|
export declare interface TSTupleType extends BaseNode {
|
|
1923
|
-
elementTypes: TypeNode[];
|
|
1924
1923
|
type: AST_NODE_TYPES.TSTupleType;
|
|
1924
|
+
elementTypes: TypeNode[];
|
|
1925
1925
|
}
|
|
1926
1926
|
export declare interface TSTypeAliasDeclaration extends BaseNode {
|
|
1927
|
+
type: AST_NODE_TYPES.TSTypeAliasDeclaration;
|
|
1927
1928
|
/**
|
|
1928
1929
|
* Whether the type was `declare`d.
|
|
1929
1930
|
* @example
|
|
@@ -1936,7 +1937,6 @@ export declare interface TSTypeAliasDeclaration extends BaseNode {
|
|
|
1936
1937
|
* The name of the type.
|
|
1937
1938
|
*/
|
|
1938
1939
|
id: Identifier;
|
|
1939
|
-
type: AST_NODE_TYPES.TSTypeAliasDeclaration;
|
|
1940
1940
|
/**
|
|
1941
1941
|
* The "value" (type) of the declaration
|
|
1942
1942
|
*/
|
|
@@ -1952,45 +1952,45 @@ export declare interface TSTypeAnnotation extends BaseNode {
|
|
|
1952
1952
|
typeAnnotation: TypeNode;
|
|
1953
1953
|
}
|
|
1954
1954
|
export declare interface TSTypeAssertion extends BaseNode {
|
|
1955
|
-
expression: Expression;
|
|
1956
1955
|
type: AST_NODE_TYPES.TSTypeAssertion;
|
|
1956
|
+
expression: Expression;
|
|
1957
1957
|
typeAnnotation: TypeNode;
|
|
1958
1958
|
}
|
|
1959
1959
|
export declare interface TSTypeLiteral extends BaseNode {
|
|
1960
|
-
members: TypeElement[];
|
|
1961
1960
|
type: AST_NODE_TYPES.TSTypeLiteral;
|
|
1961
|
+
members: TypeElement[];
|
|
1962
1962
|
}
|
|
1963
1963
|
export declare interface TSTypeOperator extends BaseNode {
|
|
1964
|
-
operator: 'keyof' | 'readonly' | 'unique';
|
|
1965
1964
|
type: AST_NODE_TYPES.TSTypeOperator;
|
|
1965
|
+
operator: 'keyof' | 'readonly' | 'unique';
|
|
1966
1966
|
typeAnnotation: TypeNode | undefined;
|
|
1967
1967
|
}
|
|
1968
1968
|
export declare interface TSTypeParameter extends BaseNode {
|
|
1969
|
+
type: AST_NODE_TYPES.TSTypeParameter;
|
|
1969
1970
|
const: boolean;
|
|
1970
1971
|
constraint: TypeNode | undefined;
|
|
1971
1972
|
default: TypeNode | undefined;
|
|
1972
1973
|
in: boolean;
|
|
1973
1974
|
name: Identifier;
|
|
1974
1975
|
out: boolean;
|
|
1975
|
-
type: AST_NODE_TYPES.TSTypeParameter;
|
|
1976
1976
|
}
|
|
1977
1977
|
export declare interface TSTypeParameterDeclaration extends BaseNode {
|
|
1978
|
-
params: TSTypeParameter[];
|
|
1979
1978
|
type: AST_NODE_TYPES.TSTypeParameterDeclaration;
|
|
1979
|
+
params: TSTypeParameter[];
|
|
1980
1980
|
}
|
|
1981
1981
|
export declare interface TSTypeParameterInstantiation extends BaseNode {
|
|
1982
|
-
params: TypeNode[];
|
|
1983
1982
|
type: AST_NODE_TYPES.TSTypeParameterInstantiation;
|
|
1983
|
+
params: TypeNode[];
|
|
1984
1984
|
}
|
|
1985
1985
|
export declare interface TSTypePredicate extends BaseNode {
|
|
1986
|
+
type: AST_NODE_TYPES.TSTypePredicate;
|
|
1986
1987
|
asserts: boolean;
|
|
1987
1988
|
parameterName: Identifier | TSThisType;
|
|
1988
|
-
type: AST_NODE_TYPES.TSTypePredicate;
|
|
1989
1989
|
typeAnnotation: TSTypeAnnotation | null;
|
|
1990
1990
|
}
|
|
1991
1991
|
export declare interface TSTypeQuery extends BaseNode {
|
|
1992
|
-
exprName: EntityName | TSImportType;
|
|
1993
1992
|
type: AST_NODE_TYPES.TSTypeQuery;
|
|
1993
|
+
exprName: EntityName | TSImportType;
|
|
1994
1994
|
typeArguments: TSTypeParameterInstantiation | undefined;
|
|
1995
1995
|
}
|
|
1996
1996
|
export declare interface TSTypeReference extends BaseNode {
|
|
@@ -2015,8 +2015,8 @@ export declare interface TSVoidKeyword extends BaseNode {
|
|
|
2015
2015
|
export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature;
|
|
2016
2016
|
export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword;
|
|
2017
2017
|
export declare interface UnaryExpression extends UnaryExpressionBase {
|
|
2018
|
-
operator: '!' | '+' | '~' | '-' | 'delete' | 'typeof' | 'void';
|
|
2019
2018
|
type: AST_NODE_TYPES.UnaryExpression;
|
|
2019
|
+
operator: '!' | '+' | '~' | '-' | 'delete' | 'typeof' | 'void';
|
|
2020
2020
|
}
|
|
2021
2021
|
declare interface UnaryExpressionBase extends BaseNode {
|
|
2022
2022
|
argument: Expression;
|
|
@@ -2024,11 +2024,12 @@ declare interface UnaryExpressionBase extends BaseNode {
|
|
|
2024
2024
|
prefix: boolean;
|
|
2025
2025
|
}
|
|
2026
2026
|
export declare interface UpdateExpression extends UnaryExpressionBase {
|
|
2027
|
-
operator: '++' | '--';
|
|
2028
2027
|
type: AST_NODE_TYPES.UpdateExpression;
|
|
2028
|
+
operator: '++' | '--';
|
|
2029
2029
|
}
|
|
2030
2030
|
export declare type UsingDeclaration = UsingInForOfDeclaration | UsingInNormalContextDeclaration;
|
|
2031
2031
|
declare interface UsingDeclarationBase extends BaseNode {
|
|
2032
|
+
type: AST_NODE_TYPES.VariableDeclaration;
|
|
2032
2033
|
/**
|
|
2033
2034
|
* This value will always be `false`
|
|
2034
2035
|
* because 'declare' modifier cannot appear on a 'using' declaration.
|
|
@@ -2043,7 +2044,6 @@ declare interface UsingDeclarationBase extends BaseNode {
|
|
|
2043
2044
|
* ```
|
|
2044
2045
|
*/
|
|
2045
2046
|
kind: 'await using' | 'using';
|
|
2046
|
-
type: AST_NODE_TYPES.VariableDeclaration;
|
|
2047
2047
|
}
|
|
2048
2048
|
export declare type UsingDeclarator = UsingInForOfDeclarator | UsingInNormalContextDeclarator;
|
|
2049
2049
|
export declare interface UsingInForOfDeclaration extends UsingDeclarationBase {
|
|
@@ -2083,6 +2083,7 @@ declare type ValueOf<T> = T[keyof T];
|
|
|
2083
2083
|
export declare type VariableDeclaration = LetOrConstOrVarDeclaration | UsingDeclaration;
|
|
2084
2084
|
export declare type VariableDeclarator = LetOrConstOrVarDeclarator | UsingDeclarator;
|
|
2085
2085
|
declare interface VariableDeclaratorBase extends BaseNode {
|
|
2086
|
+
type: AST_NODE_TYPES.VariableDeclarator;
|
|
2086
2087
|
/**
|
|
2087
2088
|
* Whether there's definite assignment assertion (`let x!: number`).
|
|
2088
2089
|
* If `true`, then: `id` must be an identifier with a type annotation,
|
|
@@ -2098,7 +2099,6 @@ declare interface VariableDeclaratorBase extends BaseNode {
|
|
|
2098
2099
|
* in a `declare const`.
|
|
2099
2100
|
*/
|
|
2100
2101
|
init: Expression | null;
|
|
2101
|
-
type: AST_NODE_TYPES.VariableDeclarator;
|
|
2102
2102
|
}
|
|
2103
2103
|
export declare interface VariableDeclaratorDefiniteAssignment extends VariableDeclaratorBase {
|
|
2104
2104
|
definite: true;
|
|
@@ -2116,19 +2116,19 @@ export declare interface VariableDeclaratorNoInit extends VariableDeclaratorBase
|
|
|
2116
2116
|
init: null;
|
|
2117
2117
|
}
|
|
2118
2118
|
export declare interface WhileStatement extends BaseNode {
|
|
2119
|
+
type: AST_NODE_TYPES.WhileStatement;
|
|
2119
2120
|
body: Statement;
|
|
2120
2121
|
test: Expression;
|
|
2121
|
-
type: AST_NODE_TYPES.WhileStatement;
|
|
2122
2122
|
}
|
|
2123
2123
|
export declare interface WithStatement extends BaseNode {
|
|
2124
|
+
type: AST_NODE_TYPES.WithStatement;
|
|
2124
2125
|
body: Statement;
|
|
2125
2126
|
object: Expression;
|
|
2126
|
-
type: AST_NODE_TYPES.WithStatement;
|
|
2127
2127
|
}
|
|
2128
2128
|
export declare interface YieldExpression extends BaseNode {
|
|
2129
|
+
type: AST_NODE_TYPES.YieldExpression;
|
|
2129
2130
|
argument: Expression | undefined;
|
|
2130
2131
|
delegate: boolean;
|
|
2131
|
-
type: AST_NODE_TYPES.YieldExpression;
|
|
2132
2132
|
}
|
|
2133
2133
|
export {};
|
|
2134
2134
|
//# sourceMappingURL=ast-spec.d.ts.map
|