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": "AssignmentPattern", 14 "left": { 15 "type": "Identifier", 16 "name": "a", 17 "decorators": [], 18 "loc": { 19 "start": { 20 "line": 17, 21 "column": 6 22 }, 23 "end": { 24 "line": 17, 25 "column": 7 26 } 27 } 28 }, 29 "right": { 30 "type": "ArrayExpression", 31 "elements": [ 32 { 33 "type": "NumberLiteral", 34 "value": 1, 35 "loc": { 36 "start": { 37 "line": 17, 38 "column": 11 39 }, 40 "end": { 41 "line": 17, 42 "column": 12 43 } 44 } 45 }, 46 { 47 "type": "StringLiteral", 48 "value": "foo", 49 "loc": { 50 "start": { 51 "line": 17, 52 "column": 14 53 }, 54 "end": { 55 "line": 17, 56 "column": 19 57 } 58 } 59 } 60 ], 61 "loc": { 62 "start": { 63 "line": 17, 64 "column": 10 65 }, 66 "end": { 67 "line": 17, 68 "column": 20 69 } 70 } 71 }, 72 "loc": { 73 "start": { 74 "line": 17, 75 "column": 6 76 }, 77 "end": { 78 "line": 17, 79 "column": 20 80 } 81 } 82 }, 83 { 84 "type": "Identifier", 85 "name": "b", 86 "decorators": [], 87 "loc": { 88 "start": { 89 "line": 17, 90 "column": 22 91 }, 92 "end": { 93 "line": 17, 94 "column": 23 95 } 96 } 97 } 98 ], 99 "loc": { 100 "start": { 101 "line": 17, 102 "column": 5 103 }, 104 "end": { 105 "line": 17, 106 "column": 24 107 } 108 } 109 }, 110 "init": { 111 "type": "ArrayExpression", 112 "elements": [ 113 { 114 "type": "ArrayExpression", 115 "elements": [ 116 { 117 "type": "BooleanLiteral", 118 "value": true, 119 "loc": { 120 "start": { 121 "line": 17, 122 "column": 29 123 }, 124 "end": { 125 "line": 17, 126 "column": 33 127 } 128 } 129 }, 130 { 131 "type": "BooleanLiteral", 132 "value": false, 133 "loc": { 134 "start": { 135 "line": 17, 136 "column": 35 137 }, 138 "end": { 139 "line": 17, 140 "column": 40 141 } 142 } 143 } 144 ], 145 "loc": { 146 "start": { 147 "line": 17, 148 "column": 28 149 }, 150 "end": { 151 "line": 17, 152 "column": 41 153 } 154 } 155 } 156 ], 157 "loc": { 158 "start": { 159 "line": 17, 160 "column": 27 161 }, 162 "end": { 163 "line": 17, 164 "column": 43 165 } 166 } 167 }, 168 "loc": { 169 "start": { 170 "line": 17, 171 "column": 5 172 }, 173 "end": { 174 "line": 17, 175 "column": 43 176 } 177 } 178 } 179 ], 180 "kind": "var", 181 "loc": { 182 "start": { 183 "line": 17, 184 "column": 1 185 }, 186 "end": { 187 "line": 17, 188 "column": 44 189 } 190 } 191 } 192 ], 193 "loc": { 194 "start": { 195 "line": 1, 196 "column": 1 197 }, 198 "end": { 199 "line": 17, 200 "column": 44 201 } 202 } 203} 204TypeError: Tuple type [boolean[]] of length 1 has no element at index 1. [arrayDestructuring7.ts:17:5] 205