{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSTupleType", "elementTypes": [ { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 16 } } } ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 16 } } }, { "type": "TSTupleType", "elementTypes": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 27 } } } ], "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 27 } } } ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 27 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 17, "column": 35 } } } ], "loc": { "start": { "line": 17, "column": 30 }, "end": { "line": 17, "column": 36 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 36 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 37 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 17, "column": 37 } } } TypeError: Type 'boolean' is not assignable to type 'number | string'. [tupleAssignability19.ts:17:31]