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": "TSStringKeyword", 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": "TSBooleanKeyword", 41 "loc": { 42 "start": { 43 "line": 18, 44 "column": 18 45 }, 46 "end": { 47 "line": 18, 48 "column": 25 49 } 50 } 51 }, 52 "readonly": false, 53 "loc": { 54 "start": { 55 "line": 18, 56 "column": 5 57 }, 58 "end": { 59 "line": 18, 60 "column": 26 61 } 62 } 63 }, 64 { 65 "type": "TSPropertySignature", 66 "computed": false, 67 "optional": false, 68 "readonly": false, 69 "key": { 70 "type": "Identifier", 71 "name": "a", 72 "decorators": [], 73 "loc": { 74 "start": { 75 "line": 19, 76 "column": 5 77 }, 78 "end": { 79 "line": 19, 80 "column": 6 81 } 82 } 83 }, 84 "typeAnnotation": { 85 "type": "TSStringKeyword", 86 "loc": { 87 "start": { 88 "line": 19, 89 "column": 8 90 }, 91 "end": { 92 "line": 19, 93 "column": 14 94 } 95 } 96 }, 97 "loc": { 98 "start": { 99 "line": 19, 100 "column": 5 101 }, 102 "end": { 103 "line": 19, 104 "column": 15 105 } 106 } 107 } 108 ], 109 "loc": { 110 "start": { 111 "line": 17, 112 "column": 13 113 }, 114 "end": { 115 "line": 20, 116 "column": 2 117 } 118 } 119 }, 120 "id": { 121 "type": "Identifier", 122 "name": "A", 123 "decorators": [], 124 "loc": { 125 "start": { 126 "line": 17, 127 "column": 11 128 }, 129 "end": { 130 "line": 17, 131 "column": 12 132 } 133 } 134 }, 135 "extends": [], 136 "loc": { 137 "start": { 138 "line": 17, 139 "column": 1 140 }, 141 "end": { 142 "line": 20, 143 "column": 2 144 } 145 } 146 } 147 ], 148 "loc": { 149 "start": { 150 "line": 1, 151 "column": 1 152 }, 153 "end": { 154 "line": 20, 155 "column": 2 156 } 157 } 158} 159TypeError: Property 'a' of type 'string' is not assignable to string index type 'boolean'. [interfacePropertyWithIncompatibleIndexInfo.ts:19:5] 160