{ "type": "Script", "span": { "start": 1, "end": 152, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 1, "end": 45, "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": 45, "ctxt": 0 }, "body": [ { "type": "TsConstructSignatureDeclaration", "span": { "start": 21, "end": 43, "ctxt": 0 }, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 27, "end": 42, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 29, "end": 42, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 31, "end": 40, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 31, "end": 32, "ctxt": 0 }, "value": "a", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 32, "end": 40, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34, "end": 40, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 47, "end": 118, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 57, "end": 64, "ctxt": 0 }, "value": "Derived", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 73, "end": 76, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 73, "end": 76, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 77, "end": 118, "ctxt": 0 }, "body": [ { "type": "TsConstructSignatureDeclaration", "span": { "start": 83, "end": 116, "ctxt": 0 }, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 89, "end": 115, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 91, "end": 115, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 93, "end": 103, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 93, "end": 94, "ctxt": 0 }, "value": "a", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 94, "end": 102, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 96, "end": 102, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 104, "end": 113, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 104, "end": 105, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 105, "end": 113, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 107, "end": 113, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 120, "end": 135, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 124, "end": 134, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 124, "end": 125, "ctxt": 0 }, "value": "d", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 125, "end": 134, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 127, "end": 134, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 127, "end": 134, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 136, "end": 152, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 140, "end": 151, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 140, "end": 141, "ctxt": 0 }, "value": "r", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 144, "end": 151, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 148, "end": 149, "ctxt": 0 }, "value": "d", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }