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": "NumberLiteral", 31 "value": 6, 32 "loc": { 33 "start": { 34 "line": 17, 35 "column": 10 36 }, 37 "end": { 38 "line": 17, 39 "column": 11 40 } 41 } 42 }, 43 "loc": { 44 "start": { 45 "line": 17, 46 "column": 6 47 }, 48 "end": { 49 "line": 17, 50 "column": 11 51 } 52 } 53 }, 54 { 55 "type": "Identifier", 56 "name": "b", 57 "decorators": [], 58 "loc": { 59 "start": { 60 "line": 17, 61 "column": 13 62 }, 63 "end": { 64 "line": 17, 65 "column": 14 66 } 67 } 68 }, 69 { 70 "type": "RestElement", 71 "argument": { 72 "type": "Identifier", 73 "name": "c", 74 "decorators": [], 75 "loc": { 76 "start": { 77 "line": 17, 78 "column": 19 79 }, 80 "end": { 81 "line": 17, 82 "column": 20 83 } 84 } 85 }, 86 "loc": { 87 "start": { 88 "line": 17, 89 "column": 16 90 }, 91 "end": { 92 "line": 17, 93 "column": 20 94 } 95 } 96 } 97 ], 98 "loc": { 99 "start": { 100 "line": 17, 101 "column": 5 102 }, 103 "end": { 104 "line": 17, 105 "column": 21 106 } 107 } 108 }, 109 "init": { 110 "type": "ArrayExpression", 111 "elements": [ 112 { 113 "type": "OmittedExpression", 114 "loc": { 115 "start": { 116 "line": 17, 117 "column": 25 118 }, 119 "end": { 120 "line": 17, 121 "column": 26 122 } 123 } 124 }, 125 { 126 "type": "StringLiteral", 127 "value": "foo", 128 "loc": { 129 "start": { 130 "line": 17, 131 "column": 27 132 }, 133 "end": { 134 "line": 17, 135 "column": 32 136 } 137 } 138 }, 139 { 140 "type": "BooleanLiteral", 141 "value": true, 142 "loc": { 143 "start": { 144 "line": 17, 145 "column": 34 146 }, 147 "end": { 148 "line": 17, 149 "column": 38 150 } 151 } 152 }, 153 { 154 "type": "ObjectExpression", 155 "properties": [], 156 "loc": { 157 "start": { 158 "line": 17, 159 "column": 40 160 }, 161 "end": { 162 "line": 17, 163 "column": 42 164 } 165 } 166 } 167 ], 168 "loc": { 169 "start": { 170 "line": 17, 171 "column": 24 172 }, 173 "end": { 174 "line": 17, 175 "column": 43 176 } 177 } 178 }, 179 "loc": { 180 "start": { 181 "line": 17, 182 "column": 5 183 }, 184 "end": { 185 "line": 17, 186 "column": 43 187 } 188 } 189 } 190 ], 191 "kind": "var", 192 "loc": { 193 "start": { 194 "line": 17, 195 "column": 1 196 }, 197 "end": { 198 "line": 17, 199 "column": 44 200 } 201 } 202 }, 203 { 204 "type": "ExpressionStatement", 205 "expression": { 206 "type": "AssignmentExpression", 207 "operator": "=", 208 "left": { 209 "type": "Identifier", 210 "name": "c", 211 "decorators": [], 212 "loc": { 213 "start": { 214 "line": 18, 215 "column": 1 216 }, 217 "end": { 218 "line": 18, 219 "column": 2 220 } 221 } 222 }, 223 "right": { 224 "type": "ObjectExpression", 225 "properties": [], 226 "loc": { 227 "start": { 228 "line": 18, 229 "column": 5 230 }, 231 "end": { 232 "line": 18, 233 "column": 7 234 } 235 } 236 }, 237 "loc": { 238 "start": { 239 "line": 18, 240 "column": 1 241 }, 242 "end": { 243 "line": 18, 244 "column": 7 245 } 246 } 247 }, 248 "loc": { 249 "start": { 250 "line": 18, 251 "column": 1 252 }, 253 "end": { 254 "line": 18, 255 "column": 8 256 } 257 } 258 } 259 ], 260 "loc": { 261 "start": { 262 "line": 1, 263 "column": 1 264 }, 265 "end": { 266 "line": 18, 267 "column": 8 268 } 269 } 270} 271TypeError: Type '{ }' is not assignable to type '[boolean, { }]'. [arrayDestructuring10.ts:18:1] 272