{ "type": "Script", "span": { "start": 1, "end": 95, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 1, "end": 51, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 11, "end": 14, "ctxt": 0 }, "value": "Foo", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 15, "end": 51, "ctxt": 0 }, "body": [ { "type": "TsCallSignatureDeclaration", "span": { "start": 21, "end": 32, "ctxt": 0 }, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23, "end": 31, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 25, "end": 31, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsConstructSignatureDeclaration", "span": { "start": 37, "end": 49, "ctxt": 0 }, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 43, "end": 48, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 45, "end": 48, "ctxt": 0 }, "kind": "any" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 53, "end": 64, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 57, "end": 63, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 57, "end": 58, "ctxt": 0 }, "value": "f", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 58, "end": 63, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 60, "end": 63, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 60, "end": 63, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 65, "end": 77, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 69, "end": 76, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 69, "end": 70, "ctxt": 0 }, "value": "r", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 73, "end": 76, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 73, "end": 74, "ctxt": 0 }, "value": "f", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 78, "end": 95, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 82, "end": 94, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 82, "end": 84, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 87, "end": 94, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 91, "end": 92, "ctxt": 0 }, "value": "f", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }