{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "x", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 7 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 24 } } }, "readonly": false, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 25 } } }, { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "x", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 7 } } }, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 24 } } }, "readonly": false, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 25 } } } ], "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 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 21, "column": 1 } } } TypeError: Number index info type string is not assignable to string index info type number. [interfaceWithNonCompatibleIndexInfos.ts:18:5]