1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "TSInterfaceDeclaration", 6 "body": { 7 "type": "TSInterfaceBody", 8 "body": [ 9 { 10 "type": "TSIndexSignature", 11 "parameters": { 12 "type": "Identifier", 13 "name": "x", 14 "typeAnnotation": { 15 "type": "TSNumberKeyword", 16 "loc": { 17 "start": { 18 "line": 18, 19 "column": 9 20 }, 21 "end": { 22 "line": 18, 23 "column": 15 24 } 25 } 26 }, 27 "decorators": [], 28 "loc": { 29 "start": { 30 "line": 18, 31 "column": 6 32 }, 33 "end": { 34 "line": 18, 35 "column": 7 36 } 37 } 38 }, 39 "typeAnnotation": { 40 "type": "TSStringKeyword", 41 "loc": { 42 "start": { 43 "line": 18, 44 "column": 18 45 }, 46 "end": { 47 "line": 18, 48 "column": 24 49 } 50 } 51 }, 52 "readonly": false, 53 "loc": { 54 "start": { 55 "line": 18, 56 "column": 5 57 }, 58 "end": { 59 "line": 18, 60 "column": 25 61 } 62 } 63 }, 64 { 65 "type": "TSIndexSignature", 66 "parameters": { 67 "type": "Identifier", 68 "name": "x", 69 "typeAnnotation": { 70 "type": "TSStringKeyword", 71 "loc": { 72 "start": { 73 "line": 19, 74 "column": 9 75 }, 76 "end": { 77 "line": 19, 78 "column": 15 79 } 80 } 81 }, 82 "decorators": [], 83 "loc": { 84 "start": { 85 "line": 19, 86 "column": 6 87 }, 88 "end": { 89 "line": 19, 90 "column": 7 91 } 92 } 93 }, 94 "typeAnnotation": { 95 "type": "TSNumberKeyword", 96 "loc": { 97 "start": { 98 "line": 19, 99 "column": 18 100 }, 101 "end": { 102 "line": 19, 103 "column": 24 104 } 105 } 106 }, 107 "readonly": false, 108 "loc": { 109 "start": { 110 "line": 19, 111 "column": 5 112 }, 113 "end": { 114 "line": 19, 115 "column": 25 116 } 117 } 118 } 119 ], 120 "loc": { 121 "start": { 122 "line": 17, 123 "column": 13 124 }, 125 "end": { 126 "line": 20, 127 "column": 2 128 } 129 } 130 }, 131 "id": { 132 "type": "Identifier", 133 "name": "A", 134 "decorators": [], 135 "loc": { 136 "start": { 137 "line": 17, 138 "column": 11 139 }, 140 "end": { 141 "line": 17, 142 "column": 12 143 } 144 } 145 }, 146 "extends": [], 147 "loc": { 148 "start": { 149 "line": 17, 150 "column": 1 151 }, 152 "end": { 153 "line": 20, 154 "column": 2 155 } 156 } 157 } 158 ], 159 "loc": { 160 "start": { 161 "line": 1, 162 "column": 1 163 }, 164 "end": { 165 "line": 21, 166 "column": 1 167 } 168 } 169} 170TypeError: Number index info type string is not assignable to string index info type number. [interfaceWithNonCompatibleIndexInfos.ts:18:5] 171