{ "type": "Script", "span": { "start": 63, "end": 897, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 63, "end": 94, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 73, "end": 77, "ctxt": 0 }, "value": "Base", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 78, "end": 94, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 80, "end": 92, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 80, "end": 83, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 83, "end": 91, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 85, "end": 91, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 95, "end": 142, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 105, "end": 112, "ctxt": 0 }, "value": "Derived", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 121, "end": 125, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 121, "end": 125, "ctxt": 0 }, "value": "Base", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 126, "end": 142, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 128, "end": 140, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 128, "end": 131, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 131, "end": 139, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 133, "end": 139, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 143, "end": 194, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 153, "end": 161, "ctxt": 0 }, "value": "Derived2", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 170, "end": 177, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 170, "end": 177, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 178, "end": 194, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 180, "end": 192, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 180, "end": 183, "ctxt": 0 }, "value": "baz", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 183, "end": 191, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 185, "end": 191, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 196, "end": 237, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 206, "end": 207, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 208, "end": 237, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 215, "end": 224, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 216, "end": 224, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 218, "end": 224, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 225, "end": 234, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 227, "end": 234, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 227, "end": 234, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 214, "end": 235, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 239, "end": 296, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 249, "end": 250, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 259, "end": 260, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 259, "end": 260, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 261, "end": 296, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 268, "end": 277, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 269, "end": 277, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 271, "end": 277, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 278, "end": 284, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 280, "end": 284, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 280, "end": 284, "ctxt": 0 }, "value": "Base", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 267, "end": 285, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 298, "end": 357, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 308, "end": 310, "ctxt": 0 }, "value": "B2", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 319, "end": 320, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 319, "end": 320, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 321, "end": 357, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 328, "end": 337, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 329, "end": 337, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 331, "end": 337, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 338, "end": 348, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 340, "end": 348, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 340, "end": 348, "ctxt": 0 }, "value": "Derived2", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 327, "end": 349, "ctxt": 0 } } ] } }, { "type": "TsModuleDeclaration", "span": { "start": 359, "end": 897, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 366, "end": 374, "ctxt": 0 }, "value": "Generics", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 375, "end": 897, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 381, "end": 443, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 391, "end": 392, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 392, "end": 411, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 393, "end": 410, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 393, "end": 394, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": { "type": "TsTypeReference", "span": { "start": 403, "end": 410, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 403, "end": 410, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null }, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 412, "end": 443, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 423, "end": 432, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 424, "end": 432, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 426, "end": 432, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 433, "end": 436, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 435, "end": 436, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 435, "end": 436, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 422, "end": 437, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 449, "end": 523, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 459, "end": 460, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 469, "end": 476, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 469, "end": 470, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 470, "end": 476, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 471, "end": 475, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 471, "end": 475, "ctxt": 0 }, "value": "Base", "optional": false }, "typeParams": null } ] } } ], "body": { "type": "TsInterfaceBody", "span": { "start": 477, "end": 523, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 488, "end": 497, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 489, "end": 497, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 491, "end": 497, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 498, "end": 507, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 500, "end": 507, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 500, "end": 507, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 487, "end": 508, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 529, "end": 605, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 539, "end": 541, "ctxt": 0 }, "value": "B2", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 550, "end": 560, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 550, "end": 551, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 551, "end": 560, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 552, "end": 559, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 552, "end": 559, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null } ] } } ], "body": { "type": "TsInterfaceBody", "span": { "start": 561, "end": 605, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 572, "end": 581, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 573, "end": 581, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 575, "end": 581, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 582, "end": 592, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 584, "end": 592, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 584, "end": 592, "ctxt": 0 }, "value": "Derived2", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 571, "end": 593, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 611, "end": 699, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 621, "end": 623, "ctxt": 0 }, "value": "B3", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 623, "end": 642, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 624, "end": 641, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 624, "end": 625, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": { "type": "TsTypeReference", "span": { "start": 634, "end": 641, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 634, "end": 641, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null }, "default": null } ] }, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 651, "end": 655, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 651, "end": 652, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 652, "end": 655, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 653, "end": 654, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 653, "end": 654, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } ], "body": { "type": "TsInterfaceBody", "span": { "start": 656, "end": 699, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 667, "end": 676, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 668, "end": 676, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 670, "end": 676, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 677, "end": 683, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 679, "end": 683, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 679, "end": 683, "ctxt": 0 }, "value": "Base", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 666, "end": 684, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 705, "end": 796, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 715, "end": 717, "ctxt": 0 }, "value": "B4", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 717, "end": 736, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 718, "end": 735, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 718, "end": 719, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": { "type": "TsTypeReference", "span": { "start": 728, "end": 735, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 728, "end": 735, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null }, "default": null } ] }, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 745, "end": 749, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 745, "end": 746, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 746, "end": 749, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 747, "end": 748, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 747, "end": 748, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } ], "body": { "type": "TsInterfaceBody", "span": { "start": 750, "end": 796, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 761, "end": 770, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 762, "end": 770, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 764, "end": 770, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 771, "end": 780, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 773, "end": 780, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 773, "end": 780, "ctxt": 0 }, "value": "Derived", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 760, "end": 781, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 802, "end": 895, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 812, "end": 814, "ctxt": 0 }, "value": "B5", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 814, "end": 834, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 815, "end": 833, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 815, "end": 816, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": { "type": "TsTypeReference", "span": { "start": 825, "end": 833, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 825, "end": 833, "ctxt": 0 }, "value": "Derived2", "optional": false }, "typeParams": null }, "default": null } ] }, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 843, "end": 847, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 843, "end": 844, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 844, "end": 847, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 845, "end": 846, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 845, "end": 846, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } ], "body": { "type": "TsInterfaceBody", "span": { "start": 848, "end": 895, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 859, "end": 868, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 860, "end": 868, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 862, "end": 868, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 869, "end": 879, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 871, "end": 879, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 871, "end": 879, "ctxt": 0 }, "value": "Derived2", "optional": false }, "typeParams": null } }, "readonly": false, "static": false, "span": { "start": 858, "end": 880, "ctxt": 0 } } ] } } ] } } ], "interpreter": null }