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