1 | export interface Comment {
|
2 | value: string;
|
3 | start: number;
|
4 | end: number;
|
5 | loc: SourceLocation;
|
6 | }
|
7 |
|
8 | export interface CommentBlock extends Comment {
|
9 | type: "CommentBlock";
|
10 | }
|
11 |
|
12 | export interface CommentLine extends Comment {
|
13 | type: "CommentLine";
|
14 | }
|
15 |
|
16 | export interface SourceLocation {
|
17 | start: {
|
18 | line: number;
|
19 | column: number;
|
20 | };
|
21 |
|
22 | end: {
|
23 | line: number;
|
24 | column: number;
|
25 | };
|
26 | }
|
27 |
|
28 | export interface Node {
|
29 | type: string;
|
30 | leadingComments?: Comment[];
|
31 | innerComments?: Comment[];
|
32 | trailingComments?: Comment[];
|
33 | start: number;
|
34 | end: number;
|
35 | loc: SourceLocation;
|
36 | }
|
37 |
|
38 | export interface ArrayExpression extends Node {
|
39 | type: "ArrayExpression";
|
40 | elements: Array<null | Expression | SpreadElement>;
|
41 | }
|
42 |
|
43 | export interface AssignmentExpression extends Node {
|
44 | type: "AssignmentExpression";
|
45 | operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=";
|
46 | left: LVal;
|
47 | right: Expression;
|
48 | }
|
49 |
|
50 | export interface BinaryExpression extends Node {
|
51 | type: "BinaryExpression";
|
52 | operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=";
|
53 | left: Expression;
|
54 | right: Expression;
|
55 | }
|
56 |
|
57 | export interface Directive extends Node {
|
58 | type: "Directive";
|
59 | value: DirectiveLiteral;
|
60 | }
|
61 |
|
62 | export interface DirectiveLiteral extends Node {
|
63 | type: "DirectiveLiteral";
|
64 | value: string;
|
65 | }
|
66 |
|
67 | export interface BlockStatement extends Node {
|
68 | type: "BlockStatement";
|
69 | directives?: Directive[];
|
70 | body: Statement[];
|
71 | }
|
72 |
|
73 | export interface BreakStatement extends Node {
|
74 | type: "BreakStatement";
|
75 | label: Identifier;
|
76 | }
|
77 |
|
78 | export interface CallExpression extends Node {
|
79 | type: "CallExpression";
|
80 | callee: Expression | Super;
|
81 | arguments: Array<Expression | SpreadElement>;
|
82 | }
|
83 |
|
84 | export interface CatchClause extends Node {
|
85 | type: "CatchClause";
|
86 | param: Identifier;
|
87 | body: BlockStatement;
|
88 | }
|
89 |
|
90 | export interface ConditionalExpression extends Node {
|
91 | type: "ConditionalExpression";
|
92 | test: Expression;
|
93 | consequent: Expression;
|
94 | alternate: Expression;
|
95 | }
|
96 |
|
97 | export interface ContinueStatement extends Node {
|
98 | type: "ContinueStatement";
|
99 | label: Identifier;
|
100 | }
|
101 |
|
102 | export interface DebuggerStatement extends Node {
|
103 | type: "DebuggerStatement";
|
104 | }
|
105 |
|
106 | export interface DoWhileStatement extends Node {
|
107 | type: "DoWhileStatement";
|
108 | test: Expression;
|
109 | body: Statement;
|
110 | }
|
111 |
|
112 | export interface EmptyStatement extends Node {
|
113 | type: "EmptyStatement";
|
114 | }
|
115 |
|
116 | export interface ExpressionStatement extends Node {
|
117 | type: "ExpressionStatement";
|
118 | expression: Expression;
|
119 | }
|
120 |
|
121 | export interface File extends Node {
|
122 | type: "File";
|
123 | program: Program;
|
124 | comments: Comment[];
|
125 | tokens: any[];
|
126 | }
|
127 |
|
128 | export interface ForInStatement extends Node {
|
129 | type: "ForInStatement";
|
130 | left: VariableDeclaration | LVal;
|
131 | right: Expression;
|
132 | body: Statement;
|
133 | }
|
134 |
|
135 | export interface ForStatement extends Node {
|
136 | type: "ForStatement";
|
137 | init: VariableDeclaration | Expression;
|
138 | test: Expression;
|
139 | update: Expression;
|
140 | body: Statement;
|
141 | }
|
142 |
|
143 | export interface FunctionDeclaration extends Node {
|
144 | type: "FunctionDeclaration";
|
145 | id: Identifier;
|
146 | params: LVal[];
|
147 | body: BlockStatement;
|
148 | generator: boolean;
|
149 | async: boolean;
|
150 | returnType?: TypeAnnotation;
|
151 | typeParameters?: TypeParameterDeclaration;
|
152 | }
|
153 |
|
154 | export interface FunctionExpression extends Node {
|
155 | type: "FunctionExpression";
|
156 | id: Identifier;
|
157 | params: LVal[];
|
158 | body: BlockStatement;
|
159 | generator: boolean;
|
160 | async: boolean;
|
161 | returnType?: TypeAnnotation;
|
162 | typeParameters?: TypeParameterDeclaration;
|
163 | }
|
164 |
|
165 | export interface Identifier extends Node {
|
166 | type: "Identifier";
|
167 | name: string;
|
168 | typeAnnotation?: TypeAnnotation;
|
169 | }
|
170 |
|
171 | export interface IfStatement extends Node {
|
172 | type: "IfStatement";
|
173 | test: Expression;
|
174 | consequent: Statement;
|
175 | alternate: Statement;
|
176 | }
|
177 |
|
178 | export interface LabeledStatement extends Node {
|
179 | type: "LabeledStatement";
|
180 | label: Identifier;
|
181 | body: Statement;
|
182 | }
|
183 |
|
184 | export interface StringLiteral extends Node {
|
185 | type: "StringLiteral";
|
186 | value: string;
|
187 | }
|
188 |
|
189 | export interface NumericLiteral extends Node {
|
190 | type: "NumericLiteral";
|
191 | value: number;
|
192 | }
|
193 |
|
194 | export interface NullLiteral extends Node {
|
195 | type: "NullLiteral";
|
196 | }
|
197 |
|
198 | export interface BooleanLiteral extends Node {
|
199 | type: "BooleanLiteral";
|
200 | value: boolean;
|
201 | }
|
202 |
|
203 | export interface RegExpLiteral extends Node {
|
204 | type: "RegExpLiteral";
|
205 | pattern: string;
|
206 | flags?: string;
|
207 | }
|
208 |
|
209 | export interface LogicalExpression extends Node {
|
210 | type: "LogicalExpression";
|
211 | operator: "||" | "&&";
|
212 | left: Expression;
|
213 | right: Expression;
|
214 | }
|
215 |
|
216 | export interface MemberExpression extends Node {
|
217 | type: "MemberExpression";
|
218 | object: Expression | Super;
|
219 | property: Expression;
|
220 | computed: boolean;
|
221 | }
|
222 |
|
223 | export interface NewExpression extends Node {
|
224 | type: "NewExpression";
|
225 | callee: Expression | Super;
|
226 | arguments: Array<Expression | SpreadElement>;
|
227 | }
|
228 |
|
229 | export interface Program extends Node {
|
230 | type: "Program";
|
231 | sourceType: "script" | "module";
|
232 | directives?: Directive[];
|
233 | body: Array<Statement | ModuleDeclaration>;
|
234 | }
|
235 |
|
236 | export interface ObjectExpression extends Node {
|
237 | type: "ObjectExpression";
|
238 | properties: Array<ObjectProperty | ObjectMethod | SpreadProperty>;
|
239 | }
|
240 |
|
241 | export interface ObjectMethod extends Node {
|
242 | type: "ObjectMethod";
|
243 | key: Expression;
|
244 | kind: "get" | "set" | "method";
|
245 | shorthand: boolean;
|
246 | computed: boolean;
|
247 | value: Expression;
|
248 | decorators?: Decorator[];
|
249 | id: Identifier;
|
250 | params: LVal[];
|
251 | body: BlockStatement;
|
252 | generator: boolean;
|
253 | async: boolean;
|
254 | returnType?: TypeAnnotation;
|
255 | typeParameters?: TypeParameterDeclaration;
|
256 | }
|
257 |
|
258 | export interface ObjectProperty extends Node {
|
259 | type: "ObjectProperty";
|
260 | key: Expression;
|
261 | computed: boolean;
|
262 | value: Expression;
|
263 | decorators?: Decorator[];
|
264 | shorthand: boolean;
|
265 | }
|
266 |
|
267 | export interface RestElement extends Node {
|
268 | type: "RestElement";
|
269 | argument: LVal;
|
270 | typeAnnotation?: TypeAnnotation;
|
271 | }
|
272 |
|
273 | export interface ReturnStatement extends Node {
|
274 | type: "ReturnStatement";
|
275 | argument: Expression;
|
276 | }
|
277 |
|
278 | export interface SequenceExpression extends Node {
|
279 | type: "SequenceExpression";
|
280 | expressions: Expression[];
|
281 | }
|
282 |
|
283 | export interface SwitchCase extends Node {
|
284 | type: "SwitchCase";
|
285 | test: Expression;
|
286 | consequent: Statement[];
|
287 | }
|
288 |
|
289 | export interface SwitchStatement extends Node {
|
290 | type: "SwitchStatement";
|
291 | discriminant: Expression;
|
292 | cases: SwitchCase[];
|
293 | }
|
294 |
|
295 | export interface ThisExpression extends Node {
|
296 | type: "ThisExpression";
|
297 | }
|
298 |
|
299 | export interface ThrowStatement extends Node {
|
300 | type: "ThrowStatement";
|
301 | argument: Expression;
|
302 | }
|
303 |
|
304 | export interface TryStatement extends Node {
|
305 | type: "TryStatement";
|
306 | block: BlockStatement;
|
307 | handler: CatchClause;
|
308 | finalizer: BlockStatement;
|
309 | }
|
310 |
|
311 | export interface UnaryExpression extends Node {
|
312 | type: "UnaryExpression";
|
313 | operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
|
314 | prefix: boolean;
|
315 | argument: Expression;
|
316 | }
|
317 |
|
318 | export interface UpdateExpression extends Node {
|
319 | type: "UpdateExpression";
|
320 | operator: "++" | "--";
|
321 | prefix: boolean;
|
322 | argument: Expression;
|
323 | }
|
324 |
|
325 | export interface VariableDeclaration extends Node {
|
326 | type: "VariableDeclaration";
|
327 | declarations: VariableDeclarator[];
|
328 | kind: "var" | "let" | "const";
|
329 | }
|
330 |
|
331 | export interface VariableDeclarator extends Node {
|
332 | type: "VariableDeclarator";
|
333 | id: LVal;
|
334 | init: Expression;
|
335 | }
|
336 |
|
337 | export interface WhileStatement extends Node {
|
338 | type: "WhileStatement";
|
339 | test: Expression;
|
340 | body: Statement;
|
341 | }
|
342 |
|
343 | export interface WithStatement extends Node {
|
344 | type: "WithStatement";
|
345 | object: Expression;
|
346 | body: BlockStatement | Statement;
|
347 | }
|
348 |
|
349 | export interface AssignmentPattern extends Node {
|
350 | type: "AssignmentPattern";
|
351 | left: Identifier;
|
352 | right: Expression;
|
353 | }
|
354 |
|
355 | export interface ArrayPattern extends Node {
|
356 | type: "ArrayPattern";
|
357 | elements: Expression[];
|
358 | typeAnnotation?: TypeAnnotation;
|
359 | }
|
360 |
|
361 | export interface ArrowFunctionExpression extends Node {
|
362 | type: "ArrowFunctionExpression";
|
363 | id: Identifier;
|
364 | params: LVal[];
|
365 | body: BlockStatement | Expression;
|
366 | generator: boolean;
|
367 | async: boolean;
|
368 | expression: boolean;
|
369 | returnType?: TypeAnnotation;
|
370 | typeParameters?: TypeParameterDeclaration;
|
371 | }
|
372 |
|
373 | export interface ClassBody extends Node {
|
374 | type: "ClassBody";
|
375 | body: Array<ClassMethod | ClassProperty>;
|
376 | }
|
377 |
|
378 | export interface ClassDeclaration extends Node {
|
379 | type: "ClassDeclaration";
|
380 | id: Identifier;
|
381 | superClass: Expression;
|
382 | body: ClassBody;
|
383 | decorators?: Decorator[];
|
384 | implements?: ClassImplements[];
|
385 | mixins?: any[];
|
386 | typeParameters?: TypeParameterDeclaration;
|
387 | superTypeParameters?: TypeParameterInstantiation;
|
388 | }
|
389 |
|
390 | export interface ClassExpression extends Node {
|
391 | type: "ClassExpression";
|
392 | id: Identifier;
|
393 | superClass: Expression;
|
394 | body: ClassBody;
|
395 | decorators?: Decorator[];
|
396 | implements?: ClassImplements[];
|
397 | mixins?: any[];
|
398 | typeParameters?: TypeParameterDeclaration;
|
399 | superTypeParameters?: TypeParameterInstantiation;
|
400 | }
|
401 |
|
402 | export interface ExportAllDeclaration extends Node {
|
403 | type: "ExportAllDeclaration";
|
404 | source: StringLiteral;
|
405 | }
|
406 |
|
407 | export interface ExportDefaultDeclaration extends Node {
|
408 | type: "ExportDefaultDeclaration";
|
409 | declaration: Declaration | Expression;
|
410 | }
|
411 |
|
412 | export interface ExportNamedDeclaration extends Node {
|
413 | type: "ExportNamedDeclaration";
|
414 | declaration: Declaration;
|
415 | specifiers: ExportSpecifier[];
|
416 | source: StringLiteral | null;
|
417 | }
|
418 |
|
419 | export interface ExportSpecifier extends Node {
|
420 | type: "ExportSpecifier";
|
421 | local: Identifier;
|
422 | imported: Identifier;
|
423 | exported: Identifier;
|
424 | }
|
425 |
|
426 | export interface ForOfStatement extends Node {
|
427 | type: "ForOfStatement";
|
428 | left: VariableDeclaration | LVal;
|
429 | right: Expression;
|
430 | body: Statement;
|
431 | }
|
432 |
|
433 | export interface ImportDeclaration extends Node {
|
434 | type: "ImportDeclaration";
|
435 | specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
|
436 | source: StringLiteral;
|
437 | }
|
438 |
|
439 | export interface ImportDefaultSpecifier extends Node {
|
440 | type: "ImportDefaultSpecifier";
|
441 | local: Identifier;
|
442 | }
|
443 |
|
444 | export interface ImportNamespaceSpecifier extends Node {
|
445 | type: "ImportNamespaceSpecifier";
|
446 | local: Identifier;
|
447 | }
|
448 |
|
449 | export interface ImportSpecifier extends Node {
|
450 | type: "ImportSpecifier";
|
451 | local: Identifier;
|
452 | imported: Identifier;
|
453 | }
|
454 |
|
455 | export interface MetaProperty extends Node {
|
456 | type: "MetaProperty";
|
457 | meta: Identifier;
|
458 | property: Identifier;
|
459 | }
|
460 |
|
461 | export interface ClassMethod extends Node {
|
462 | type: "ClassMethod";
|
463 | key: Expression;
|
464 | value?: FunctionExpression;
|
465 | kind: "constructor" | "method" | "get" | "set";
|
466 | computed: boolean;
|
467 | static: boolean;
|
468 | decorators?: Decorator[];
|
469 | id: Identifier;
|
470 | params: LVal[];
|
471 | body: BlockStatement;
|
472 | generator: boolean;
|
473 | async: boolean;
|
474 | expression: boolean;
|
475 | returnType?: TypeAnnotation;
|
476 | typeParameters?: TypeParameterDeclaration;
|
477 | }
|
478 |
|
479 |
|
480 | export interface AssignmentProperty extends Node {
|
481 | type: "ObjectProperty";
|
482 | key: Expression;
|
483 | computed: boolean;
|
484 | value: Pattern;
|
485 | decorators?: Decorator[];
|
486 | shorthand: boolean;
|
487 | }
|
488 |
|
489 | export interface ObjectPattern extends Node {
|
490 | type: "ObjectPattern";
|
491 | properties: Array<AssignmentProperty | RestProperty>;
|
492 | typeAnnotation?: TypeAnnotation;
|
493 | }
|
494 |
|
495 | export interface SpreadElement extends Node {
|
496 | type: "SpreadElement";
|
497 | argument: Expression;
|
498 | }
|
499 |
|
500 | export interface Super extends Node {
|
501 | type: "Super";
|
502 | }
|
503 |
|
504 | export interface TaggedTemplateExpression extends Node {
|
505 | type: "TaggedTemplateExpression";
|
506 | tag: Expression;
|
507 | quasi: TemplateLiteral;
|
508 | }
|
509 |
|
510 | export interface TemplateElement extends Node {
|
511 | type: "TemplateElement";
|
512 | tail: boolean;
|
513 | value: {
|
514 | cooked: string;
|
515 | raw: string;
|
516 | };
|
517 | }
|
518 |
|
519 | export interface TemplateLiteral extends Node {
|
520 | type: "TemplateLiteral";
|
521 | quasis: TemplateElement[];
|
522 | expressions: Expression[];
|
523 | }
|
524 |
|
525 | export interface YieldExpression extends Node {
|
526 | type: "YieldExpression";
|
527 | argument: Expression;
|
528 | delegate: boolean;
|
529 | }
|
530 |
|
531 | export interface AnyTypeAnnotation extends Node {
|
532 | type: "AnyTypeAnnotation";
|
533 | }
|
534 |
|
535 | export interface ArrayTypeAnnotation extends Node {
|
536 | type: "ArrayTypeAnnotation";
|
537 | elementType: FlowTypeAnnotation;
|
538 | }
|
539 |
|
540 | export interface BooleanTypeAnnotation extends Node {
|
541 | type: "BooleanTypeAnnotation";
|
542 | }
|
543 |
|
544 | export interface BooleanLiteralTypeAnnotation extends Node {
|
545 | type: "BooleanLiteralTypeAnnotation";
|
546 | }
|
547 |
|
548 | export interface NullLiteralTypeAnnotation extends Node {
|
549 | type: "NullLiteralTypeAnnotation";
|
550 | }
|
551 |
|
552 | export interface ClassImplements extends Node {
|
553 | type: "ClassImplements";
|
554 | id: Identifier;
|
555 | typeParameters: TypeParameterInstantiation;
|
556 | }
|
557 |
|
558 | export interface ClassProperty extends Node {
|
559 | type: "ClassProperty";
|
560 | key: Identifier;
|
561 | value: Expression;
|
562 | decorators?: Decorator[];
|
563 | typeAnnotation?: TypeAnnotation;
|
564 | }
|
565 |
|
566 | export interface DeclareClass extends Node {
|
567 | type: "DeclareClass";
|
568 | id: Identifier;
|
569 | typeParameters: TypeParameterDeclaration;
|
570 | extends: InterfaceExtends[];
|
571 | body: ObjectTypeAnnotation;
|
572 | }
|
573 |
|
574 | export interface DeclareFunction extends Node {
|
575 | type: "DeclareFunction";
|
576 | id: Identifier;
|
577 | }
|
578 |
|
579 | export interface DeclareInterface extends Node {
|
580 | type: "DeclareInterface";
|
581 | id: Identifier;
|
582 | typeParameters: TypeParameterDeclaration;
|
583 | extends: InterfaceExtends[];
|
584 | body: ObjectTypeAnnotation;
|
585 | }
|
586 |
|
587 | export interface DeclareModule extends Node {
|
588 | type: "DeclareModule";
|
589 | id: StringLiteral | Identifier;
|
590 | body: BlockStatement;
|
591 | }
|
592 |
|
593 | export interface DeclareTypeAlias extends Node {
|
594 | type: "DeclareTypeAlias";
|
595 | id: Identifier;
|
596 | typeParameters: TypeParameterDeclaration;
|
597 | right: FlowTypeAnnotation;
|
598 | }
|
599 |
|
600 | export interface DeclareVariable extends Node {
|
601 | type: "DeclareVariable";
|
602 | id: Identifier;
|
603 | }
|
604 |
|
605 | export interface ExistentialTypeParam extends Node {
|
606 | type: "ExistentialTypeParam";
|
607 | }
|
608 |
|
609 | export interface FunctionTypeAnnotation extends Node {
|
610 | type: "FunctionTypeAnnotation";
|
611 | typeParameters: TypeParameterDeclaration;
|
612 | params: FunctionTypeParam[];
|
613 | rest: FunctionTypeParam;
|
614 | returnType: FlowTypeAnnotation;
|
615 | }
|
616 |
|
617 | export interface FunctionTypeParam extends Node {
|
618 | type: "FunctionTypeParam";
|
619 | name: Identifier;
|
620 | typeAnnotation: FlowTypeAnnotation;
|
621 | }
|
622 |
|
623 | export interface GenericTypeAnnotation extends Node {
|
624 | type: "GenericTypeAnnotation";
|
625 | id: Identifier;
|
626 | typeParameters: TypeParameterInstantiation;
|
627 | }
|
628 |
|
629 | export interface InterfaceExtends extends Node {
|
630 | type: "InterfaceExtends";
|
631 | id: Identifier;
|
632 | typeParameters: TypeParameterInstantiation;
|
633 | }
|
634 |
|
635 | export interface InterfaceDeclaration extends Node {
|
636 | type: "InterfaceDeclaration";
|
637 | id: Identifier;
|
638 | typeParameters: TypeParameterDeclaration;
|
639 | extends: InterfaceExtends[];
|
640 | mixins?: any[];
|
641 | body: ObjectTypeAnnotation;
|
642 | }
|
643 |
|
644 | export interface IntersectionTypeAnnotation extends Node {
|
645 | type: "IntersectionTypeAnnotation";
|
646 | types: FlowTypeAnnotation[];
|
647 | }
|
648 |
|
649 | export interface MixedTypeAnnotation extends Node {
|
650 | type: "MixedTypeAnnotation";
|
651 | }
|
652 |
|
653 | export interface NullableTypeAnnotation extends Node {
|
654 | type: "NullableTypeAnnotation";
|
655 | typeAnnotation: FlowTypeAnnotation;
|
656 | }
|
657 |
|
658 | export interface NumericLiteralTypeAnnotation extends Node {
|
659 | type: "NumericLiteralTypeAnnotation";
|
660 | }
|
661 |
|
662 | export interface NumberTypeAnnotation extends Node {
|
663 | type: "NumberTypeAnnotation";
|
664 | }
|
665 |
|
666 | export interface StringLiteralTypeAnnotation extends Node {
|
667 | type: "StringLiteralTypeAnnotation";
|
668 | }
|
669 |
|
670 | export interface StringTypeAnnotation extends Node {
|
671 | type: "StringTypeAnnotation";
|
672 | }
|
673 |
|
674 | export interface ThisTypeAnnotation extends Node {
|
675 | type: "ThisTypeAnnotation";
|
676 | }
|
677 |
|
678 | export interface TupleTypeAnnotation extends Node {
|
679 | type: "TupleTypeAnnotation";
|
680 | types: FlowTypeAnnotation[];
|
681 | }
|
682 |
|
683 | export interface TypeofTypeAnnotation extends Node {
|
684 | type: "TypeofTypeAnnotation";
|
685 | argument: FlowTypeAnnotation;
|
686 | }
|
687 |
|
688 | export interface TypeAlias extends Node {
|
689 | type: "TypeAlias";
|
690 | id: Identifier;
|
691 | typeParameters: TypeParameterDeclaration;
|
692 | right: FlowTypeAnnotation;
|
693 | }
|
694 |
|
695 | export interface TypeAnnotation extends Node {
|
696 | type: "TypeAnnotation";
|
697 | typeAnnotation: FlowTypeAnnotation;
|
698 | }
|
699 |
|
700 | export interface TypeCastExpression extends Node {
|
701 | type: "TypeCastExpression";
|
702 | expression: Expression;
|
703 | typeAnnotation: FlowTypeAnnotation;
|
704 | }
|
705 |
|
706 | export interface TypeParameter extends Node {
|
707 | type: "TypeParameterDeclaration";
|
708 | bound: TypeAnnotation | null;
|
709 | default: Flow | null;
|
710 | name: string | null;
|
711 | }
|
712 |
|
713 | export interface TypeParameterDeclaration extends Node {
|
714 | type: "TypeParameterDeclaration";
|
715 | params: Identifier[];
|
716 | }
|
717 |
|
718 | export interface TypeParameterInstantiation extends Node {
|
719 | type: "TypeParameterInstantiation";
|
720 | params: FlowTypeAnnotation[];
|
721 | }
|
722 |
|
723 | export interface ObjectTypeAnnotation extends Node {
|
724 | type: "ObjectTypeAnnotation";
|
725 | properties: ObjectTypeProperty[];
|
726 | indexers: ObjectTypeIndexer[];
|
727 | callProperties: ObjectTypeCallProperty[];
|
728 | }
|
729 |
|
730 | export interface ObjectTypeCallProperty extends Node {
|
731 | type: "ObjectTypeCallProperty";
|
732 | value: FlowTypeAnnotation;
|
733 | }
|
734 |
|
735 | export interface ObjectTypeIndexer extends Node {
|
736 | type: "ObjectTypeIndexer";
|
737 | id: Expression;
|
738 | key: FlowTypeAnnotation;
|
739 | value: FlowTypeAnnotation;
|
740 | }
|
741 |
|
742 | export interface ObjectTypeProperty extends Node {
|
743 | type: "ObjectTypeProperty";
|
744 | key: Expression;
|
745 | value: FlowTypeAnnotation;
|
746 | }
|
747 |
|
748 | export interface QualifiedTypeIdentifier extends Node {
|
749 | type: "QualifiedTypeIdentifier";
|
750 | id: Identifier;
|
751 | qualification: Identifier | QualifiedTypeIdentifier;
|
752 | }
|
753 |
|
754 | export interface UnionTypeAnnotation extends Node {
|
755 | type: "UnionTypeAnnotation";
|
756 | types: FlowTypeAnnotation[];
|
757 | }
|
758 |
|
759 | export interface VoidTypeAnnotation extends Node {
|
760 | type: "VoidTypeAnnotation";
|
761 | }
|
762 |
|
763 | export interface JSXAttribute extends Node {
|
764 | type: "JSXAttribute";
|
765 | name: JSXIdentifier | JSXNamespacedName;
|
766 | value: JSXElement | StringLiteral | JSXExpressionContainer | null;
|
767 | }
|
768 |
|
769 | export interface JSXClosingElement extends Node {
|
770 | type: "JSXClosingElement";
|
771 | name: JSXIdentifier | JSXMemberExpression;
|
772 | }
|
773 |
|
774 | export interface JSXElement extends Node {
|
775 | type: "JSXElement";
|
776 | openingElement: JSXOpeningElement;
|
777 | closingElement: JSXClosingElement;
|
778 | children: Array<JSXElement | JSXExpressionContainer | JSXText>;
|
779 | selfClosing?: boolean;
|
780 | }
|
781 |
|
782 | export interface JSXEmptyExpression extends Node {
|
783 | type: "JSXEmptyExpression";
|
784 | }
|
785 |
|
786 | export interface JSXExpressionContainer extends Node {
|
787 | type: "JSXExpressionContainer";
|
788 | expression: Expression;
|
789 | }
|
790 |
|
791 | export interface JSXIdentifier extends Node {
|
792 | type: "JSXIdentifier";
|
793 | name: string;
|
794 | }
|
795 |
|
796 | export interface JSXMemberExpression extends Node {
|
797 | type: "JSXMemberExpression";
|
798 | object: JSXMemberExpression | JSXIdentifier;
|
799 | property: JSXIdentifier;
|
800 | }
|
801 |
|
802 | export interface JSXNamespacedName extends Node {
|
803 | type: "JSXNamespacedName";
|
804 | namespace: JSXIdentifier;
|
805 | name: JSXIdentifier;
|
806 | }
|
807 |
|
808 | export interface JSXOpeningElement extends Node {
|
809 | type: "JSXOpeningElement";
|
810 | name: JSXIdentifier | JSXMemberExpression;
|
811 | selfClosing: boolean;
|
812 | attributes: JSXAttribute[];
|
813 | }
|
814 |
|
815 | export interface JSXSpreadAttribute extends Node {
|
816 | type: "JSXSpreadAttribute";
|
817 | argument: Expression;
|
818 | }
|
819 |
|
820 | export interface JSXText extends Node {
|
821 | type: "JSXText";
|
822 | value: string;
|
823 | }
|
824 |
|
825 | export interface Noop extends Node {
|
826 | type: "Noop";
|
827 | }
|
828 |
|
829 | export interface ParenthesizedExpression extends Node {
|
830 | type: "ParenthesizedExpression";
|
831 | expression: Expression;
|
832 | }
|
833 |
|
834 | export interface AwaitExpression extends Node {
|
835 | type: "AwaitExpression";
|
836 | argument: Expression;
|
837 | }
|
838 |
|
839 | export interface BindExpression extends Node {
|
840 | type: "BindExpression";
|
841 | object: Expression;
|
842 | callee: Expression;
|
843 | }
|
844 |
|
845 | export interface Decorator extends Node {
|
846 | type: "Decorator";
|
847 | expression: Expression;
|
848 | }
|
849 |
|
850 | export interface DoExpression extends Node {
|
851 | type: "DoExpression";
|
852 | body: BlockStatement;
|
853 | }
|
854 |
|
855 | export interface ExportDefaultSpecifier extends Node {
|
856 | type: "ExportDefaultSpecifier";
|
857 | exported: Identifier;
|
858 | }
|
859 |
|
860 | export interface ExportNamespaceSpecifier extends Node {
|
861 | type: "ExportNamespaceSpecifier";
|
862 | exported: Identifier;
|
863 | }
|
864 |
|
865 | export interface RestProperty extends Node {
|
866 | type: "RestProperty";
|
867 | argument: LVal;
|
868 | }
|
869 |
|
870 | export interface SpreadProperty extends Node {
|
871 | type: "SpreadProperty";
|
872 | argument: Expression;
|
873 | }
|
874 |
|
875 | export interface TSAnyKeyword extends Node {
|
876 | type: "TSAnyKeyword";
|
877 | }
|
878 |
|
879 | export interface TSArrayType extends Node {
|
880 | type: "TSArrayType";
|
881 | elementType: TSType;
|
882 | }
|
883 |
|
884 | export interface TSAsExpression extends Node {
|
885 | type: "TSAsExpression";
|
886 | expression: Expression;
|
887 | typeAnnotation: TSType;
|
888 | }
|
889 |
|
890 | export interface TSBooleanKeyword extends Node {
|
891 | type: "TSBooleanKeyword";
|
892 | }
|
893 |
|
894 | export interface TSCallSignatureDeclaration extends Node {
|
895 | type: "TSCallSignatureDeclaration";
|
896 | typeParameters: TypeParameterDeclaration | null;
|
897 | parameters: Array<Identifier | RestElement> | null;
|
898 | typeAnnotation: TSTypeAnnotation | null;
|
899 | }
|
900 |
|
901 | export interface TSConstructSignatureDeclaration extends Node {
|
902 | type: "TSConstructSignatureDeclaration";
|
903 | typeParameters: TypeParameterDeclaration | null;
|
904 | parameters: Array<Identifier | RestElement> | null;
|
905 | typeAnnotation: TSTypeAnnotation | null;
|
906 | }
|
907 |
|
908 | export interface TSConstructorType extends Node {
|
909 | type: "TSConstructorType";
|
910 | typeParameters: TypeParameterDeclaration | null;
|
911 | typeAnnotation: TSTypeAnnotation | null;
|
912 | parameters: Array<Identifier | RestElement> | null;
|
913 | }
|
914 |
|
915 | export interface TSDeclareFunction extends Node {
|
916 | type: "TSDeclareFunction";
|
917 | id: Identifier | null;
|
918 | typeParameters: TypeParameterDeclaration | Noop | null;
|
919 | params: LVal[];
|
920 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
921 | async: boolean;
|
922 | declare: boolean | null;
|
923 | generator: boolean;
|
924 | }
|
925 |
|
926 | export interface TSDeclareMethod extends Node {
|
927 | type: "TSDeclareMethod";
|
928 | decorators: Decorator[] | null;
|
929 | key: Expression;
|
930 | typeParameters: TypeParameterDeclaration | Noop | null;
|
931 | params: LVal[];
|
932 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
933 | abstract: boolean | null;
|
934 | access: "public" | "private" | "protected" | null;
|
935 | accessibility: "public" | "private" | "protected" | null;
|
936 | async: boolean;
|
937 | computed: boolean;
|
938 | generator: boolean;
|
939 | kind: "get" | "set" | "method" | "constructor";
|
940 | optional: boolean | null;
|
941 | static: boolean | null;
|
942 | }
|
943 |
|
944 | export interface TSEnumDeclaration extends Node {
|
945 | type: "TSEnumDeclaration";
|
946 | id: Identifier;
|
947 | members: TSEnumMember[];
|
948 | const: boolean | null;
|
949 | declare: boolean | null;
|
950 | initializer: Expression | null;
|
951 | }
|
952 |
|
953 | export interface TSEnumMember extends Node {
|
954 | type: "TSEnumMember";
|
955 | id: Identifier | StringLiteral;
|
956 | initializer: Expression | null;
|
957 | }
|
958 |
|
959 | export interface TSExportAssignment extends Node {
|
960 | type: "TSExportAssignment";
|
961 | expression: Expression;
|
962 | }
|
963 |
|
964 | export interface TSExpressionWithTypeArguments extends Node {
|
965 | type: "TSExpressionWithTypeArguments";
|
966 | expression: TSEntityName;
|
967 | typeParameters: TypeParameterInstantiation | null;
|
968 | }
|
969 |
|
970 | export interface TSExternalModuleReference extends Node {
|
971 | type: "TSExternalModuleReference";
|
972 | expression: StringLiteral;
|
973 | }
|
974 |
|
975 | export interface TSFunctionType extends Node {
|
976 | type: "TSFunctionType";
|
977 | typeParameters: TypeParameterDeclaration | null;
|
978 | typeAnnotation: TSTypeAnnotation | null;
|
979 | parameters: Array<Identifier | RestElement> | null;
|
980 | }
|
981 |
|
982 | export interface TSImportEqualsDeclaration extends Node {
|
983 | type: "TSImportEqualsDeclaration";
|
984 | id: Identifier;
|
985 | moduleReference: TSEntityName | TSExternalModuleReference;
|
986 | isExport: boolean | null;
|
987 | }
|
988 |
|
989 | export interface TSIndexSignature extends Node {
|
990 | type: "TSIndexSignature";
|
991 | parameters: Identifier[];
|
992 | typeAnnotation: TSTypeAnnotation | null;
|
993 | readonly: boolean | null;
|
994 | }
|
995 |
|
996 | export interface TSIndexedAccessType extends Node {
|
997 | type: "TSIndexedAccessType";
|
998 | objectType: TSType;
|
999 | indexType: TSType;
|
1000 | }
|
1001 |
|
1002 | export interface TSInterfaceBody extends Node {
|
1003 | type: "TSInterfaceBody";
|
1004 | body: TSTypeElement[];
|
1005 | }
|
1006 |
|
1007 | export interface TSInterfaceDeclaration extends Node {
|
1008 | type: "TSInterfaceDeclaration";
|
1009 | id: Identifier;
|
1010 | typeParameters: TypeParameterDeclaration | null;
|
1011 | extends: TSExpressionWithTypeArguments[] | null;
|
1012 | body: TSInterfaceBody;
|
1013 | declare: boolean | null;
|
1014 | }
|
1015 |
|
1016 | export interface TSIntersectionType extends Node {
|
1017 | type: "TSIntersectionType";
|
1018 | types: TSType[];
|
1019 | }
|
1020 |
|
1021 | export interface TSLiteralType extends Node {
|
1022 | type: "TSLiteralType";
|
1023 | literal: NumericLiteral | StringLiteral | BooleanLiteral;
|
1024 | }
|
1025 |
|
1026 | export interface TSMappedType extends Node {
|
1027 | type: "TSMappedType";
|
1028 | typeParameter: TypeParameter;
|
1029 | typeAnnotation: TSType | null;
|
1030 | optional: boolean | null;
|
1031 | readonly: boolean | null;
|
1032 | }
|
1033 |
|
1034 | export interface TSMethodSignature extends Node {
|
1035 | type: "TSMethodSignature";
|
1036 | key: Expression;
|
1037 | typeParameters: TypeParameterDeclaration | null;
|
1038 | parameters: Array<Identifier | RestElement> | null;
|
1039 | typeAnnotation: TSTypeAnnotation | null;
|
1040 | computed: boolean | null;
|
1041 | optional: boolean | null;
|
1042 | }
|
1043 |
|
1044 | export interface TSModuleBlock extends Node {
|
1045 | type: "TSModuleBlock";
|
1046 | body: Statement[];
|
1047 | }
|
1048 |
|
1049 | export interface TSModuleDeclaration extends Node {
|
1050 | type: "TSModuleDeclaration";
|
1051 | id: Identifier | StringLiteral;
|
1052 | body: TSModuleBlock | TSModuleDeclaration;
|
1053 | declare: boolean | null;
|
1054 | global: boolean | null;
|
1055 | }
|
1056 |
|
1057 | export interface TSNamespaceExportDeclaration extends Node {
|
1058 | type: "TSNamespaceExportDeclaration";
|
1059 | id: Identifier;
|
1060 | }
|
1061 |
|
1062 | export interface TSNeverKeyword extends Node {
|
1063 | type: "TSNeverKeyword";
|
1064 | }
|
1065 |
|
1066 | export interface TSNonNullExpression extends Node {
|
1067 | type: "TSNonNullExpression";
|
1068 | expression: Expression;
|
1069 | }
|
1070 |
|
1071 | export interface TSNullKeyword extends Node {
|
1072 | type: "TSNullKeyword";
|
1073 | }
|
1074 |
|
1075 | export interface TSNumberKeyword extends Node {
|
1076 | type: "TSNumberKeyword";
|
1077 | }
|
1078 |
|
1079 | export interface TSObjectKeyword extends Node {
|
1080 | type: "TSObjectKeyword";
|
1081 | }
|
1082 |
|
1083 | export interface TSParameterProperty extends Node {
|
1084 | type: "TSParameterProperty";
|
1085 | parameter: Identifier | AssignmentPattern;
|
1086 | accessibility: 'public' | 'private' | 'protected' | null;
|
1087 | readonly: boolean | null;
|
1088 | }
|
1089 |
|
1090 | export interface TSParenthesizedType extends Node {
|
1091 | type: "TSParenthesizedType";
|
1092 | typeAnnotation: TSType;
|
1093 | }
|
1094 |
|
1095 | export interface TSPropertySignature extends Node {
|
1096 | type: "TSPropertySignature";
|
1097 | key: Expression;
|
1098 | typeAnnotation: TSTypeAnnotation | null;
|
1099 | initializer: Expression | null;
|
1100 | computed: boolean | null;
|
1101 | optional: boolean | null;
|
1102 | readonly: boolean | null;
|
1103 | }
|
1104 |
|
1105 | export interface TSQualifiedName extends Node {
|
1106 | type: "TSQualifiedName";
|
1107 | left: TSEntityName;
|
1108 | right: Identifier;
|
1109 | }
|
1110 |
|
1111 | export interface TSStringKeyword extends Node {
|
1112 | type: "TSStringKeyword";
|
1113 | }
|
1114 |
|
1115 | export interface TSSymbolKeyword extends Node {
|
1116 | type: "TSSymbolKeyword";
|
1117 | }
|
1118 |
|
1119 | export interface TSThisType extends Node {
|
1120 | type: "TSThisType";
|
1121 | }
|
1122 |
|
1123 | export interface TSTupleType extends Node {
|
1124 | type: "TSTupleType";
|
1125 | elementTypes: TSType[];
|
1126 | }
|
1127 |
|
1128 | export interface TSTypeAliasDeclaration extends Node {
|
1129 | type: "TSTypeAliasDeclaration";
|
1130 | id: Identifier;
|
1131 | typeParameters: TypeParameterDeclaration | null;
|
1132 | typeAnnotation: TSType;
|
1133 | declare: boolean | null;
|
1134 | }
|
1135 |
|
1136 | export interface TSTypeAnnotation extends Node {
|
1137 | type: "TSTypeAnnotation";
|
1138 | typeAnnotation: TSType;
|
1139 | }
|
1140 |
|
1141 | export interface TSTypeAssertion extends Node {
|
1142 | type: "TSTypeAssertion";
|
1143 | typeAnnotation: TSType;
|
1144 | expression: Expression;
|
1145 | }
|
1146 |
|
1147 | export interface TSTypeLiteral extends Node {
|
1148 | type: "TSTypeLiteral";
|
1149 | members: TSTypeElement[];
|
1150 | }
|
1151 |
|
1152 | export interface TSTypeOperator extends Node {
|
1153 | type: "TSTypeOperator";
|
1154 | typeAnnotation: TSType;
|
1155 | operator: string | null;
|
1156 | }
|
1157 |
|
1158 | export interface TSTypeParameter extends Node {
|
1159 | type: "TSTypeParameter";
|
1160 | constraint: TSType | null;
|
1161 | default: TSType | null;
|
1162 | name: string | null;
|
1163 | }
|
1164 |
|
1165 | export interface TSTypeParameterDeclaration extends Node {
|
1166 | type: "TSTypeParameterDeclaration";
|
1167 | params: TSTypeParameter[];
|
1168 | }
|
1169 |
|
1170 | export interface TSTypeParameterInstantiation extends Node {
|
1171 | type: "TSTypeParameterInstantiation";
|
1172 | params: TSType[];
|
1173 | }
|
1174 |
|
1175 | export interface TSTypePredicate extends Node {
|
1176 | type: "TSTypePredicate";
|
1177 | parameterName: Identifier | TSThisType;
|
1178 | typeAnnotation: TSTypeAnnotation;
|
1179 | }
|
1180 |
|
1181 | export interface TSTypeQuery extends Node {
|
1182 | type: "TSTypeQuery";
|
1183 | exprName: TSEntityName;
|
1184 | }
|
1185 |
|
1186 | export interface TSTypeReference extends Node {
|
1187 | type: "TSTypeReference";
|
1188 | typeName: TSEntityName;
|
1189 | typeParameters: TypeParameterInstantiation | null;
|
1190 | }
|
1191 |
|
1192 | export interface TSUndefinedKeyword extends Node {
|
1193 | type: "TSUndefinedKeyword";
|
1194 | }
|
1195 |
|
1196 | export interface TSUnionType extends Node {
|
1197 | type: "TSUnionType";
|
1198 | types: TSType[];
|
1199 | }
|
1200 |
|
1201 | export interface TSVoidKeyword extends Node {
|
1202 | type: "TSVoidKeyword";
|
1203 | }
|
1204 |
|
1205 | export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression
|
1206 | | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | BooleanLiteral
|
1207 | | NullLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression
|
1208 | | SequenceExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression
|
1209 | | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression
|
1210 | | TypeCastExpression | JSXElement | JSXEmptyExpression | JSXIdentifier | JSXMemberExpression
|
1211 | | ParenthesizedExpression | AwaitExpression | BindExpression | DoExpression | TSAsExpression
|
1212 | | TSNonNullExpression | TSTypeAssertion;
|
1213 |
|
1214 | export type Binary = BinaryExpression | LogicalExpression;
|
1215 |
|
1216 | export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement
|
1217 | | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement
|
1218 | | ArrowFunctionExpression | ClassDeclaration | ClassExpression | ForOfStatement | ClassMethod;
|
1219 |
|
1220 | export type BlockParent = BlockStatement | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration
|
1221 | | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression
|
1222 | | ForOfStatement | ClassMethod;
|
1223 |
|
1224 | export type Block = BlockStatement | Program;
|
1225 |
|
1226 | export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement
|
1227 | | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement
|
1228 | | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration
|
1229 | | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration
|
1230 | | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface
|
1231 | | DeclareModule | DeclareTypeAlias | DeclareVariable | InterfaceDeclaration | TypeAlias | TSDeclareFunction
|
1232 | | TSEnumDeclaration | TSExportAssignment | TSImportEqualsDeclaration | TSInterfaceDeclaration
|
1233 | | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration;
|
1234 |
|
1235 | export type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
|
1236 | export type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
|
1237 | export type Conditional = ConditionalExpression | IfStatement;
|
1238 | export type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
|
1239 | export type While = DoWhileStatement | WhileStatement;
|
1240 | export type ExpressionWrapper = ExpressionStatement | TypeCastExpression | ParenthesizedExpression;
|
1241 | export type For = ForInStatement | ForStatement | ForOfStatement;
|
1242 | export type ForXStatement = ForInStatement | ForOfStatement;
|
1243 | export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod;
|
1244 | export type FunctionParent = FunctionDeclaration | FunctionExpression | Program | ObjectMethod | ArrowFunctionExpression | ClassMethod;
|
1245 | export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | BooleanLiteral | NullLiteral | ArrowFunctionExpression | ClassDeclaration | ClassExpression;
|
1246 |
|
1247 | export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration
|
1248 | | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction
|
1249 | | DeclareInterface | DeclareModule | DeclareTypeAlias | DeclareVariable | InterfaceDeclaration | TypeAlias
|
1250 | | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration;
|
1251 |
|
1252 | export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern
|
1253 | | TSParameterProperty;
|
1254 | export type Literal = StringLiteral | NumericLiteral | BooleanLiteral | NullLiteral | RegExpLiteral | TemplateLiteral;
|
1255 | export type Immutable = StringLiteral | NumericLiteral | BooleanLiteral | NullLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXOpeningElement;
|
1256 | export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty;
|
1257 | export type Method = ObjectMethod | ClassMethod;
|
1258 | export type ObjectMember = ObjectMethod | ObjectProperty;
|
1259 | export type Property = ObjectProperty | ClassProperty;
|
1260 | export type UnaryLike = UnaryExpression | SpreadElement | RestProperty | SpreadProperty;
|
1261 | export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
|
1262 | export type Class = ClassDeclaration | ClassExpression;
|
1263 | export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
1264 | export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
|
1265 | export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier;
|
1266 |
|
1267 | export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation
|
1268 | | ClassImplements | ClassProperty | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule
|
1269 | | DeclareTypeAlias | DeclareVariable | ExistentialTypeParam | FunctionTypeAnnotation | FunctionTypeParam
|
1270 | | GenericTypeAnnotation | InterfaceExtends | InterfaceDeclaration | IntersectionTypeAnnotation
|
1271 | | MixedTypeAnnotation | NullableTypeAnnotation | NumericLiteralTypeAnnotation | NumberTypeAnnotation
|
1272 | | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation
|
1273 | | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameterDeclaration
|
1274 | | TypeParameterInstantiation | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer
|
1275 | | ObjectTypeProperty | QualifiedTypeIdentifier | UnionTypeAnnotation | VoidTypeAnnotation;
|
1276 |
|
1277 | export type FlowTypeAnnotation = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation
|
1278 | | BooleanLiteralTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | IntersectionTypeAnnotation
|
1279 | | MixedTypeAnnotation | NullableTypeAnnotation | NumericLiteralTypeAnnotation | NumberTypeAnnotation
|
1280 | | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation
|
1281 | | TypeofTypeAnnotation | TypeAnnotation | ObjectTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation;
|
1282 |
|
1283 | export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | MixedTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
|
1284 | export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareTypeAlias | DeclareVariable | InterfaceDeclaration | TypeAlias;
|
1285 |
|
1286 | export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer
|
1287 | | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText;
|
1288 |
|
1289 | export type TSType = TSAnyKeyword | TSArrayType | TSBooleanKeyword | TSConstructorType | TSExpressionWithTypeArguments
|
1290 | | TSFunctionType | TSIndexedAccessType | TSIntersectionType | TSLiteralType | TSMappedType | TSNeverKeyword
|
1291 | | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSParenthesizedType | TSStringKeyword | TSSymbolKeyword
|
1292 | | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference
|
1293 | | TSUndefinedKeyword | TSUnionType | TSVoidKeyword;
|
1294 |
|
1295 | export type TSEntityName = Identifier | TSQualifiedName;
|
1296 |
|
1297 | export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature
|
1298 | | TSMethodSignature | TSPropertySignature;
|
1299 |
|
1300 | export function arrayExpression(elements?: Array<null | Expression | SpreadElement>): ArrayExpression;
|
1301 | export function assignmentExpression(operator?: string, left?: LVal, right?: Expression): AssignmentExpression;
|
1302 | export function binaryExpression(
|
1303 | operator?: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=",
|
1304 | left?: Expression,
|
1305 | right?: Expression
|
1306 | ): BinaryExpression;
|
1307 | export function directive(value?: DirectiveLiteral): Directive;
|
1308 | export function directiveLiteral(value?: string): DirectiveLiteral;
|
1309 | export function blockStatement(body?: Statement[], directives?: Directive[]): BlockStatement;
|
1310 | export function breakStatement(label?: Identifier): BreakStatement;
|
1311 | export function callExpression(callee?: Expression, _arguments?: Array<Expression | SpreadElement>): CallExpression;
|
1312 | export function catchClause(param?: Identifier, body?: BlockStatement): CatchClause;
|
1313 | export function conditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression;
|
1314 | export function continueStatement(label?: Identifier): ContinueStatement;
|
1315 | export function debuggerStatement(): DebuggerStatement;
|
1316 | export function doWhileStatement(test?: Expression, body?: Statement): DoWhileStatement;
|
1317 | export function emptyStatement(): EmptyStatement;
|
1318 | export function expressionStatement(expression?: Expression): ExpressionStatement;
|
1319 | export function file(program?: Program, comments?: Comment[], tokens?: any[]): File;
|
1320 | export function forInStatement(left?: VariableDeclaration | LVal, right?: Expression, body?: Statement): ForInStatement;
|
1321 | export function forStatement(init?: VariableDeclaration | Expression, test?: Expression, update?: Expression, body?: Statement): ForStatement;
|
1322 | export function functionDeclaration(id?: Identifier, params?: LVal[], body?: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration;
|
1323 | export function functionExpression(id?: Identifier, params?: LVal[], body?: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression;
|
1324 | export function identifier(name?: string): Identifier;
|
1325 | export function ifStatement(test?: Expression, consequent?: Statement, alternate?: Statement): IfStatement;
|
1326 | export function labeledStatement(label?: Identifier, body?: Statement): LabeledStatement;
|
1327 | export function stringLiteral(value?: string): StringLiteral;
|
1328 | export function numericLiteral(value?: number): NumericLiteral;
|
1329 | export function nullLiteral(): NullLiteral;
|
1330 | export function booleanLiteral(value?: boolean): BooleanLiteral;
|
1331 | export function regExpLiteral(pattern?: string, flags?: string): RegExpLiteral;
|
1332 | export function logicalExpression(operator?: "||" | "&&", left?: Expression, right?: Expression): LogicalExpression;
|
1333 | export function memberExpression(object?: Expression | Super, property?: Expression, computed?: boolean): MemberExpression;
|
1334 | export function newExpression(callee?: Expression | Super, _arguments?: Array<Expression | SpreadElement>): NewExpression;
|
1335 | export function program(body?: Array<Statement | ModuleDeclaration>, directives?: Directive[]): Program;
|
1336 | export function objectExpression(properties?: Array<ObjectProperty | ObjectMethod | SpreadProperty>): ObjectExpression;
|
1337 | export function objectMethod(kind?: "get" | "set" | "method", key?: Expression, params?: LVal[], body?: BlockStatement, computed?: boolean): ObjectMethod;
|
1338 | export function objectProperty(key?: Expression, value?: Expression, computed?: boolean, shorthand?: boolean, decorators?: Decorator[]): ObjectProperty;
|
1339 | export function restElement(argument?: LVal, typeAnnotation?: TypeAnnotation): RestElement;
|
1340 | export function returnStatement(argument?: Expression): ReturnStatement;
|
1341 | export function sequenceExpression(expressions?: Expression[]): SequenceExpression;
|
1342 | export function switchCase(test?: Expression, consequent?: Statement[]): SwitchCase;
|
1343 | export function switchStatement(discriminant?: Expression, cases?: SwitchCase[]): SwitchStatement;
|
1344 | export function thisExpression(): ThisExpression;
|
1345 | export function throwStatement(argument?: Expression): ThrowStatement;
|
1346 | export function tryStatement(block?: BlockStatement, handler?: CatchClause, finalizer?: BlockStatement): TryStatement;
|
1347 | export function unaryExpression(operator?: "void" | "delete" | "!" | "+" | "-" | "++" | "--" | "~" | "typeof", argument?: Expression, prefix?: boolean): UnaryExpression;
|
1348 | export function updateExpression(operator?: "++" | "--", argument?: Expression, prefix?: boolean): UpdateExpression;
|
1349 | export function variableDeclaration(kind?: "var" | "let" | "const", declarations?: VariableDeclarator[]): VariableDeclaration;
|
1350 | export function variableDeclarator(id?: LVal, init?: Expression): VariableDeclarator;
|
1351 | export function whileStatement(test?: Expression, body?: BlockStatement | Statement): WhileStatement;
|
1352 | export function withStatement(object?: Expression, body?: BlockStatement | Statement): WithStatement;
|
1353 | export function assignmentPattern(left?: Identifier, right?: Expression): AssignmentPattern;
|
1354 | export function arrayPattern(elements?: Expression[], typeAnnotation?: TypeAnnotation): ArrayPattern;
|
1355 | export function arrowFunctionExpression(params?: LVal[], body?: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression;
|
1356 | export function classBody(body?: Array<ClassMethod | ClassProperty>): ClassBody;
|
1357 | export function classDeclaration(id?: Identifier, superClass?: Expression, body?: ClassBody, decorators?: Decorator[]): ClassDeclaration;
|
1358 | export function classExpression(id?: Identifier, superClass?: Expression, body?: ClassBody, decorators?: Decorator[]): ClassExpression;
|
1359 | export function exportAllDeclaration(source?: StringLiteral): ExportAllDeclaration;
|
1360 | export function exportDefaultDeclaration(declaration?: FunctionDeclaration | ClassDeclaration | Expression): ExportDefaultDeclaration;
|
1361 | export function exportNamedDeclaration(declaration?: Declaration, specifiers?: ExportSpecifier[], source?: StringLiteral): ExportNamedDeclaration;
|
1362 | export function exportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier;
|
1363 | export function forOfStatement(left?: VariableDeclaration | LVal, right?: Expression, body?: Statement): ForOfStatement;
|
1364 | export function importDeclaration(specifiers?: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>, source?: StringLiteral): ImportDeclaration;
|
1365 | export function importDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier;
|
1366 | export function importNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier;
|
1367 | export function importSpecifier(local?: Identifier, imported?: Identifier): ImportSpecifier;
|
1368 | export function metaProperty(meta?: string, property?: string): MetaProperty;
|
1369 | export function classMethod(kind?: "constructor" | "method" | "get" | "set", key?: Expression, params?: LVal[], body?: BlockStatement, computed?: boolean, _static?: boolean): ClassMethod;
|
1370 | export function objectPattern(properties?: Array<AssignmentProperty | RestProperty>, typeAnnotation?: TypeAnnotation): ObjectPattern;
|
1371 | export function spreadElement(argument?: Expression): SpreadElement;
|
1372 | export function taggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral): TaggedTemplateExpression;
|
1373 | export function templateElement(value?: { cooked?: string; raw?: string; }, tail?: boolean): TemplateElement;
|
1374 | export function templateLiteral(quasis?: TemplateElement[], expressions?: Expression[]): TemplateLiteral;
|
1375 | export function yieldExpression(argument?: Expression, delegate?: boolean): YieldExpression;
|
1376 | export function anyTypeAnnotation(): AnyTypeAnnotation;
|
1377 | export function arrayTypeAnnotation(elementType?: FlowTypeAnnotation): ArrayTypeAnnotation;
|
1378 | export function booleanTypeAnnotation(): BooleanTypeAnnotation;
|
1379 | export function booleanLiteralTypeAnnotation(): BooleanLiteralTypeAnnotation;
|
1380 | export function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation;
|
1381 | export function classImplements(id?: Identifier, typeParameters?: TypeParameterInstantiation): ClassImplements;
|
1382 | export function classProperty(key?: Identifier, value?: Expression, typeAnnotation?: TypeAnnotation, decorators?: Decorator[]): ClassProperty;
|
1383 | export function declareClass(id?: Identifier, typeParameters?: TypeParameterDeclaration, _extends?: InterfaceExtends[], body?: ObjectTypeAnnotation): DeclareClass;
|
1384 | export function declareFunction(id?: Identifier): DeclareFunction;
|
1385 | export function declareInterface(id?: Identifier, typeParameters?: TypeParameterDeclaration, _extends?: InterfaceExtends[], body?: ObjectTypeAnnotation): DeclareInterface;
|
1386 | export function declareModule(id?: StringLiteral | Identifier, body?: BlockStatement): DeclareModule;
|
1387 | export function declareTypeAlias(id?: Identifier, typeParameters?: TypeParameterDeclaration, right?: FlowTypeAnnotation): DeclareTypeAlias;
|
1388 | export function declareVariable(id?: Identifier): DeclareVariable;
|
1389 | export function existentialTypeParam(): ExistentialTypeParam;
|
1390 | export function functionTypeAnnotation(typeParameters?: TypeParameterDeclaration, params?: FunctionTypeParam[], rest?: FunctionTypeParam, returnType?: FlowTypeAnnotation): FunctionTypeAnnotation;
|
1391 | export function functionTypeParam(name?: Identifier, typeAnnotation?: FlowTypeAnnotation): FunctionTypeParam;
|
1392 | export function genericTypeAnnotation(id?: Identifier, typeParameters?: TypeParameterInstantiation): GenericTypeAnnotation;
|
1393 | export function interfaceExtends(id?: Identifier, typeParameters?: TypeParameterInstantiation): InterfaceExtends;
|
1394 | export function interfaceDeclaration(id?: Identifier, typeParameters?: TypeParameterDeclaration, _extends?: InterfaceExtends[], body?: ObjectTypeAnnotation): InterfaceDeclaration;
|
1395 | export function intersectionTypeAnnotation(types?: FlowTypeAnnotation[]): IntersectionTypeAnnotation;
|
1396 | export function mixedTypeAnnotation(): MixedTypeAnnotation;
|
1397 | export function nullableTypeAnnotation(typeAnnotation?: FlowTypeAnnotation): NullableTypeAnnotation;
|
1398 | export function numericLiteralTypeAnnotation(): NumericLiteralTypeAnnotation;
|
1399 | export function numberTypeAnnotation(): NumberTypeAnnotation;
|
1400 | export function stringLiteralTypeAnnotation(): StringLiteralTypeAnnotation;
|
1401 | export function stringTypeAnnotation(): StringTypeAnnotation;
|
1402 | export function thisTypeAnnotation(): ThisTypeAnnotation;
|
1403 | export function tupleTypeAnnotation(types?: FlowTypeAnnotation[]): TupleTypeAnnotation;
|
1404 | export function typeofTypeAnnotation(argument?: FlowTypeAnnotation): TypeofTypeAnnotation;
|
1405 | export function typeAlias(id?: Identifier, typeParameters?: TypeParameterDeclaration, right?: FlowTypeAnnotation): TypeAlias;
|
1406 | export function typeAnnotation(typeAnnotation?: FlowTypeAnnotation): TypeAnnotation;
|
1407 | export function typeCastExpression(expression?: Expression, typeAnnotation?: FlowTypeAnnotation): TypeCastExpression;
|
1408 | export function typeParameter(bound?: TypeAnnotation, default_?: Flow): TypeParameter;
|
1409 | export function typeParameterDeclaration(params?: Identifier[]): TypeParameterDeclaration;
|
1410 | export function typeParameterInstantiation(params?: FlowTypeAnnotation[]): TypeParameterInstantiation;
|
1411 | export function objectTypeAnnotation(properties?: ObjectTypeProperty[], indexers?: ObjectTypeIndexer[], callProperties?: ObjectTypeCallProperty[]): ObjectTypeAnnotation;
|
1412 | export function objectTypeCallProperty(value?: FlowTypeAnnotation): ObjectTypeCallProperty;
|
1413 | export function objectTypeIndexer(id?: Expression, key?: FlowTypeAnnotation, value?: FlowTypeAnnotation): ObjectTypeIndexer;
|
1414 | export function objectTypeProperty(key?: Expression, value?: FlowTypeAnnotation): ObjectTypeProperty;
|
1415 | export function qualifiedTypeIdentifier(id?: Identifier, qualification?: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier;
|
1416 | export function unionTypeAnnotation(types?: FlowTypeAnnotation[]): UnionTypeAnnotation;
|
1417 | export function voidTypeAnnotation(): VoidTypeAnnotation;
|
1418 | export function jSXAttribute(name?: JSXIdentifier | JSXNamespacedName, value?: JSXElement | StringLiteral | JSXExpressionContainer | null): JSXAttribute;
|
1419 | export function jSXClosingElement(name?: JSXIdentifier | JSXMemberExpression): JSXClosingElement;
|
1420 | export function jSXElement(openingElement?: JSXOpeningElement, closingElement?: JSXClosingElement, children?: Array<JSXElement | JSXExpressionContainer | JSXText>, selfClosing?: boolean): JSXElement;
|
1421 | export function jSXEmptyExpression(): JSXEmptyExpression;
|
1422 | export function jSXExpressionContainer(expression?: Expression): JSXExpressionContainer;
|
1423 | export function jSXIdentifier(name?: string): JSXIdentifier;
|
1424 | export function jSXMemberExpression(object?: JSXMemberExpression | JSXIdentifier, property?: JSXIdentifier): JSXMemberExpression;
|
1425 | export function jSXNamespacedName(namespace?: JSXIdentifier, name?: JSXIdentifier): JSXNamespacedName;
|
1426 | export function jSXOpeningElement(name?: JSXIdentifier | JSXMemberExpression, attributes?: JSXAttribute[], selfClosing?: boolean): JSXOpeningElement;
|
1427 | export function jSXSpreadAttribute(argument?: Expression): JSXSpreadAttribute;
|
1428 | export function jSXText(value?: string): JSXText;
|
1429 | export function noop(): Noop;
|
1430 | export function parenthesizedExpression(expression?: Expression): ParenthesizedExpression;
|
1431 | export function awaitExpression(argument?: Expression): AwaitExpression;
|
1432 | export function bindExpression(object?: Expression, callee?: Expression): BindExpression;
|
1433 | export function decorator(expression?: Expression): Decorator;
|
1434 | export function doExpression(body?: BlockStatement): DoExpression;
|
1435 | export function exportDefaultSpecifier(exported?: Identifier): ExportDefaultSpecifier;
|
1436 | export function exportNamespaceSpecifier(exported?: Identifier): ExportNamespaceSpecifier;
|
1437 | export function restProperty(argument?: LVal): RestProperty;
|
1438 | export function spreadProperty(argument?: Expression): SpreadProperty;
|
1439 |
|
1440 | export function TSAnyKeyword(): TSAnyKeyword;
|
1441 | export function TSArrayType(elementType: TSType): TSArrayType;
|
1442 | export function TSAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression;
|
1443 | export function TSBooleanKeyword(): TSBooleanKeyword;
|
1444 | export function TSCallSignatureDeclaration(typeParameters?: TypeParameterDeclaration, parameters?: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation): TSCallSignatureDeclaration;
|
1445 | export function TSConstructSignatureDeclaration(typeParameters?: TypeParameterDeclaration, parameters?: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation): TSTypeElement;
|
1446 | export function TSConstructorType(typeParameters?: TypeParameterDeclaration, typeAnnotation?: TSTypeAnnotation): TSConstructorType;
|
1447 | export function TSDeclareFunction(
|
1448 | id: Identifier | undefined | null,
|
1449 | typeParameters: TypeParameterDeclaration | Noop | undefined | null,
|
1450 | params: LVal[],
|
1451 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | undefined | null): TSDeclareFunction;
|
1452 | export function TSDeclareMethod(
|
1453 | decorators: Decorator[] | undefined | null,
|
1454 | key: Expression,
|
1455 | typeParameters: TypeParameterDeclaration | Noop | undefined | null,
|
1456 | params: LVal[],
|
1457 | returnType?: TypeAnnotation | TSTypeAnnotation | Noop): TSDeclareMethod;
|
1458 | export function TSEnumDeclaration(id: Identifier, members: TSEnumMember[]): TSEnumDeclaration;
|
1459 | export function TSEnumMember(id: Identifier | StringLiteral, initializer?: Expression): TSEnumMember;
|
1460 | export function TSExportAssignment(expression: Expression): TSExportAssignment;
|
1461 | export function TSExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TypeParameterInstantiation): TSExpressionWithTypeArguments;
|
1462 | export function TSExternalModuleReference(expression: StringLiteral): TSExternalModuleReference;
|
1463 | export function TSFunctionType(typeParameters?: TypeParameterDeclaration, typeAnnotation?: TSTypeAnnotation): TSFunctionType;
|
1464 | export function TSImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference): TSImportEqualsDeclaration;
|
1465 | export function TSIndexSignature(parameters: Identifier[], typeAnnotation?: TSTypeAnnotation): TSIndexSignature;
|
1466 | export function TSIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
|
1467 | export function TSInterfaceBody(body: TSTypeElement[]): TSInterfaceBody;
|
1468 | export function TSInterfaceDeclaration(
|
1469 | id: Identifier,
|
1470 | typeParameters: TypeParameterDeclaration | undefined | null,
|
1471 | extends_: TSExpressionWithTypeArguments[] | undefined | null,
|
1472 | body: TSInterfaceBody): TSInterfaceDeclaration;
|
1473 | export function TSIntersectionType(types: TSType[]): TSIntersectionType;
|
1474 | export function TSLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral): TSLiteralType;
|
1475 | export function TSMappedType(typeParameter: TypeParameter, typeAnnotation?: TSType): TSMappedType;
|
1476 | export function TSMethodSignature(key: Expression, typeParameters?: TypeParameterDeclaration, parameters?: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation): TSMethodSignature;
|
1477 | export function TSModuleBlock(body: Statement[]): TSModuleBlock;
|
1478 | export function TSModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration): TSModuleDeclaration;
|
1479 | export function TSNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration;
|
1480 | export function TSNeverKeyword(): TSNeverKeyword;
|
1481 | export function TSNonNullExpression(expression: Expression): TSNonNullExpression;
|
1482 | export function TSNullKeyword(): TSNullKeyword;
|
1483 | export function TSNumberKeyword(): TSNumberKeyword;
|
1484 | export function TSObjectKeyword(): TSObjectKeyword;
|
1485 | export function TSParameterProperty(parameter: Identifier | AssignmentPattern): TSParameterProperty;
|
1486 | export function TSParenthesizedType(typeAnnotation: TSType): TSParenthesizedType;
|
1487 | export function TSPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation, initializer?: Expression): TSPropertySignature;
|
1488 | export function TSQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName;
|
1489 | export function TSStringKeyword(): TSStringKeyword;
|
1490 | export function TSSymbolKeyword(): TSSymbolKeyword;
|
1491 | export function TSThisType(): TSThisType;
|
1492 | export function TSTupleType(elementTypes: TSType[]): TSTupleType;
|
1493 | export function TSTypeAliasDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | undefined | null, typeAnnotation: TSType): TSTypeAliasDeclaration;
|
1494 | export function TSTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation;
|
1495 | export function TSTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion;
|
1496 | export function TSTypeLiteral(members: TSTypeElement[]): TSTypeLiteral;
|
1497 | export function TSTypeOperator(typeAnnotation: TSType): TSTypeOperator;
|
1498 | export function TSTypeParameter(constraint?: TSType, default_?: TSType): TSTypeParameter;
|
1499 | export function TSTypeParameterDeclaration(params: TSTypeParameter[]): TSTypeParameterDeclaration;
|
1500 | export function TSTypeParameterInstantiation(params: TSType[]): TSTypeParameterInstantiation;
|
1501 | export function TSTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation: TSTypeAnnotation): TSTypePredicate;
|
1502 | export function TSTypeQuery(exprName: TSEntityName): TSTypeQuery;
|
1503 | export function TSTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation): TSTypeReference;
|
1504 | export function TSUndefinedKeyword(): TSUndefinedKeyword;
|
1505 | export function TSUnionType(types: TSType[]): TSUnionType;
|
1506 | export function TSVoidKeyword(): TSVoidKeyword;
|
1507 |
|
1508 | export function isArrayExpression(node: object | null | undefined, opts?: object): node is ArrayExpression;
|
1509 | export function isAssignmentExpression(node: object | null | undefined, opts?: object): node is AssignmentExpression;
|
1510 | export function isBinaryExpression(node: object | null | undefined, opts?: object): node is BinaryExpression;
|
1511 | export function isDirective(node: object | null | undefined, opts?: object): node is Directive;
|
1512 | export function isDirectiveLiteral(node: object | null | undefined, opts?: object): node is DirectiveLiteral;
|
1513 | export function isBlockStatement(node: object | null | undefined, opts?: object): node is BlockStatement;
|
1514 | export function isBreakStatement(node: object | null | undefined, opts?: object): node is BreakStatement;
|
1515 | export function isCallExpression(node: object | null | undefined, opts?: object): node is CallExpression;
|
1516 | export function isCatchClause(node: object | null | undefined, opts?: object): node is CatchClause;
|
1517 | export function isConditionalExpression(node: object | null | undefined, opts?: object): node is ConditionalExpression;
|
1518 | export function isContinueStatement(node: object | null | undefined, opts?: object): node is ContinueStatement;
|
1519 | export function isDebuggerStatement(node: object | null | undefined, opts?: object): node is DebuggerStatement;
|
1520 | export function isDoWhileStatement(node: object | null | undefined, opts?: object): node is DoWhileStatement;
|
1521 | export function isEmptyStatement(node: object | null | undefined, opts?: object): node is EmptyStatement;
|
1522 | export function isExpressionStatement(node: object | null | undefined, opts?: object): node is ExpressionStatement;
|
1523 | export function isFile(node: object | null | undefined, opts?: object): node is File;
|
1524 | export function isForInStatement(node: object | null | undefined, opts?: object): node is ForInStatement;
|
1525 | export function isForStatement(node: object | null | undefined, opts?: object): node is ForStatement;
|
1526 | export function isFunctionDeclaration(node: object | null | undefined, opts?: object): node is FunctionDeclaration;
|
1527 | export function isFunctionExpression(node: object | null | undefined, opts?: object): node is FunctionExpression;
|
1528 | export function isIdentifier(node: object | null | undefined, opts?: object): node is Identifier;
|
1529 | export function isIfStatement(node: object | null | undefined, opts?: object): node is IfStatement;
|
1530 | export function isLabeledStatement(node: object | null | undefined, opts?: object): node is LabeledStatement;
|
1531 | export function isStringLiteral(node: object | null | undefined, opts?: object): node is StringLiteral;
|
1532 | export function isNumericLiteral(node: object | null | undefined, opts?: object): node is NumericLiteral;
|
1533 |
|
1534 | /** @deprecated Use `isNumericLiteral` */
|
1535 | export function isNumberLiteral(node: object | null | undefined, opts?: object): node is NumericLiteral;
|
1536 | export function isNullLiteral(node: object | null | undefined, opts?: object): node is NullLiteral;
|
1537 | export function isBooleanLiteral(node: object | null | undefined, opts?: object): node is BooleanLiteral;
|
1538 | export function isRegExpLiteral(node: object | null | undefined, opts?: object): node is RegExpLiteral;
|
1539 |
|
1540 | /** @deprecated Use `isRegExpLiteral` */
|
1541 | export function isRegexLiteral(node: object | null | undefined, opts?: object): node is RegExpLiteral;
|
1542 | export function isLogicalExpression(node: object | null | undefined, opts?: object): node is LogicalExpression;
|
1543 | export function isMemberExpression(node: object | null | undefined, opts?: object): node is MemberExpression;
|
1544 | export function isNewExpression(node: object | null | undefined, opts?: object): node is NewExpression;
|
1545 | export function isProgram(node: object | null | undefined, opts?: object): node is Program;
|
1546 | export function isObjectExpression(node: object | null | undefined, opts?: object): node is ObjectExpression;
|
1547 | export function isObjectMethod(node: object | null | undefined, opts?: object): node is ObjectMethod;
|
1548 | export function isObjectProperty(node: object | null | undefined, opts?: object): node is ObjectProperty;
|
1549 | export function isRestElement(node: object | null | undefined, opts?: object): node is RestElement;
|
1550 | export function isReturnStatement(node: object | null | undefined, opts?: object): node is ReturnStatement;
|
1551 | export function isSequenceExpression(node: object | null | undefined, opts?: object): node is SequenceExpression;
|
1552 | export function isSwitchCase(node: object | null | undefined, opts?: object): node is SwitchCase;
|
1553 | export function isSwitchStatement(node: object | null | undefined, opts?: object): node is SwitchStatement;
|
1554 | export function isThisExpression(node: object | null | undefined, opts?: object): node is ThisExpression;
|
1555 | export function isThrowStatement(node: object | null | undefined, opts?: object): node is ThrowStatement;
|
1556 | export function isTryStatement(node: object | null | undefined, opts?: object): node is TryStatement;
|
1557 | export function isUnaryExpression(node: object | null | undefined, opts?: object): node is UnaryExpression;
|
1558 | export function isUpdateExpression(node: object | null | undefined, opts?: object): node is UpdateExpression;
|
1559 | export function isVariableDeclaration(node: object | null | undefined, opts?: object): node is VariableDeclaration;
|
1560 | export function isVariableDeclarator(node: object | null | undefined, opts?: object): node is VariableDeclarator;
|
1561 | export function isWhileStatement(node: object | null | undefined, opts?: object): node is WhileStatement;
|
1562 | export function isWithStatement(node: object | null | undefined, opts?: object): node is WithStatement;
|
1563 | export function isAssignmentPattern(node: object | null | undefined, opts?: object): node is AssignmentPattern;
|
1564 | export function isArrayPattern(node: object | null | undefined, opts?: object): node is ArrayPattern;
|
1565 | export function isArrowFunctionExpression(node: object | null | undefined, opts?: object): node is ArrowFunctionExpression;
|
1566 | export function isClassBody(node: object | null | undefined, opts?: object): node is ClassBody;
|
1567 | export function isClassDeclaration(node: object | null | undefined, opts?: object): node is ClassDeclaration;
|
1568 | export function isClassExpression(node: object | null | undefined, opts?: object): node is ClassExpression;
|
1569 | export function isExportAllDeclaration(node: object | null | undefined, opts?: object): node is ExportAllDeclaration;
|
1570 | export function isExportDefaultDeclaration(node: object | null | undefined, opts?: object): node is ExportDefaultDeclaration;
|
1571 | export function isExportNamedDeclaration(node: object | null | undefined, opts?: object): node is ExportNamedDeclaration;
|
1572 | export function isExportSpecifier(node: object | null | undefined, opts?: object): node is ExportSpecifier;
|
1573 | export function isForOfStatement(node: object | null | undefined, opts?: object): node is ForOfStatement;
|
1574 | export function isImportDeclaration(node: object | null | undefined, opts?: object): node is ImportDeclaration;
|
1575 | export function isImportDefaultSpecifier(node: object | null | undefined, opts?: object): node is ImportDefaultSpecifier;
|
1576 | export function isImportNamespaceSpecifier(node: object | null | undefined, opts?: object): node is ImportNamespaceSpecifier;
|
1577 | export function isImportSpecifier(node: object | null | undefined, opts?: object): node is ImportSpecifier;
|
1578 | export function isMetaProperty(node: object | null | undefined, opts?: object): node is MetaProperty;
|
1579 | export function isClassMethod(node: object | null | undefined, opts?: object): node is ClassMethod;
|
1580 | export function isObjectPattern(node: object | null | undefined, opts?: object): node is ObjectPattern;
|
1581 | export function isSpreadElement(node: object | null | undefined, opts?: object): node is SpreadElement;
|
1582 | export function isSuper(node: object | null | undefined, opts?: object): node is Super;
|
1583 | export function isTaggedTemplateExpression(node: object | null | undefined, opts?: object): node is TaggedTemplateExpression;
|
1584 | export function isTemplateElement(node: object | null | undefined, opts?: object): node is TemplateElement;
|
1585 | export function isTemplateLiteral(node: object | null | undefined, opts?: object): node is TemplateLiteral;
|
1586 | export function isYieldExpression(node: object | null | undefined, opts?: object): node is YieldExpression;
|
1587 | export function isAnyTypeAnnotation(node: object | null | undefined, opts?: object): node is AnyTypeAnnotation;
|
1588 | export function isArrayTypeAnnotation(node: object | null | undefined, opts?: object): node is ArrayTypeAnnotation;
|
1589 | export function isBooleanTypeAnnotation(node: object | null | undefined, opts?: object): node is BooleanTypeAnnotation;
|
1590 | export function isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object): node is BooleanLiteralTypeAnnotation;
|
1591 | export function isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object): node is NullLiteralTypeAnnotation;
|
1592 | export function isClassImplements(node: object | null | undefined, opts?: object): node is ClassImplements;
|
1593 | export function isClassProperty(node: object | null | undefined, opts?: object): node is ClassProperty;
|
1594 | export function isDeclareClass(node: object | null | undefined, opts?: object): node is DeclareClass;
|
1595 | export function isDeclareFunction(node: object | null | undefined, opts?: object): node is DeclareFunction;
|
1596 | export function isDeclareInterface(node: object | null | undefined, opts?: object): node is DeclareInterface;
|
1597 | export function isDeclareModule(node: object | null | undefined, opts?: object): node is DeclareModule;
|
1598 | export function isDeclareTypeAlias(node: object | null | undefined, opts?: object): node is DeclareTypeAlias;
|
1599 | export function isDeclareVariable(node: object | null | undefined, opts?: object): node is DeclareVariable;
|
1600 | export function isExistentialTypeParam(node: object | null | undefined, opts?: object): node is ExistentialTypeParam;
|
1601 | export function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object): node is FunctionTypeAnnotation;
|
1602 | export function isFunctionTypeParam(node: object | null | undefined, opts?: object): node is FunctionTypeParam;
|
1603 | export function isGenericTypeAnnotation(node: object | null | undefined, opts?: object): node is GenericTypeAnnotation;
|
1604 | export function isInterfaceExtends(node: object | null | undefined, opts?: object): node is InterfaceExtends;
|
1605 | export function isInterfaceDeclaration(node: object | null | undefined, opts?: object): node is InterfaceDeclaration;
|
1606 | export function isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object): node is IntersectionTypeAnnotation;
|
1607 | export function isMixedTypeAnnotation(node: object | null | undefined, opts?: object): node is MixedTypeAnnotation;
|
1608 | export function isNullableTypeAnnotation(node: object | null | undefined, opts?: object): node is NullableTypeAnnotation;
|
1609 | export function isNumericLiteralTypeAnnotation(node: object | null | undefined, opts?: object): node is NumericLiteralTypeAnnotation;
|
1610 | export function isNumberTypeAnnotation(node: object | null | undefined, opts?: object): node is NumberTypeAnnotation;
|
1611 | export function isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object): node is StringLiteralTypeAnnotation;
|
1612 | export function isStringTypeAnnotation(node: object | null | undefined, opts?: object): node is StringTypeAnnotation;
|
1613 | export function isThisTypeAnnotation(node: object | null | undefined, opts?: object): node is ThisTypeAnnotation;
|
1614 | export function isTupleTypeAnnotation(node: object | null | undefined, opts?: object): node is TupleTypeAnnotation;
|
1615 | export function isTypeofTypeAnnotation(node: object | null | undefined, opts?: object): node is TypeofTypeAnnotation;
|
1616 | export function isTypeAlias(node: object | null | undefined, opts?: object): node is TypeAlias;
|
1617 | export function isTypeAnnotation(node: object | null | undefined, opts?: object): node is TypeAnnotation;
|
1618 | export function isTypeCastExpression(node: object | null | undefined, opts?: object): node is TypeCastExpression;
|
1619 | export function isTypeParameter(node: object | null | undefined, opts?: object): node is TypeParameter;
|
1620 | export function isTypeParameterDeclaration(node: object | null | undefined, opts?: object): node is TypeParameterDeclaration;
|
1621 | export function isTypeParameterInstantiation(node: object | null | undefined, opts?: object): node is TypeParameterInstantiation;
|
1622 | export function isObjectTypeAnnotation(node: object | null | undefined, opts?: object): node is ObjectTypeAnnotation;
|
1623 | export function isObjectTypeCallProperty(node: object | null | undefined, opts?: object): node is ObjectTypeCallProperty;
|
1624 | export function isObjectTypeIndexer(node: object | null | undefined, opts?: object): node is ObjectTypeIndexer;
|
1625 | export function isObjectTypeProperty(node: object | null | undefined, opts?: object): node is ObjectTypeProperty;
|
1626 | export function isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object): node is QualifiedTypeIdentifier;
|
1627 | export function isUnionTypeAnnotation(node: object | null | undefined, opts?: object): node is UnionTypeAnnotation;
|
1628 | export function isVoidTypeAnnotation(node: object | null | undefined, opts?: object): node is VoidTypeAnnotation;
|
1629 | export function isJSXAttribute(node: object | null | undefined, opts?: object): node is JSXAttribute;
|
1630 | export function isJSXClosingElement(node: object | null | undefined, opts?: object): node is JSXClosingElement;
|
1631 | export function isJSXElement(node: object | null | undefined, opts?: object): node is JSXElement;
|
1632 | export function isJSXEmptyExpression(node: object | null | undefined, opts?: object): node is JSXEmptyExpression;
|
1633 | export function isJSXExpressionContainer(node: object | null | undefined, opts?: object): node is JSXExpressionContainer;
|
1634 | export function isJSXIdentifier(node: object | null | undefined, opts?: object): node is JSXIdentifier;
|
1635 | export function isJSXMemberExpression(node: object | null | undefined, opts?: object): node is JSXMemberExpression;
|
1636 | export function isJSXNamespacedName(node: object | null | undefined, opts?: object): node is JSXNamespacedName;
|
1637 | export function isJSXOpeningElement(node: object | null | undefined, opts?: object): node is JSXOpeningElement;
|
1638 | export function isJSXSpreadAttribute(node: object | null | undefined, opts?: object): node is JSXSpreadAttribute;
|
1639 | export function isJSXText(node: object | null | undefined, opts?: object): node is JSXText;
|
1640 | export function isNoop(node: object | null | undefined, opts?: object): node is Noop;
|
1641 | export function isParenthesizedExpression(node: object | null | undefined, opts?: object): node is ParenthesizedExpression;
|
1642 | export function isAwaitExpression(node: object | null | undefined, opts?: object): node is AwaitExpression;
|
1643 | export function isBindExpression(node: object | null | undefined, opts?: object): node is BindExpression;
|
1644 | export function isDecorator(node: object | null | undefined, opts?: object): node is Decorator;
|
1645 | export function isDoExpression(node: object | null | undefined, opts?: object): node is DoExpression;
|
1646 | export function isExportDefaultSpecifier(node: object | null | undefined, opts?: object): node is ExportDefaultSpecifier;
|
1647 | export function isExportNamespaceSpecifier(node: object | null | undefined, opts?: object): node is ExportNamespaceSpecifier;
|
1648 | export function isRestProperty(node: object | null | undefined, opts?: object): node is RestProperty;
|
1649 | export function isSpreadProperty(node: object | null | undefined, opts?: object): node is SpreadProperty;
|
1650 | export function isExpression(node: object | null | undefined, opts?: object): node is Expression;
|
1651 | export function isBinary(node: object | null | undefined, opts?: object): node is Binary;
|
1652 | export function isScopable(node: object | null | undefined, opts?: object): node is Scopable;
|
1653 | export function isBlockParent(node: object | null | undefined, opts?: object): node is BlockParent;
|
1654 | export function isBlock(node: object | null | undefined, opts?: object): node is Block;
|
1655 | export function isStatement(node: object | null | undefined, opts?: object): node is Statement;
|
1656 | export function isTerminatorless(node: object | null | undefined, opts?: object): node is Terminatorless;
|
1657 | export function isCompletionStatement(node: object | null | undefined, opts?: object): node is CompletionStatement;
|
1658 | export function isConditional(node: object | null | undefined, opts?: object): node is Conditional;
|
1659 | export function isLoop(node: object | null | undefined, opts?: object): node is Loop;
|
1660 | export function isWhile(node: object | null | undefined, opts?: object): node is While;
|
1661 | export function isExpressionWrapper(node: object | null | undefined, opts?: object): node is ExpressionWrapper;
|
1662 | export function isFor(node: object | null | undefined, opts?: object): node is For;
|
1663 | export function isForXStatement(node: object | null | undefined, opts?: object): node is ForXStatement;
|
1664 | // tslint:disable-next-line ban-types
|
1665 | export function isFunction(node: object | null | undefined, opts?: object): node is Function;
|
1666 | export function isFunctionParent(node: object | null | undefined, opts?: object): node is FunctionParent;
|
1667 | export function isPureish(node: object | null | undefined, opts?: object): node is Pureish;
|
1668 | export function isDeclaration(node: object | null | undefined, opts?: object): node is Declaration;
|
1669 | export function isLVal(node: object | null | undefined, opts?: object): node is LVal;
|
1670 | export function isLiteral(node: object | null | undefined, opts?: object): node is Literal;
|
1671 | export function isImmutable(node: object | null | undefined, opts?: object): node is Immutable;
|
1672 | export function isUserWhitespacable(node: object | null | undefined, opts?: object): node is UserWhitespacable;
|
1673 | export function isMethod(node: object | null | undefined, opts?: object): node is Method;
|
1674 | export function isObjectMember(node: object | null | undefined, opts?: object): node is ObjectMember;
|
1675 | export function isProperty(node: object | null | undefined, opts?: object): node is Property;
|
1676 | export function isUnaryLike(node: object | null | undefined, opts?: object): node is UnaryLike;
|
1677 | export function isPattern(node: object | null | undefined, opts?: object): node is Pattern;
|
1678 | export function isClass(node: object | null | undefined, opts?: object): node is Class;
|
1679 | export function isModuleDeclaration(node: object | null | undefined, opts?: object): node is ModuleDeclaration;
|
1680 | export function isExportDeclaration(node: object | null | undefined, opts?: object): node is ExportDeclaration;
|
1681 | export function isModuleSpecifier(node: object | null | undefined, opts?: object): node is ModuleSpecifier;
|
1682 | export function isFlow(node: object | null | undefined, opts?: object): node is Flow;
|
1683 | export function isFlowBaseAnnotation(node: object | null | undefined, opts?: object): node is FlowBaseAnnotation;
|
1684 | export function isFlowDeclaration(node: object | null | undefined, opts?: object): node is FlowDeclaration;
|
1685 | export function isJSX(node: object | null | undefined, opts?: object): node is JSX;
|
1686 |
|
1687 | export function isReferencedIdentifier(node: object | null | undefined, opts?: object): node is Identifier | JSXIdentifier;
|
1688 | export function isReferencedMemberExpression(node: object | null | undefined, opts?: object): node is MemberExpression;
|
1689 | export function isBindingIdentifier(node: object | null | undefined, opts?: object): node is Identifier;
|
1690 | export function isScope(node: object | null | undefined, opts?: object): node is Scopable;
|
1691 | export function isReferenced(node: object | null | undefined, opts?: object): boolean;
|
1692 | export function isBlockScoped(node: object | null | undefined, opts?: object): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration;
|
1693 | export function isVar(node: object | null | undefined, opts?: object): node is VariableDeclaration;
|
1694 | export function isUser(node: object | null | undefined, opts?: object): boolean;
|
1695 | export function isGenerated(node: object | null | undefined, opts?: object): boolean;
|
1696 | export function isPure(node: object | null | undefined, opts?: object): boolean;
|
1697 |
|
1698 | export function isTSAnyKeyword(node: object | null | undefined, opts?: object): node is TSAnyKeyword;
|
1699 | export function isTSArrayType(node: object | null | undefined, opts?: object): node is TSArrayType;
|
1700 | export function isTSAsExpression(node: object | null | undefined, opts?: object): node is TSAsExpression;
|
1701 | export function isTSBooleanKeyword(node: object | null | undefined, opts?: object): node is TSBooleanKeyword;
|
1702 | export function isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object): node is TSCallSignatureDeclaration;
|
1703 | export function isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object): node is TSTypeElement;
|
1704 | export function isTSConstructorType(node: object | null | undefined, opts?: object): node is TSConstructorType;
|
1705 | export function isTSDeclareFunction(node: object | null | undefined, opts?: object): node is TSDeclareFunction;
|
1706 | export function isTSDeclareMethod(node: object | null | undefined, opts?: object): node is TSDeclareMethod;
|
1707 | export function isTSEnumDeclaration(node: object | null | undefined, opts?: object): node is TSEnumDeclaration;
|
1708 | export function isTSEnumMember(node: object | null | undefined, opts?: object): node is TSEnumMember;
|
1709 | export function isTSExportAssignment(node: object | null | undefined, opts?: object): node is TSExportAssignment;
|
1710 | export function isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object): node is TSExpressionWithTypeArguments;
|
1711 | export function isTSExternalModuleReference(node: object | null | undefined, opts?: object): node is TSExternalModuleReference;
|
1712 | export function isTSFunctionType(node: object | null | undefined, opts?: object): node is TSFunctionType;
|
1713 | export function isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object): node is TSImportEqualsDeclaration;
|
1714 | export function isTSIndexSignature(node: object | null | undefined, opts?: object): node is TSIndexSignature;
|
1715 | export function isTSIndexedAccessType(node: object | null | undefined, opts?: object): node is TSIndexedAccessType;
|
1716 | export function isTSInterfaceBody(node: object | null | undefined, opts?: object): node is TSInterfaceBody;
|
1717 | export function isTSInterfaceDeclaration(node: object | null | undefined, opts?: object): node is TSInterfaceDeclaration;
|
1718 | export function isTSIntersectionType(node: object | null | undefined, opts?: object): node is TSIntersectionType;
|
1719 | export function isTSLiteralType(node: object | null | undefined, opts?: object): node is TSLiteralType;
|
1720 | export function isTSMappedType(node: object | null | undefined, opts?: object): node is TSMappedType;
|
1721 | export function isTSMethodSignature(node: object | null | undefined, opts?: object): node is TSMethodSignature;
|
1722 | export function isTSModuleBlock(node: object | null | undefined, opts?: object): node is TSModuleBlock;
|
1723 | export function isTSModuleDeclaration(node: object | null | undefined, opts?: object): node is TSModuleDeclaration;
|
1724 | export function isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object): node is TSNamespaceExportDeclaration;
|
1725 | export function isTSNeverKeyword(node: object | null | undefined, opts?: object): node is TSNeverKeyword;
|
1726 | export function isTSNonNullExpression(node: object | null | undefined, opts?: object): node is TSNonNullExpression;
|
1727 | export function isTSNullKeyword(node: object | null | undefined, opts?: object): node is TSNullKeyword;
|
1728 | export function isTSNumberKeyword(node: object | null | undefined, opts?: object): node is TSNumberKeyword;
|
1729 | export function isTSObjectKeyword(node: object | null | undefined, opts?: object): node is TSObjectKeyword;
|
1730 | export function isTSParameterProperty(node: object | null | undefined, opts?: object): node is TSParameterProperty;
|
1731 | export function isTSParenthesizedType(node: object | null | undefined, opts?: object): node is TSParenthesizedType;
|
1732 | export function isTSPropertySignature(node: object | null | undefined, opts?: object): node is TSPropertySignature;
|
1733 | export function isTSQualifiedName(node: object | null | undefined, opts?: object): node is TSQualifiedName;
|
1734 | export function isTSStringKeyword(node: object | null | undefined, opts?: object): node is TSStringKeyword;
|
1735 | export function isTSSymbolKeyword(node: object | null | undefined, opts?: object): node is TSSymbolKeyword;
|
1736 | export function isTSThisType(node: object | null | undefined, opts?: object): node is TSThisType;
|
1737 | export function isTSTupleType(node: object | null | undefined, opts?: object): node is TSTupleType;
|
1738 | export function isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object): node is TSTypeAliasDeclaration;
|
1739 | export function isTSTypeAnnotation(node: object | null | undefined, opts?: object): node is TSTypeAnnotation;
|
1740 | export function isTSTypeAssertion(node: object | null | undefined, opts?: object): node is TSTypeAssertion;
|
1741 | export function isTSTypeLiteral(node: object | null | undefined, opts?: object): node is TSTypeLiteral;
|
1742 | export function isTSTypeOperator(node: object | null | undefined, opts?: object): node is TSTypeOperator;
|
1743 | export function isTSTypeParameter(node: object | null | undefined, opts?: object): node is TSTypeParameter;
|
1744 | export function isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object): node is TSTypeParameterDeclaration;
|
1745 | export function isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object): node is TSTypeParameterInstantiation;
|
1746 | export function isTSTypePredicate(node: object | null | undefined, opts?: object): node is TSTypePredicate;
|
1747 | export function isTSTypeQuery(node: object | null | undefined, opts?: object): node is TSTypeQuery;
|
1748 | export function isTSTypeReference(node: object | null | undefined, opts?: object): node is TSTypeReference;
|
1749 | export function isTSUndefinedKeyword(node: object | null | undefined, opts?: object): node is TSUndefinedKeyword;
|
1750 | export function isTSUnionType(node: object | null | undefined, opts?: object): node is TSUnionType;
|
1751 | export function isTSVoidKeyword(node: object | null | undefined, opts?: object): node is TSVoidKeyword;
|
1752 |
|
1753 | // React specific
|
1754 | export interface ReactHelpers {
|
1755 | isCompatTag(tagName?: string): boolean;
|
1756 | buildChildren(node: object): Node[];
|
1757 | }
|
1758 | export const react: ReactHelpers;
|
1759 |
|
1760 | export function assertArrayExpression(node: object | null | undefined, opts?: object): void;
|
1761 | export function assertAssignmentExpression(node: object | null | undefined, opts?: object): void;
|
1762 | export function assertBinaryExpression(node: object | null | undefined, opts?: object): void;
|
1763 | export function assertDirective(node: object | null | undefined, opts?: object): void;
|
1764 | export function assertDirectiveLiteral(node: object | null | undefined, opts?: object): void;
|
1765 | export function assertBlockStatement(node: object | null | undefined, opts?: object): void;
|
1766 | export function assertBreakStatement(node: object | null | undefined, opts?: object): void;
|
1767 | export function assertCallExpression(node: object | null | undefined, opts?: object): void;
|
1768 | export function assertCatchClause(node: object | null | undefined, opts?: object): void;
|
1769 | export function assertConditionalExpression(node: object | null | undefined, opts?: object): void;
|
1770 | export function assertContinueStatement(node: object | null | undefined, opts?: object): void;
|
1771 | export function assertDebuggerStatement(node: object | null | undefined, opts?: object): void;
|
1772 | export function assertDoWhileStatement(node: object | null | undefined, opts?: object): void;
|
1773 | export function assertEmptyStatement(node: object | null | undefined, opts?: object): void;
|
1774 | export function assertExpressionStatement(node: object | null | undefined, opts?: object): void;
|
1775 | export function assertFile(node: object | null | undefined, opts?: object): void;
|
1776 | export function assertForInStatement(node: object | null | undefined, opts?: object): void;
|
1777 | export function assertForStatement(node: object | null | undefined, opts?: object): void;
|
1778 | export function assertFunctionDeclaration(node: object | null | undefined, opts?: object): void;
|
1779 | export function assertFunctionExpression(node: object | null | undefined, opts?: object): void;
|
1780 | export function assertIdentifier(node: object | null | undefined, opts?: object): void;
|
1781 | export function assertIfStatement(node: object | null | undefined, opts?: object): void;
|
1782 | export function assertLabeledStatement(node: object | null | undefined, opts?: object): void;
|
1783 | export function assertStringLiteral(node: object | null | undefined, opts?: object): void;
|
1784 | export function assertNumericLiteral(node: object | null | undefined, opts?: object): void;
|
1785 |
|
1786 |
|
1787 | export function assertNumberLiteral(node: object | null | undefined, opts?: object): void;
|
1788 | export function assertNullLiteral(node: object | null | undefined, opts?: object): void;
|
1789 | export function assertBooleanLiteral(node: object | null | undefined, opts?: object): void;
|
1790 | export function assertRegExpLiteral(node: object | null | undefined, opts?: object): void;
|
1791 |
|
1792 |
|
1793 | export function assertRegexLiteral(node: object | null | undefined, opts?: object): void;
|
1794 | export function assertLogicalExpression(node: object | null | undefined, opts?: object): void;
|
1795 | export function assertMemberExpression(node: object | null | undefined, opts?: object): void;
|
1796 | export function assertNewExpression(node: object | null | undefined, opts?: object): void;
|
1797 | export function assertProgram(node: object | null | undefined, opts?: object): void;
|
1798 | export function assertObjectExpression(node: object | null | undefined, opts?: object): void;
|
1799 | export function assertObjectMethod(node: object | null | undefined, opts?: object): void;
|
1800 | export function assertObjectProperty(node: object | null | undefined, opts?: object): void;
|
1801 | export function assertRestElement(node: object | null | undefined, opts?: object): void;
|
1802 | export function assertReturnStatement(node: object | null | undefined, opts?: object): void;
|
1803 | export function assertSequenceExpression(node: object | null | undefined, opts?: object): void;
|
1804 | export function assertSwitchCase(node: object | null | undefined, opts?: object): void;
|
1805 | export function assertSwitchStatement(node: object | null | undefined, opts?: object): void;
|
1806 | export function assertThisExpression(node: object | null | undefined, opts?: object): void;
|
1807 | export function assertThrowStatement(node: object | null | undefined, opts?: object): void;
|
1808 | export function assertTryStatement(node: object | null | undefined, opts?: object): void;
|
1809 | export function assertUnaryExpression(node: object | null | undefined, opts?: object): void;
|
1810 | export function assertUpdateExpression(node: object | null | undefined, opts?: object): void;
|
1811 | export function assertVariableDeclaration(node: object | null | undefined, opts?: object): void;
|
1812 | export function assertVariableDeclarator(node: object | null | undefined, opts?: object): void;
|
1813 | export function assertWhileStatement(node: object | null | undefined, opts?: object): void;
|
1814 | export function assertWithStatement(node: object | null | undefined, opts?: object): void;
|
1815 | export function assertAssignmentPattern(node: object | null | undefined, opts?: object): void;
|
1816 | export function assertArrayPattern(node: object | null | undefined, opts?: object): void;
|
1817 | export function assertArrowFunctionExpression(node: object | null | undefined, opts?: object): void;
|
1818 | export function assertClassBody(node: object | null | undefined, opts?: object): void;
|
1819 | export function assertClassDeclaration(node: object | null | undefined, opts?: object): void;
|
1820 | export function assertClassExpression(node: object | null | undefined, opts?: object): void;
|
1821 | export function assertExportAllDeclaration(node: object | null | undefined, opts?: object): void;
|
1822 | export function assertExportDefaultDeclaration(node: object | null | undefined, opts?: object): void;
|
1823 | export function assertExportNamedDeclaration(node: object | null | undefined, opts?: object): void;
|
1824 | export function assertExportSpecifier(node: object | null | undefined, opts?: object): void;
|
1825 | export function assertForOfStatement(node: object | null | undefined, opts?: object): void;
|
1826 | export function assertImportDeclaration(node: object | null | undefined, opts?: object): void;
|
1827 | export function assertImportDefaultSpecifier(node: object | null | undefined, opts?: object): void;
|
1828 | export function assertImportNamespaceSpecifier(node: object | null | undefined, opts?: object): void;
|
1829 | export function assertImportSpecifier(node: object | null | undefined, opts?: object): void;
|
1830 | export function assertMetaProperty(node: object | null | undefined, opts?: object): void;
|
1831 | export function assertClassMethod(node: object | null | undefined, opts?: object): void;
|
1832 | export function assertObjectPattern(node: object | null | undefined, opts?: object): void;
|
1833 | export function assertSpreadElement(node: object | null | undefined, opts?: object): void;
|
1834 | export function assertSuper(node: object | null | undefined, opts?: object): void;
|
1835 | export function assertTaggedTemplateExpression(node: object | null | undefined, opts?: object): void;
|
1836 | export function assertTemplateElement(node: object | null | undefined, opts?: object): void;
|
1837 | export function assertTemplateLiteral(node: object | null | undefined, opts?: object): void;
|
1838 | export function assertYieldExpression(node: object | null | undefined, opts?: object): void;
|
1839 | export function assertAnyTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1840 | export function assertArrayTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1841 | export function assertBooleanTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1842 | export function assertBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1843 | export function assertNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1844 | export function assertClassImplements(node: object | null | undefined, opts?: object): void;
|
1845 | export function assertClassProperty(node: object | null | undefined, opts?: object): void;
|
1846 | export function assertDeclareClass(node: object | null | undefined, opts?: object): void;
|
1847 | export function assertDeclareFunction(node: object | null | undefined, opts?: object): void;
|
1848 | export function assertDeclareInterface(node: object | null | undefined, opts?: object): void;
|
1849 | export function assertDeclareModule(node: object | null | undefined, opts?: object): void;
|
1850 | export function assertDeclareTypeAlias(node: object | null | undefined, opts?: object): void;
|
1851 | export function assertDeclareVariable(node: object | null | undefined, opts?: object): void;
|
1852 | export function assertExistentialTypeParam(node: object | null | undefined, opts?: object): void;
|
1853 | export function assertFunctionTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1854 | export function assertFunctionTypeParam(node: object | null | undefined, opts?: object): void;
|
1855 | export function assertGenericTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1856 | export function assertInterfaceExtends(node: object | null | undefined, opts?: object): void;
|
1857 | export function assertInterfaceDeclaration(node: object | null | undefined, opts?: object): void;
|
1858 | export function assertIntersectionTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1859 | export function assertMixedTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1860 | export function assertNullableTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1861 | export function assertNumericLiteralTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1862 | export function assertNumberTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1863 | export function assertStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1864 | export function assertStringTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1865 | export function assertThisTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1866 | export function assertTupleTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1867 | export function assertTypeofTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1868 | export function assertTypeAlias(node: object | null | undefined, opts?: object): void;
|
1869 | export function assertTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1870 | export function assertTypeCastExpression(node: object | null | undefined, opts?: object): void;
|
1871 | export function assertTypeParameter(node: object | null | undefined, opts?: object): void;
|
1872 | export function assertTypeParameterDeclaration(node: object | null | undefined, opts?: object): void;
|
1873 | export function assertTypeParameterInstantiation(node: object | null | undefined, opts?: object): void;
|
1874 | export function assertObjectTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1875 | export function assertObjectTypeCallProperty(node: object | null | undefined, opts?: object): void;
|
1876 | export function assertObjectTypeIndexer(node: object | null | undefined, opts?: object): void;
|
1877 | export function assertObjectTypeProperty(node: object | null | undefined, opts?: object): void;
|
1878 | export function assertQualifiedTypeIdentifier(node: object | null | undefined, opts?: object): void;
|
1879 | export function assertUnionTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1880 | export function assertVoidTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1881 | export function assertJSXAttribute(node: object | null | undefined, opts?: object): void;
|
1882 | export function assertJSXClosingElement(node: object | null | undefined, opts?: object): void;
|
1883 | export function assertJSXElement(node: object | null | undefined, opts?: object): void;
|
1884 | export function assertJSXEmptyExpression(node: object | null | undefined, opts?: object): void;
|
1885 | export function assertJSXExpressionContainer(node: object | null | undefined, opts?: object): void;
|
1886 | export function assertJSXIdentifier(node: object | null | undefined, opts?: object): void;
|
1887 | export function assertJSXMemberExpression(node: object | null | undefined, opts?: object): void;
|
1888 | export function assertJSXNamespacedName(node: object | null | undefined, opts?: object): void;
|
1889 | export function assertJSXOpeningElement(node: object | null | undefined, opts?: object): void;
|
1890 | export function assertJSXSpreadAttribute(node: object | null | undefined, opts?: object): void;
|
1891 | export function assertJSXText(node: object | null | undefined, opts?: object): void;
|
1892 | export function assertNoop(node: object | null | undefined, opts?: object): void;
|
1893 | export function assertParenthesizedExpression(node: object | null | undefined, opts?: object): void;
|
1894 | export function assertAwaitExpression(node: object | null | undefined, opts?: object): void;
|
1895 | export function assertBindExpression(node: object | null | undefined, opts?: object): void;
|
1896 | export function assertDecorator(node: object | null | undefined, opts?: object): void;
|
1897 | export function assertDoExpression(node: object | null | undefined, opts?: object): void;
|
1898 | export function assertExportDefaultSpecifier(node: object | null | undefined, opts?: object): void;
|
1899 | export function assertExportNamespaceSpecifier(node: object | null | undefined, opts?: object): void;
|
1900 | export function assertRestProperty(node: object | null | undefined, opts?: object): void;
|
1901 | export function assertSpreadProperty(node: object | null | undefined, opts?: object): void;
|
1902 | export function assertExpression(node: object | null | undefined, opts?: object): void;
|
1903 | export function assertBinary(node: object | null | undefined, opts?: object): void;
|
1904 | export function assertScopable(node: object | null | undefined, opts?: object): void;
|
1905 | export function assertBlockParent(node: object | null | undefined, opts?: object): void;
|
1906 | export function assertBlock(node: object | null | undefined, opts?: object): void;
|
1907 | export function assertStatement(node: object | null | undefined, opts?: object): void;
|
1908 | export function assertTerminatorless(node: object | null | undefined, opts?: object): void;
|
1909 | export function assertCompletionStatement(node: object | null | undefined, opts?: object): void;
|
1910 | export function assertConditional(node: object | null | undefined, opts?: object): void;
|
1911 | export function assertLoop(node: object | null | undefined, opts?: object): void;
|
1912 | export function assertWhile(node: object | null | undefined, opts?: object): void;
|
1913 | export function assertExpressionWrapper(node: object | null | undefined, opts?: object): void;
|
1914 | export function assertFor(node: object | null | undefined, opts?: object): void;
|
1915 | export function assertForXStatement(node: object | null | undefined, opts?: object): void;
|
1916 | export function assertFunction(node: object | null | undefined, opts?: object): void;
|
1917 | export function assertFunctionParent(node: object | null | undefined, opts?: object): void;
|
1918 | export function assertPureish(node: object | null | undefined, opts?: object): void;
|
1919 | export function assertDeclaration(node: object | null | undefined, opts?: object): void;
|
1920 | export function assertLVal(node: object | null | undefined, opts?: object): void;
|
1921 | export function assertLiteral(node: object | null | undefined, opts?: object): void;
|
1922 | export function assertImmutable(node: object | null | undefined, opts?: object): void;
|
1923 | export function assertUserWhitespacable(node: object | null | undefined, opts?: object): void;
|
1924 | export function assertMethod(node: object | null | undefined, opts?: object): void;
|
1925 | export function assertObjectMember(node: object | null | undefined, opts?: object): void;
|
1926 | export function assertProperty(node: object | null | undefined, opts?: object): void;
|
1927 | export function assertUnaryLike(node: object | null | undefined, opts?: object): void;
|
1928 | export function assertPattern(node: object | null | undefined, opts?: object): void;
|
1929 | export function assertClass(node: object | null | undefined, opts?: object): void;
|
1930 | export function assertModuleDeclaration(node: object | null | undefined, opts?: object): void;
|
1931 | export function assertExportDeclaration(node: object | null | undefined, opts?: object): void;
|
1932 | export function assertModuleSpecifier(node: object | null | undefined, opts?: object): void;
|
1933 | export function assertFlow(node: object | null | undefined, opts?: object): void;
|
1934 | export function assertFlowBaseAnnotation(node: object | null | undefined, opts?: object): void;
|
1935 | export function assertFlowDeclaration(node: object | null | undefined, opts?: object): void;
|
1936 | export function assertJSX(node: object | null | undefined, opts?: object): void;
|
1937 |
|
1938 | export function assertTSAnyKeyword(node: object | null | undefined, opts?: object): void;
|
1939 | export function assertTSArrayType(node: object | null | undefined, opts?: object): void;
|
1940 | export function assertTSAsExpression(node: object | null | undefined, opts?: object): void;
|
1941 | export function assertTSBooleanKeyword(node: object | null | undefined, opts?: object): void;
|
1942 | export function assertTSCallSignatureDeclaration(node: object | null | undefined, opts?: object): void;
|
1943 | export function assertTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object): void;
|
1944 | export function assertTSConstructorType(node: object | null | undefined, opts?: object): void;
|
1945 | export function assertTSDeclareFunction(node: object | null | undefined, opts?: object): void;
|
1946 | export function assertTSDeclareMethod(node: object | null | undefined, opts?: object): void;
|
1947 | export function assertTSEnumDeclaration(node: object | null | undefined, opts?: object): void;
|
1948 | export function assertTSEnumMember(node: object | null | undefined, opts?: object): void;
|
1949 | export function assertTSExportAssignment(node: object | null | undefined, opts?: object): void;
|
1950 | export function assertTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object): void;
|
1951 | export function assertTSExternalModuleReference(node: object | null | undefined, opts?: object): void;
|
1952 | export function assertTSFunctionType(node: object | null | undefined, opts?: object): void;
|
1953 | export function assertTSImportEqualsDeclaration(node: object | null | undefined, opts?: object): void;
|
1954 | export function assertTSIndexSignature(node: object | null | undefined, opts?: object): void;
|
1955 | export function assertTSIndexedAccessType(node: object | null | undefined, opts?: object): void;
|
1956 | export function assertTSInterfaceBody(node: object | null | undefined, opts?: object): void;
|
1957 | export function assertTSInterfaceDeclaration(node: object | null | undefined, opts?: object): void;
|
1958 | export function assertTSIntersectionType(node: object | null | undefined, opts?: object): void;
|
1959 | export function assertTSLiteralType(node: object | null | undefined, opts?: object): void;
|
1960 | export function assertTSMappedType(node: object | null | undefined, opts?: object): void;
|
1961 | export function assertTSMethodSignature(node: object | null | undefined, opts?: object): void;
|
1962 | export function assertTSModuleBlock(node: object | null | undefined, opts?: object): void;
|
1963 | export function assertTSModuleDeclaration(node: object | null | undefined, opts?: object): void;
|
1964 | export function assertTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object): void;
|
1965 | export function assertTSNeverKeyword(node: object | null | undefined, opts?: object): void;
|
1966 | export function assertTSNonNullExpression(node: object | null | undefined, opts?: object): void;
|
1967 | export function assertTSNullKeyword(node: object | null | undefined, opts?: object): void;
|
1968 | export function assertTSNumberKeyword(node: object | null | undefined, opts?: object): void;
|
1969 | export function assertTSObjectKeyword(node: object | null | undefined, opts?: object): void;
|
1970 | export function assertTSParameterProperty(node: object | null | undefined, opts?: object): void;
|
1971 | export function assertTSParenthesizedType(node: object | null | undefined, opts?: object): void;
|
1972 | export function assertTSPropertySignature(node: object | null | undefined, opts?: object): void;
|
1973 | export function assertTSQualifiedName(node: object | null | undefined, opts?: object): void;
|
1974 | export function assertTSStringKeyword(node: object | null | undefined, opts?: object): void;
|
1975 | export function assertTSSymbolKeyword(node: object | null | undefined, opts?: object): void;
|
1976 | export function assertTSThisType(node: object | null | undefined, opts?: object): void;
|
1977 | export function assertTSTupleType(node: object | null | undefined, opts?: object): void;
|
1978 | export function assertTSTypeAliasDeclaration(node: object | null | undefined, opts?: object): void;
|
1979 | export function assertTSTypeAnnotation(node: object | null | undefined, opts?: object): void;
|
1980 | export function assertTSTypeAssertion(node: object | null | undefined, opts?: object): void;
|
1981 | export function assertTSTypeLiteral(node: object | null | undefined, opts?: object): void;
|
1982 | export function assertTSTypeOperator(node: object | null | undefined, opts?: object): void;
|
1983 | export function assertTSTypeParameter(node: object | null | undefined, opts?: object): void;
|
1984 | export function assertTSTypeParameterDeclaration(node: object | null | undefined, opts?: object): void;
|
1985 | export function assertTSTypeParameterInstantiation(node: object | null | undefined, opts?: object): void;
|
1986 | export function assertTSTypePredicate(node: object | null | undefined, opts?: object): void;
|
1987 | export function assertTSTypeQuery(node: object | null | undefined, opts?: object): void;
|
1988 | export function assertTSTypeReference(node: object | null | undefined, opts?: object): void;
|
1989 | export function assertTSUndefinedKeyword(node: object | null | undefined, opts?: object): void;
|
1990 | export function assertTSUnionType(node: object | null | undefined, opts?: object): void;
|
1991 | export function assertTSVoidKeyword(node: object | null | undefined, opts?: object): void;
|