{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "ArrayPattern", "elements": [ { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 7 } } } ], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 8 } } }, "init": { "type": "ArrayExpression", "elements": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 13 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 13 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 14 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 17, "column": 14 } } } TypeError: Tuple type [] of length 0 has no element at index 0. [arrayDestructuring1.ts:17:5]