{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 14 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 15 } } }, { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 14 } } }, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 15 } } } ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 20, "column": 2 } } }, "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 12 } } }, "extends": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 20, "column": 2 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 6 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 14 } } }, "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 15 } } }, { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "c", "decorators": [], "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 24, "column": 6 } } }, "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 15 } } }, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 17 } } }, "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 25, "column": 2 } } } ], "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 25, "column": 2 } } }, "id": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 22, "column": 12 } } }, "extends": [], "loc": { "start": { "line": 22, "column": 1 }, "end": { "line": 25, "column": 2 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [], "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 29 } } }, "id": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 12 } } }, "extends": [ { "type": "TSInterfaceHeritage", "expression": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 22 } } }, "loc": { "start": { "line": 27, "column": 22 }, "end": { "line": 27, "column": 22 } } }, "loc": { "start": { "line": 27, "column": 22 }, "end": { "line": 27, "column": 22 } } }, { "type": "TSInterfaceHeritage", "expression": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 27, "column": 24 }, "end": { "line": 27, "column": 25 } } }, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 25 } } }, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 25 } } } ], "loc": { "start": { "line": 27, "column": 1 }, "end": { "line": 27, "column": 29 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 27, "column": 29 } } } TypeError: Interface 'C' incorrectly extends interface 'B' [interfaceInheritance4.ts:27:11]