1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "FunctionDeclaration", 6 "function": { 7 "type": "ScriptFunction", 8 "id": { 9 "type": "Identifier", 10 "name": "foo", 11 "decorators": [], 12 "loc": { 13 "start": { 14 "line": 17, 15 "column": 10 16 }, 17 "end": { 18 "line": 17, 19 "column": 13 20 } 21 } 22 }, 23 "generator": false, 24 "async": false, 25 "expression": false, 26 "params": [ 27 { 28 "type": "ObjectPattern", 29 "properties": [ 30 { 31 "type": "Property", 32 "method": false, 33 "shorthand": true, 34 "computed": false, 35 "key": { 36 "type": "Identifier", 37 "name": "a", 38 "decorators": [], 39 "loc": { 40 "start": { 41 "line": 17, 42 "column": 16 43 }, 44 "end": { 45 "line": 17, 46 "column": 17 47 } 48 } 49 }, 50 "value": { 51 "type": "Identifier", 52 "name": "a", 53 "decorators": [], 54 "loc": { 55 "start": { 56 "line": 17, 57 "column": 16 58 }, 59 "end": { 60 "line": 17, 61 "column": 17 62 } 63 } 64 }, 65 "kind": "init", 66 "loc": { 67 "start": { 68 "line": 17, 69 "column": 16 70 }, 71 "end": { 72 "line": 17, 73 "column": 17 74 } 75 } 76 }, 77 { 78 "type": "Property", 79 "method": false, 80 "shorthand": false, 81 "computed": false, 82 "key": { 83 "type": "Identifier", 84 "name": "b", 85 "decorators": [], 86 "loc": { 87 "start": { 88 "line": 17, 89 "column": 19 90 }, 91 "end": { 92 "line": 17, 93 "column": 20 94 } 95 } 96 }, 97 "value": { 98 "type": "AssignmentPattern", 99 "left": { 100 "type": "ObjectPattern", 101 "properties": [ 102 { 103 "type": "Property", 104 "method": false, 105 "shorthand": true, 106 "computed": false, 107 "key": { 108 "type": "Identifier", 109 "name": "t", 110 "decorators": [], 111 "loc": { 112 "start": { 113 "line": 17, 114 "column": 24 115 }, 116 "end": { 117 "line": 17, 118 "column": 25 119 } 120 } 121 }, 122 "value": { 123 "type": "AssignmentPattern", 124 "left": { 125 "type": "Identifier", 126 "name": "t", 127 "decorators": [], 128 "loc": { 129 "start": { 130 "line": 17, 131 "column": 24 132 }, 133 "end": { 134 "line": 17, 135 "column": 25 136 } 137 } 138 }, 139 "right": { 140 "type": "StringLiteral", 141 "value": "foo", 142 "loc": { 143 "start": { 144 "line": 17, 145 "column": 28 146 }, 147 "end": { 148 "line": 17, 149 "column": 33 150 } 151 } 152 }, 153 "loc": { 154 "start": { 155 "line": 17, 156 "column": 24 157 }, 158 "end": { 159 "line": 17, 160 "column": 33 161 } 162 } 163 }, 164 "kind": "init", 165 "loc": { 166 "start": { 167 "line": 17, 168 "column": 24 169 }, 170 "end": { 171 "line": 17, 172 "column": 33 173 } 174 } 175 } 176 ], 177 "loc": { 178 "start": { 179 "line": 17, 180 "column": 22 181 }, 182 "end": { 183 "line": 17, 184 "column": 35 185 } 186 } 187 }, 188 "right": { 189 "type": "ObjectExpression", 190 "properties": [ 191 { 192 "type": "Property", 193 "method": false, 194 "shorthand": false, 195 "computed": false, 196 "key": { 197 "type": "Identifier", 198 "name": "t", 199 "decorators": [], 200 "loc": { 201 "start": { 202 "line": 17, 203 "column": 40 204 }, 205 "end": { 206 "line": 17, 207 "column": 41 208 } 209 } 210 }, 211 "value": { 212 "type": "NumberLiteral", 213 "value": 3, 214 "loc": { 215 "start": { 216 "line": 17, 217 "column": 43 218 }, 219 "end": { 220 "line": 17, 221 "column": 44 222 } 223 } 224 }, 225 "kind": "init", 226 "loc": { 227 "start": { 228 "line": 17, 229 "column": 40 230 }, 231 "end": { 232 "line": 17, 233 "column": 44 234 } 235 } 236 } 237 ], 238 "loc": { 239 "start": { 240 "line": 17, 241 "column": 38 242 }, 243 "end": { 244 "line": 17, 245 "column": 46 246 } 247 } 248 }, 249 "loc": { 250 "start": { 251 "line": 17, 252 "column": 22 253 }, 254 "end": { 255 "line": 17, 256 "column": 46 257 } 258 } 259 }, 260 "kind": "init", 261 "loc": { 262 "start": { 263 "line": 17, 264 "column": 19 265 }, 266 "end": { 267 "line": 17, 268 "column": 46 269 } 270 } 271 }, 272 { 273 "type": "Property", 274 "method": false, 275 "shorthand": false, 276 "computed": false, 277 "key": { 278 "type": "Identifier", 279 "name": "d", 280 "decorators": [], 281 "loc": { 282 "start": { 283 "line": 17, 284 "column": 48 285 }, 286 "end": { 287 "line": 17, 288 "column": 49 289 } 290 } 291 }, 292 "value": { 293 "type": "AssignmentPattern", 294 "left": { 295 "type": "ArrayPattern", 296 "elements": [ 297 { 298 "type": "AssignmentPattern", 299 "left": { 300 "type": "Identifier", 301 "name": "e", 302 "decorators": [], 303 "loc": { 304 "start": { 305 "line": 17, 306 "column": 52 307 }, 308 "end": { 309 "line": 17, 310 "column": 53 311 } 312 } 313 }, 314 "right": { 315 "type": "ObjectExpression", 316 "properties": [], 317 "loc": { 318 "start": { 319 "line": 17, 320 "column": 56 321 }, 322 "end": { 323 "line": 17, 324 "column": 58 325 } 326 } 327 }, 328 "loc": { 329 "start": { 330 "line": 17, 331 "column": 52 332 }, 333 "end": { 334 "line": 17, 335 "column": 58 336 } 337 } 338 }, 339 { 340 "type": "AssignmentPattern", 341 "left": { 342 "type": "Identifier", 343 "name": "f", 344 "decorators": [], 345 "loc": { 346 "start": { 347 "line": 17, 348 "column": 60 349 }, 350 "end": { 351 "line": 17, 352 "column": 61 353 } 354 } 355 }, 356 "right": { 357 "type": "NumberLiteral", 358 "value": 6, 359 "loc": { 360 "start": { 361 "line": 17, 362 "column": 64 363 }, 364 "end": { 365 "line": 17, 366 "column": 65 367 } 368 } 369 }, 370 "loc": { 371 "start": { 372 "line": 17, 373 "column": 60 374 }, 375 "end": { 376 "line": 17, 377 "column": 65 378 } 379 } 380 } 381 ], 382 "loc": { 383 "start": { 384 "line": 17, 385 "column": 51 386 }, 387 "end": { 388 "line": 17, 389 "column": 66 390 } 391 } 392 }, 393 "right": { 394 "type": "ArrayExpression", 395 "elements": [ 396 { 397 "type": "NumberLiteral", 398 "value": 3, 399 "loc": { 400 "start": { 401 "line": 17, 402 "column": 70 403 }, 404 "end": { 405 "line": 17, 406 "column": 71 407 } 408 } 409 }, 410 { 411 "type": "ArrayExpression", 412 "elements": [ 413 { 414 "type": "StringLiteral", 415 "value": "foo", 416 "loc": { 417 "start": { 418 "line": 17, 419 "column": 74 420 }, 421 "end": { 422 "line": 17, 423 "column": 79 424 } 425 } 426 }, 427 { 428 "type": "StringLiteral", 429 "value": "bar", 430 "loc": { 431 "start": { 432 "line": 17, 433 "column": 81 434 }, 435 "end": { 436 "line": 17, 437 "column": 86 438 } 439 } 440 } 441 ], 442 "loc": { 443 "start": { 444 "line": 17, 445 "column": 73 446 }, 447 "end": { 448 "line": 17, 449 "column": 87 450 } 451 } 452 } 453 ], 454 "loc": { 455 "start": { 456 "line": 17, 457 "column": 69 458 }, 459 "end": { 460 "line": 17, 461 "column": 88 462 } 463 } 464 }, 465 "loc": { 466 "start": { 467 "line": 17, 468 "column": 51 469 }, 470 "end": { 471 "line": 17, 472 "column": 88 473 } 474 } 475 }, 476 "kind": "init", 477 "loc": { 478 "start": { 479 "line": 17, 480 "column": 48 481 }, 482 "end": { 483 "line": 17, 484 "column": 88 485 } 486 } 487 } 488 ], 489 "loc": { 490 "start": { 491 "line": 17, 492 "column": 14 493 }, 494 "end": { 495 "line": 17, 496 "column": 90 497 } 498 } 499 } 500 ], 501 "body": { 502 "type": "BlockStatement", 503 "statements": [], 504 "loc": { 505 "start": { 506 "line": 17, 507 "column": 92 508 }, 509 "end": { 510 "line": 19, 511 "column": 2 512 } 513 } 514 }, 515 "loc": { 516 "start": { 517 "line": 17, 518 "column": 1 519 }, 520 "end": { 521 "line": 19, 522 "column": 2 523 } 524 } 525 }, 526 "loc": { 527 "start": { 528 "line": 17, 529 "column": 1 530 }, 531 "end": { 532 "line": 19, 533 "column": 2 534 } 535 } 536 }, 537 { 538 "type": "ExpressionStatement", 539 "expression": { 540 "type": "CallExpression", 541 "callee": { 542 "type": "Identifier", 543 "name": "foo", 544 "decorators": [], 545 "loc": { 546 "start": { 547 "line": 21, 548 "column": 1 549 }, 550 "end": { 551 "line": 21, 552 "column": 4 553 } 554 } 555 }, 556 "arguments": [ 557 { 558 "type": "ObjectExpression", 559 "properties": [ 560 { 561 "type": "Property", 562 "method": false, 563 "shorthand": false, 564 "computed": false, 565 "key": { 566 "type": "Identifier", 567 "name": "a", 568 "decorators": [], 569 "loc": { 570 "start": { 571 "line": 21, 572 "column": 7 573 }, 574 "end": { 575 "line": 21, 576 "column": 8 577 } 578 } 579 }, 580 "value": { 581 "type": "BooleanLiteral", 582 "value": false, 583 "loc": { 584 "start": { 585 "line": 21, 586 "column": 10 587 }, 588 "end": { 589 "line": 21, 590 "column": 15 591 } 592 } 593 }, 594 "kind": "init", 595 "loc": { 596 "start": { 597 "line": 21, 598 "column": 7 599 }, 600 "end": { 601 "line": 21, 602 "column": 15 603 } 604 } 605 }, 606 { 607 "type": "Property", 608 "method": false, 609 "shorthand": false, 610 "computed": false, 611 "key": { 612 "type": "Identifier", 613 "name": "b", 614 "decorators": [], 615 "loc": { 616 "start": { 617 "line": 21, 618 "column": 17 619 }, 620 "end": { 621 "line": 21, 622 "column": 18 623 } 624 } 625 }, 626 "value": { 627 "type": "ObjectExpression", 628 "properties": [ 629 { 630 "type": "Property", 631 "method": false, 632 "shorthand": false, 633 "computed": false, 634 "key": { 635 "type": "Identifier", 636 "name": "t", 637 "decorators": [], 638 "loc": { 639 "start": { 640 "line": 21, 641 "column": 22 642 }, 643 "end": { 644 "line": 21, 645 "column": 23 646 } 647 } 648 }, 649 "value": { 650 "type": "NumberLiteral", 651 "value": 7, 652 "loc": { 653 "start": { 654 "line": 21, 655 "column": 25 656 }, 657 "end": { 658 "line": 21, 659 "column": 26 660 } 661 } 662 }, 663 "kind": "init", 664 "loc": { 665 "start": { 666 "line": 21, 667 "column": 22 668 }, 669 "end": { 670 "line": 21, 671 "column": 26 672 } 673 } 674 } 675 ], 676 "loc": { 677 "start": { 678 "line": 21, 679 "column": 20 680 }, 681 "end": { 682 "line": 21, 683 "column": 28 684 } 685 } 686 }, 687 "kind": "init", 688 "loc": { 689 "start": { 690 "line": 21, 691 "column": 17 692 }, 693 "end": { 694 "line": 21, 695 "column": 28 696 } 697 } 698 }, 699 { 700 "type": "Property", 701 "method": false, 702 "shorthand": false, 703 "computed": false, 704 "key": { 705 "type": "Identifier", 706 "name": "d", 707 "decorators": [], 708 "loc": { 709 "start": { 710 "line": 21, 711 "column": 30 712 }, 713 "end": { 714 "line": 21, 715 "column": 31 716 } 717 } 718 }, 719 "value": { 720 "type": "ArrayExpression", 721 "elements": [ 722 { 723 "type": "NumberLiteral", 724 "value": 2, 725 "loc": { 726 "start": { 727 "line": 21, 728 "column": 34 729 }, 730 "end": { 731 "line": 21, 732 "column": 35 733 } 734 } 735 }, 736 { 737 "type": "BigIntLiteral", 738 "value": "5", 739 "loc": { 740 "start": { 741 "line": 21, 742 "column": 37 743 }, 744 "end": { 745 "line": 21, 746 "column": 39 747 } 748 } 749 } 750 ], 751 "loc": { 752 "start": { 753 "line": 21, 754 "column": 33 755 }, 756 "end": { 757 "line": 21, 758 "column": 40 759 } 760 } 761 }, 762 "kind": "init", 763 "loc": { 764 "start": { 765 "line": 21, 766 "column": 30 767 }, 768 "end": { 769 "line": 21, 770 "column": 40 771 } 772 } 773 } 774 ], 775 "loc": { 776 "start": { 777 "line": 21, 778 "column": 5 779 }, 780 "end": { 781 "line": 21, 782 "column": 42 783 } 784 } 785 } 786 ], 787 "optional": false, 788 "loc": { 789 "start": { 790 "line": 21, 791 "column": 1 792 }, 793 "end": { 794 "line": 21, 795 "column": 43 796 } 797 } 798 }, 799 "loc": { 800 "start": { 801 "line": 21, 802 "column": 1 803 }, 804 "end": { 805 "line": 21, 806 "column": 44 807 } 808 } 809 } 810 ], 811 "loc": { 812 "start": { 813 "line": 1, 814 "column": 1 815 }, 816 "end": { 817 "line": 22, 818 "column": 1 819 } 820 } 821} 822TypeError: Type 'bigint' is not assignable to type 'string[]'. [functionWithPattern7.ts:21:37] 823