{ "type": "Script", "span": { "start": 64, "end": 435, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 64, "end": 179, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 71, "end": 72, "ctxt": 0 }, "value": "M", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 73, "end": 179, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 79, "end": 126, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 86, "end": 126, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 96, "end": 97, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 98, "end": 126, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 108, "end": 120, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 108, "end": 111, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 111, "end": 119, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 113, "end": 119, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } }, { "type": "ExportDeclaration", "span": { "start": 132, "end": 177, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 139, "end": 177, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 149, "end": 150, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 150, "end": 153, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 151, "end": 152, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 151, "end": 152, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 154, "end": 177, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 164, "end": 171, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 164, "end": 167, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 167, "end": 170, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 169, "end": 170, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 169, "end": 170, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } } } ] } }, { "type": "TsModuleDeclaration", "span": { "start": 181, "end": 435, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 188, "end": 190, "ctxt": 0 }, "value": "M2", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 191, "end": 435, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 197, "end": 244, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 204, "end": 244, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 214, "end": 215, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 216, "end": 244, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 226, "end": 238, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 226, "end": 229, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 229, "end": 237, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 231, "end": 237, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } }, { "type": "VariableDeclaration", "span": { "start": 250, "end": 259, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 254, "end": 258, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 254, "end": 255, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 255, "end": 258, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 257, "end": 258, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 257, "end": 258, "ctxt": 0 }, "value": "A", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 264, "end": 279, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 268, "end": 278, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 268, "end": 270, "ctxt": 0 }, "value": "r1", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 273, "end": 278, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 273, "end": 274, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 275, "end": 278, "ctxt": 0 }, "value": "foo", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 293, "end": 308, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 297, "end": 307, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 297, "end": 299, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 302, "end": 307, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 302, "end": 303, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 304, "end": 307, "ctxt": 0 }, "value": "bar", "optional": false } }, "definite": false } ] }, { "type": "ExportDeclaration", "span": { "start": 315, "end": 360, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 322, "end": 360, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 332, "end": 333, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 333, "end": 336, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 334, "end": 335, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 334, "end": 335, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 337, "end": 360, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 347, "end": 354, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 347, "end": 350, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 350, "end": 353, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 352, "end": 353, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 352, "end": 353, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } } }, { "type": "VariableDeclaration", "span": { "start": 366, "end": 383, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 370, "end": 382, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 370, "end": 371, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 371, "end": 382, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 373, "end": 382, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 373, "end": 374, "ctxt": 0 }, "value": "B", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 374, "end": 382, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 375, "end": 381, "ctxt": 0 }, "kind": "string" } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 388, "end": 403, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 392, "end": 402, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 392, "end": 394, "ctxt": 0 }, "value": "r3", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 397, "end": 402, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 397, "end": 398, "ctxt": 0 }, "value": "b", "optional": false }, "property": { "type": "Identifier", "span": { "start": 399, "end": 402, "ctxt": 0 }, "value": "foo", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 417, "end": 432, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 421, "end": 431, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 421, "end": 423, "ctxt": 0 }, "value": "r4", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 426, "end": 431, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 426, "end": 427, "ctxt": 0 }, "value": "b", "optional": false }, "property": { "type": "Identifier", "span": { "start": 428, "end": 431, "ctxt": 0 }, "value": "bar", "optional": false } }, "definite": false } ] } ] } } ], "interpreter": null }