{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [], "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 19, "column": 2 } } }, "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 12 } } }, "extends": [ { "type": "TSInterfaceHeritage", "expression": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 22 } } }, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 22 } } }, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 22 } } } ], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [], "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 23, "column": 2 } } }, "id": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 12 } } }, "extends": [ { "type": "TSInterfaceHeritage", "expression": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 21, "column": 21 }, "end": { "line": 21, "column": 22 } } }, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 22 } } }, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 22 } } } ], "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 23, "column": 2 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [], "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 27, "column": 2 } } }, "id": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 25, "column": 11 }, "end": { "line": 25, "column": 12 } } }, "extends": [ { "type": "TSInterfaceHeritage", "expression": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 25, "column": 21 }, "end": { "line": 25, "column": 22 } } }, "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 25, "column": 22 } } }, "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 25, "column": 22 } } } ], "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 27, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 27, "column": 2 } } } TypeError: Type A recursively references itself as a base type. [interfaceInheritance1.ts:17:11]