1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "a", 12 "typeAnnotation": { 13 "type": "TSTupleType", 14 "elementTypes": [ 15 { 16 "type": "TSTupleType", 17 "elementTypes": [ 18 { 19 "type": "TSNumberKeyword", 20 "loc": { 21 "start": { 22 "line": 17, 23 "column": 10 24 }, 25 "end": { 26 "line": 17, 27 "column": 17 28 } 29 } 30 }, 31 { 32 "type": "TSStringKeyword", 33 "loc": { 34 "start": { 35 "line": 17, 36 "column": 18 37 }, 38 "end": { 39 "line": 17, 40 "column": 25 41 } 42 } 43 } 44 ], 45 "loc": { 46 "start": { 47 "line": 17, 48 "column": 9 49 }, 50 "end": { 51 "line": 17, 52 "column": 26 53 } 54 } 55 }, 56 { 57 "type": "TSTupleType", 58 "elementTypes": [ 59 { 60 "type": "TSNumberKeyword", 61 "loc": { 62 "start": { 63 "line": 17, 64 "column": 28 65 }, 66 "end": { 67 "line": 17, 68 "column": 35 69 } 70 } 71 }, 72 { 73 "type": "TSStringKeyword", 74 "loc": { 75 "start": { 76 "line": 17, 77 "column": 36 78 }, 79 "end": { 80 "line": 17, 81 "column": 43 82 } 83 } 84 } 85 ], 86 "loc": { 87 "start": { 88 "line": 17, 89 "column": 27 90 }, 91 "end": { 92 "line": 17, 93 "column": 44 94 } 95 } 96 } 97 ], 98 "loc": { 99 "start": { 100 "line": 17, 101 "column": 8 102 }, 103 "end": { 104 "line": 17, 105 "column": 44 106 } 107 } 108 }, 109 "decorators": [], 110 "loc": { 111 "start": { 112 "line": 17, 113 "column": 5 114 }, 115 "end": { 116 "line": 17, 117 "column": 6 118 } 119 } 120 }, 121 "init": { 122 "type": "ArrayExpression", 123 "elements": [ 124 { 125 "type": "ArrayExpression", 126 "elements": [ 127 { 128 "type": "NumberLiteral", 129 "value": 1, 130 "loc": { 131 "start": { 132 "line": 17, 133 "column": 49 134 }, 135 "end": { 136 "line": 17, 137 "column": 50 138 } 139 } 140 }, 141 { 142 "type": "StringLiteral", 143 "value": "foo", 144 "loc": { 145 "start": { 146 "line": 17, 147 "column": 52 148 }, 149 "end": { 150 "line": 17, 151 "column": 57 152 } 153 } 154 } 155 ], 156 "loc": { 157 "start": { 158 "line": 17, 159 "column": 48 160 }, 161 "end": { 162 "line": 17, 163 "column": 58 164 } 165 } 166 }, 167 { 168 "type": "ArrayExpression", 169 "elements": [ 170 { 171 "type": "NumberLiteral", 172 "value": 2, 173 "loc": { 174 "start": { 175 "line": 17, 176 "column": 61 177 }, 178 "end": { 179 "line": 17, 180 "column": 62 181 } 182 } 183 }, 184 { 185 "type": "NumberLiteral", 186 "value": 3, 187 "loc": { 188 "start": { 189 "line": 17, 190 "column": 64 191 }, 192 "end": { 193 "line": 17, 194 "column": 65 195 } 196 } 197 } 198 ], 199 "loc": { 200 "start": { 201 "line": 17, 202 "column": 60 203 }, 204 "end": { 205 "line": 17, 206 "column": 66 207 } 208 } 209 } 210 ], 211 "loc": { 212 "start": { 213 "line": 17, 214 "column": 47 215 }, 216 "end": { 217 "line": 17, 218 "column": 67 219 } 220 } 221 }, 222 "loc": { 223 "start": { 224 "line": 17, 225 "column": 5 226 }, 227 "end": { 228 "line": 17, 229 "column": 67 230 } 231 } 232 } 233 ], 234 "kind": "var", 235 "loc": { 236 "start": { 237 "line": 17, 238 "column": 1 239 }, 240 "end": { 241 "line": 17, 242 "column": 68 243 } 244 } 245 } 246 ], 247 "loc": { 248 "start": { 249 "line": 1, 250 "column": 1 251 }, 252 "end": { 253 "line": 17, 254 "column": 68 255 } 256 } 257} 258TypeError: Type 'number' is not assignable to type 'string'. [tupleAssignability23.ts:17:64] 259