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