{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSTupleType", "elementTypes": [ { "type": "TSArrayType", "elementType": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 15 } } }, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 18 } } }, { "type": "TSArrayType", "elementType": { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 25 } } }, "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 28 } } } ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 28 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "ArrayExpression", "elements": [ { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 17, "column": 33 }, "end": { "line": 17, "column": 38 } } } ], "loc": { "start": { "line": 17, "column": 32 }, "end": { "line": 17, "column": 39 } } }, { "type": "ArrayExpression", "elements": [ { "type": "StringLiteral", "value": "bar", "loc": { "start": { "line": 17, "column": 42 }, "end": { "line": 17, "column": 47 } } } ], "loc": { "start": { "line": 17, "column": 41 }, "end": { "line": 17, "column": 48 } } } ], "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 17, "column": 49 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 49 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 50 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 17, "column": 50 } } } TypeError: Type 'string' is not assignable to type 'number'. [tupleAssignability16.ts:17:33]