1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "ObjectPattern", 11 "properties": [ 12 { 13 "type": "Property", 14 "method": false, 15 "shorthand": true, 16 "computed": false, 17 "key": { 18 "type": "Identifier", 19 "name": "a", 20 "decorators": [], 21 "loc": { 22 "start": { 23 "line": 17, 24 "column": 7 25 }, 26 "end": { 27 "line": 17, 28 "column": 8 29 } 30 } 31 }, 32 "value": { 33 "type": "Identifier", 34 "name": "a", 35 "decorators": [], 36 "loc": { 37 "start": { 38 "line": 17, 39 "column": 7 40 }, 41 "end": { 42 "line": 17, 43 "column": 8 44 } 45 } 46 }, 47 "kind": "init", 48 "loc": { 49 "start": { 50 "line": 17, 51 "column": 7 52 }, 53 "end": { 54 "line": 17, 55 "column": 8 56 } 57 } 58 }, 59 { 60 "type": "RestElement", 61 "argument": { 62 "type": "Identifier", 63 "name": "b", 64 "decorators": [], 65 "loc": { 66 "start": { 67 "line": 17, 68 "column": 13 69 }, 70 "end": { 71 "line": 17, 72 "column": 14 73 } 74 } 75 }, 76 "loc": { 77 "start": { 78 "line": 17, 79 "column": 10 80 }, 81 "end": { 82 "line": 17, 83 "column": 14 84 } 85 } 86 } 87 ], 88 "loc": { 89 "start": { 90 "line": 17, 91 "column": 5 92 }, 93 "end": { 94 "line": 17, 95 "column": 16 96 } 97 } 98 }, 99 "init": { 100 "type": "ObjectExpression", 101 "properties": [ 102 { 103 "type": "Property", 104 "method": false, 105 "shorthand": false, 106 "computed": false, 107 "key": { 108 "type": "Identifier", 109 "name": "a", 110 "decorators": [], 111 "loc": { 112 "start": { 113 "line": 17, 114 "column": 21 115 }, 116 "end": { 117 "line": 17, 118 "column": 22 119 } 120 } 121 }, 122 "value": { 123 "type": "NumberLiteral", 124 "value": 5, 125 "loc": { 126 "start": { 127 "line": 17, 128 "column": 24 129 }, 130 "end": { 131 "line": 17, 132 "column": 25 133 } 134 } 135 }, 136 "kind": "init", 137 "loc": { 138 "start": { 139 "line": 17, 140 "column": 21 141 }, 142 "end": { 143 "line": 17, 144 "column": 25 145 } 146 } 147 }, 148 { 149 "type": "Property", 150 "method": false, 151 "shorthand": false, 152 "computed": false, 153 "key": { 154 "type": "Identifier", 155 "name": "b", 156 "decorators": [], 157 "loc": { 158 "start": { 159 "line": 17, 160 "column": 27 161 }, 162 "end": { 163 "line": 17, 164 "column": 28 165 } 166 } 167 }, 168 "value": { 169 "type": "BigIntLiteral", 170 "value": "5", 171 "loc": { 172 "start": { 173 "line": 17, 174 "column": 30 175 }, 176 "end": { 177 "line": 17, 178 "column": 32 179 } 180 } 181 }, 182 "kind": "init", 183 "loc": { 184 "start": { 185 "line": 17, 186 "column": 27 187 }, 188 "end": { 189 "line": 17, 190 "column": 32 191 } 192 } 193 }, 194 { 195 "type": "Property", 196 "method": false, 197 "shorthand": false, 198 "computed": false, 199 "key": { 200 "type": "Identifier", 201 "name": "c", 202 "decorators": [], 203 "loc": { 204 "start": { 205 "line": 17, 206 "column": 34 207 }, 208 "end": { 209 "line": 17, 210 "column": 35 211 } 212 } 213 }, 214 "value": { 215 "type": "ObjectExpression", 216 "properties": [ 217 { 218 "type": "Property", 219 "method": false, 220 "shorthand": false, 221 "computed": false, 222 "key": { 223 "type": "Identifier", 224 "name": "a", 225 "decorators": [], 226 "loc": { 227 "start": { 228 "line": 17, 229 "column": 39 230 }, 231 "end": { 232 "line": 17, 233 "column": 40 234 } 235 } 236 }, 237 "value": { 238 "type": "ObjectExpression", 239 "properties": [], 240 "loc": { 241 "start": { 242 "line": 17, 243 "column": 42 244 }, 245 "end": { 246 "line": 17, 247 "column": 44 248 } 249 } 250 }, 251 "kind": "init", 252 "loc": { 253 "start": { 254 "line": 17, 255 "column": 39 256 }, 257 "end": { 258 "line": 17, 259 "column": 44 260 } 261 } 262 }, 263 { 264 "type": "Property", 265 "method": false, 266 "shorthand": false, 267 "computed": false, 268 "key": { 269 "type": "Identifier", 270 "name": "b", 271 "decorators": [], 272 "loc": { 273 "start": { 274 "line": 17, 275 "column": 46 276 }, 277 "end": { 278 "line": 17, 279 "column": 47 280 } 281 } 282 }, 283 "value": { 284 "type": "BooleanLiteral", 285 "value": true, 286 "loc": { 287 "start": { 288 "line": 17, 289 "column": 49 290 }, 291 "end": { 292 "line": 17, 293 "column": 53 294 } 295 } 296 }, 297 "kind": "init", 298 "loc": { 299 "start": { 300 "line": 17, 301 "column": 46 302 }, 303 "end": { 304 "line": 17, 305 "column": 53 306 } 307 } 308 } 309 ], 310 "loc": { 311 "start": { 312 "line": 17, 313 "column": 37 314 }, 315 "end": { 316 "line": 17, 317 "column": 55 318 } 319 } 320 }, 321 "kind": "init", 322 "loc": { 323 "start": { 324 "line": 17, 325 "column": 34 326 }, 327 "end": { 328 "line": 17, 329 "column": 55 330 } 331 } 332 } 333 ], 334 "loc": { 335 "start": { 336 "line": 17, 337 "column": 19 338 }, 339 "end": { 340 "line": 17, 341 "column": 57 342 } 343 } 344 }, 345 "loc": { 346 "start": { 347 "line": 17, 348 "column": 5 349 }, 350 "end": { 351 "line": 17, 352 "column": 57 353 } 354 } 355 } 356 ], 357 "kind": "var", 358 "loc": { 359 "start": { 360 "line": 17, 361 "column": 1 362 }, 363 "end": { 364 "line": 17, 365 "column": 58 366 } 367 } 368 }, 369 { 370 "type": "ExpressionStatement", 371 "expression": { 372 "type": "AssignmentExpression", 373 "operator": "=", 374 "left": { 375 "type": "Identifier", 376 "name": "b", 377 "decorators": [], 378 "loc": { 379 "start": { 380 "line": 18, 381 "column": 1 382 }, 383 "end": { 384 "line": 18, 385 "column": 2 386 } 387 } 388 }, 389 "right": { 390 "type": "ObjectExpression", 391 "properties": [], 392 "loc": { 393 "start": { 394 "line": 18, 395 "column": 5 396 }, 397 "end": { 398 "line": 18, 399 "column": 7 400 } 401 } 402 }, 403 "loc": { 404 "start": { 405 "line": 18, 406 "column": 1 407 }, 408 "end": { 409 "line": 18, 410 "column": 7 411 } 412 } 413 }, 414 "loc": { 415 "start": { 416 "line": 18, 417 "column": 1 418 }, 419 "end": { 420 "line": 18, 421 "column": 8 422 } 423 } 424 } 425 ], 426 "loc": { 427 "start": { 428 "line": 1, 429 "column": 1 430 }, 431 "end": { 432 "line": 18, 433 "column": 8 434 } 435 } 436} 437TypeError: Type '{ }' is not assignable to type '{ b: bigint; c: { a: { }; b: boolean; }; }'. [objectDestructuring13.ts:18:1] 438