{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSTupleType", "elementTypes": [ { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 16 } } }, { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 24 } } }, { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 32 } } } ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 32 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 17, "column": 36 }, "end": { "line": 17, "column": 37 } } }, { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 40 } } } ], "loc": { "start": { "line": 17, "column": 35 }, "end": { "line": 17, "column": 41 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 41 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 42 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 17, "column": 42 } } } TypeError: Type '[1, 2]' is not assignable to type '[number, number, number]'. [tupleAssignability3.ts:17:5]