{ "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": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 24 } } }, { "type": "TSBooleanKeyword", "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 33 } } }, { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 34 }, "end": { "line": 17, "column": 41 } } }, { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 42 }, "end": { "line": 17, "column": 49 } } } ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 49 } } }, "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": 53 }, "end": { "line": 17, "column": 54 } } }, { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 17, "column": 61 } } }, { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 17, "column": 63 }, "end": { "line": 17, "column": 67 } } }, { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 17, "column": 69 }, "end": { "line": 17, "column": 70 } } }, { "type": "NumberLiteral", "value": 6, "loc": { "start": { "line": 17, "column": 72 }, "end": { "line": 17, "column": 73 } } } ], "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 74 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 74 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 74 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 18, "column": 1 } } } TypeError: Type 'number' is not assignable to type 'string'. [tupleAssignability8.ts:17:72]