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": "TSTypeLiteral", 14 "members": [ 15 { 16 "type": "TSPropertySignature", 17 "computed": false, 18 "optional": false, 19 "readonly": false, 20 "key": { 21 "type": "Identifier", 22 "name": "b", 23 "decorators": [], 24 "loc": { 25 "start": { 26 "line": 17, 27 "column": 10 28 }, 29 "end": { 30 "line": 17, 31 "column": 11 32 } 33 } 34 }, 35 "typeAnnotation": { 36 "type": "TSNumberKeyword", 37 "loc": { 38 "start": { 39 "line": 17, 40 "column": 13 41 }, 42 "end": { 43 "line": 17, 44 "column": 19 45 } 46 } 47 }, 48 "loc": { 49 "start": { 50 "line": 17, 51 "column": 10 52 }, 53 "end": { 54 "line": 17, 55 "column": 20 56 } 57 } 58 }, 59 { 60 "type": "TSPropertySignature", 61 "computed": false, 62 "optional": false, 63 "readonly": false, 64 "key": { 65 "type": "Identifier", 66 "name": "c", 67 "decorators": [], 68 "loc": { 69 "start": { 70 "line": 17, 71 "column": 21 72 }, 73 "end": { 74 "line": 17, 75 "column": 22 76 } 77 } 78 }, 79 "typeAnnotation": { 80 "type": "TSTypeLiteral", 81 "members": [ 82 { 83 "type": "TSPropertySignature", 84 "computed": false, 85 "optional": false, 86 "readonly": false, 87 "key": { 88 "type": "Identifier", 89 "name": "t", 90 "decorators": [], 91 "loc": { 92 "start": { 93 "line": 17, 94 "column": 26 95 }, 96 "end": { 97 "line": 17, 98 "column": 27 99 } 100 } 101 }, 102 "typeAnnotation": { 103 "type": "TSTupleType", 104 "elementTypes": [ 105 { 106 "type": "TSUnionType", 107 "types": [ 108 { 109 "type": "TSStringKeyword", 110 "loc": { 111 "start": { 112 "line": 17, 113 "column": 30 114 }, 115 "end": { 116 "line": 17, 117 "column": 36 118 } 119 } 120 }, 121 { 122 "type": "TSNumberKeyword", 123 "loc": { 124 "start": { 125 "line": 17, 126 "column": 39 127 }, 128 "end": { 129 "line": 17, 130 "column": 45 131 } 132 } 133 } 134 ], 135 "loc": { 136 "start": { 137 "line": 17, 138 "column": 30 139 }, 140 "end": { 141 "line": 17, 142 "column": 46 143 } 144 } 145 }, 146 { 147 "type": "TSArrayType", 148 "elementType": { 149 "type": "TSBooleanKeyword", 150 "loc": { 151 "start": { 152 "line": 17, 153 "column": 47 154 }, 155 "end": { 156 "line": 17, 157 "column": 54 158 } 159 } 160 }, 161 "loc": { 162 "start": { 163 "line": 17, 164 "column": 47 165 }, 166 "end": { 167 "line": 17, 168 "column": 57 169 } 170 } 171 } 172 ], 173 "loc": { 174 "start": { 175 "line": 17, 176 "column": 29 177 }, 178 "end": { 179 "line": 17, 180 "column": 57 181 } 182 } 183 }, 184 "loc": { 185 "start": { 186 "line": 17, 187 "column": 26 188 }, 189 "end": { 190 "line": 17, 191 "column": 59 192 } 193 } 194 } 195 ], 196 "loc": { 197 "start": { 198 "line": 17, 199 "column": 24 200 }, 201 "end": { 202 "line": 17, 203 "column": 59 204 } 205 } 206 }, 207 "loc": { 208 "start": { 209 "line": 17, 210 "column": 21 211 }, 212 "end": { 213 "line": 17, 214 "column": 61 215 } 216 } 217 } 218 ], 219 "loc": { 220 "start": { 221 "line": 17, 222 "column": 8 223 }, 224 "end": { 225 "line": 17, 226 "column": 61 227 } 228 } 229 }, 230 "decorators": [], 231 "loc": { 232 "start": { 233 "line": 17, 234 "column": 5 235 }, 236 "end": { 237 "line": 17, 238 "column": 6 239 } 240 } 241 }, 242 "init": null, 243 "loc": { 244 "start": { 245 "line": 17, 246 "column": 5 247 }, 248 "end": { 249 "line": 17, 250 "column": 6 251 } 252 } 253 } 254 ], 255 "kind": "var", 256 "loc": { 257 "start": { 258 "line": 17, 259 "column": 1 260 }, 261 "end": { 262 "line": 17, 263 "column": 62 264 } 265 } 266 }, 267 { 268 "type": "VariableDeclaration", 269 "declarations": [ 270 { 271 "type": "VariableDeclarator", 272 "id": { 273 "type": "ObjectPattern", 274 "properties": [ 275 { 276 "type": "Property", 277 "method": false, 278 "shorthand": true, 279 "computed": false, 280 "key": { 281 "type": "Identifier", 282 "name": "b", 283 "decorators": [], 284 "loc": { 285 "start": { 286 "line": 18, 287 "column": 7 288 }, 289 "end": { 290 "line": 18, 291 "column": 8 292 } 293 } 294 }, 295 "value": { 296 "type": "Identifier", 297 "name": "b", 298 "decorators": [], 299 "loc": { 300 "start": { 301 "line": 18, 302 "column": 7 303 }, 304 "end": { 305 "line": 18, 306 "column": 8 307 } 308 } 309 }, 310 "kind": "init", 311 "loc": { 312 "start": { 313 "line": 18, 314 "column": 7 315 }, 316 "end": { 317 "line": 18, 318 "column": 8 319 } 320 } 321 }, 322 { 323 "type": "Property", 324 "method": false, 325 "shorthand": false, 326 "computed": false, 327 "key": { 328 "type": "Identifier", 329 "name": "c", 330 "decorators": [], 331 "loc": { 332 "start": { 333 "line": 18, 334 "column": 10 335 }, 336 "end": { 337 "line": 18, 338 "column": 11 339 } 340 } 341 }, 342 "value": { 343 "type": "ObjectPattern", 344 "properties": [ 345 { 346 "type": "Property", 347 "method": false, 348 "shorthand": false, 349 "computed": false, 350 "key": { 351 "type": "Identifier", 352 "name": "t", 353 "decorators": [], 354 "loc": { 355 "start": { 356 "line": 18, 357 "column": 15 358 }, 359 "end": { 360 "line": 18, 361 "column": 16 362 } 363 } 364 }, 365 "value": { 366 "type": "ArrayPattern", 367 "elements": [ 368 { 369 "type": "Identifier", 370 "name": "d", 371 "decorators": [], 372 "loc": { 373 "start": { 374 "line": 18, 375 "column": 19 376 }, 377 "end": { 378 "line": 18, 379 "column": 20 380 } 381 } 382 }, 383 { 384 "type": "Identifier", 385 "name": "e", 386 "decorators": [], 387 "loc": { 388 "start": { 389 "line": 18, 390 "column": 22 391 }, 392 "end": { 393 "line": 18, 394 "column": 23 395 } 396 } 397 } 398 ], 399 "loc": { 400 "start": { 401 "line": 18, 402 "column": 18 403 }, 404 "end": { 405 "line": 18, 406 "column": 24 407 } 408 } 409 }, 410 "kind": "init", 411 "loc": { 412 "start": { 413 "line": 18, 414 "column": 15 415 }, 416 "end": { 417 "line": 18, 418 "column": 24 419 } 420 } 421 } 422 ], 423 "loc": { 424 "start": { 425 "line": 18, 426 "column": 13 427 }, 428 "end": { 429 "line": 18, 430 "column": 26 431 } 432 } 433 }, 434 "kind": "init", 435 "loc": { 436 "start": { 437 "line": 18, 438 "column": 10 439 }, 440 "end": { 441 "line": 18, 442 "column": 26 443 } 444 } 445 } 446 ], 447 "loc": { 448 "start": { 449 "line": 18, 450 "column": 5 451 }, 452 "end": { 453 "line": 18, 454 "column": 28 455 } 456 } 457 }, 458 "init": { 459 "type": "Identifier", 460 "name": "a", 461 "decorators": [], 462 "loc": { 463 "start": { 464 "line": 18, 465 "column": 31 466 }, 467 "end": { 468 "line": 18, 469 "column": 32 470 } 471 } 472 }, 473 "loc": { 474 "start": { 475 "line": 18, 476 "column": 5 477 }, 478 "end": { 479 "line": 18, 480 "column": 32 481 } 482 } 483 } 484 ], 485 "kind": "var", 486 "loc": { 487 "start": { 488 "line": 18, 489 "column": 1 490 }, 491 "end": { 492 "line": 18, 493 "column": 33 494 } 495 } 496 }, 497 { 498 "type": "ExpressionStatement", 499 "expression": { 500 "type": "AssignmentExpression", 501 "operator": "=", 502 "left": { 503 "type": "Identifier", 504 "name": "d", 505 "decorators": [], 506 "loc": { 507 "start": { 508 "line": 19, 509 "column": 1 510 }, 511 "end": { 512 "line": 19, 513 "column": 2 514 } 515 } 516 }, 517 "right": { 518 "type": "ObjectExpression", 519 "properties": [], 520 "loc": { 521 "start": { 522 "line": 19, 523 "column": 5 524 }, 525 "end": { 526 "line": 19, 527 "column": 7 528 } 529 } 530 }, 531 "loc": { 532 "start": { 533 "line": 19, 534 "column": 1 535 }, 536 "end": { 537 "line": 19, 538 "column": 7 539 } 540 } 541 }, 542 "loc": { 543 "start": { 544 "line": 19, 545 "column": 1 546 }, 547 "end": { 548 "line": 19, 549 "column": 8 550 } 551 } 552 } 553 ], 554 "loc": { 555 "start": { 556 "line": 1, 557 "column": 1 558 }, 559 "end": { 560 "line": 19, 561 "column": 8 562 } 563 } 564} 565TypeError: Type '{ }' is not assignable to type 'string | number'. [objectDestructuring24.ts:19:1] 566