{ "type": "Script", "span": { "start": 46, "end": 138, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 46, "end": 84, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 56, "end": 57, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 66, "end": 81, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 66, "end": 73, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 73, "end": 81, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 74, "end": 80, "ctxt": 0 }, "kind": "string" } ] } } ], "body": { "type": "TsInterfaceBody", "span": { "start": 82, "end": 84, "ctxt": 0 }, "body": [] } }, { "type": "VariableDeclaration", "span": { "start": 85, "end": 102, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 97, "end": 101, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 97, "end": 98, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 98, "end": 101, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 100, "end": 101, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 100, "end": 101, "ctxt": 0 }, "value": "A", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 118, "end": 119, "ctxt": 0 }, "value": "f", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 103, "end": 138, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 122, "end": 138, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 128, "end": 136, "ctxt": 0 }, "expression": { "type": "AwaitExpression", "span": { "start": 128, "end": 135, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 134, "end": 135, "ctxt": 0 }, "value": "a", "optional": false } } } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": null } ], "interpreter": null }