1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "ArrayPattern", 11 "elements": [ 12 { 13 "type": "ArrayPattern", 14 "elements": [ 15 { 16 "type": "Identifier", 17 "name": "a", 18 "decorators": [], 19 "loc": { 20 "start": { 21 "line": 17, 22 "column": 7 23 }, 24 "end": { 25 "line": 17, 26 "column": 8 27 } 28 } 29 }, 30 { 31 "type": "Identifier", 32 "name": "b", 33 "decorators": [], 34 "loc": { 35 "start": { 36 "line": 17, 37 "column": 10 38 }, 39 "end": { 40 "line": 17, 41 "column": 11 42 } 43 } 44 } 45 ], 46 "loc": { 47 "start": { 48 "line": 17, 49 "column": 6 50 }, 51 "end": { 52 "line": 17, 53 "column": 12 54 } 55 } 56 } 57 ], 58 "loc": { 59 "start": { 60 "line": 17, 61 "column": 5 62 }, 63 "end": { 64 "line": 17, 65 "column": 13 66 } 67 } 68 }, 69 "init": { 70 "type": "ArrayExpression", 71 "elements": [ 72 { 73 "type": "ArrayExpression", 74 "elements": [ 75 { 76 "type": "NumberLiteral", 77 "value": 1, 78 "loc": { 79 "start": { 80 "line": 17, 81 "column": 18 82 }, 83 "end": { 84 "line": 17, 85 "column": 19 86 } 87 } 88 } 89 ], 90 "loc": { 91 "start": { 92 "line": 17, 93 "column": 17 94 }, 95 "end": { 96 "line": 17, 97 "column": 20 98 } 99 } 100 } 101 ], 102 "loc": { 103 "start": { 104 "line": 17, 105 "column": 16 106 }, 107 "end": { 108 "line": 17, 109 "column": 21 110 } 111 } 112 }, 113 "loc": { 114 "start": { 115 "line": 17, 116 "column": 5 117 }, 118 "end": { 119 "line": 17, 120 "column": 21 121 } 122 } 123 } 124 ], 125 "kind": "var", 126 "loc": { 127 "start": { 128 "line": 17, 129 "column": 1 130 }, 131 "end": { 132 "line": 17, 133 "column": 22 134 } 135 } 136 } 137 ], 138 "loc": { 139 "start": { 140 "line": 1, 141 "column": 1 142 }, 143 "end": { 144 "line": 17, 145 "column": 22 146 } 147 } 148} 149TypeError: Tuple type [number] of length 1 has no element at index 1. [arrayDestructuring21.ts:17:6] 150