1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "a", 12 "typeAnnotation": { 13 "type": "TSTupleType", 14 "elementTypes": [ 15 { 16 "type": "TSArrayType", 17 "elementType": { 18 "type": "TSNumberKeyword", 19 "loc": { 20 "start": { 21 "line": 17, 22 "column": 9 23 }, 24 "end": { 25 "line": 17, 26 "column": 15 27 } 28 } 29 }, 30 "loc": { 31 "start": { 32 "line": 17, 33 "column": 9 34 }, 35 "end": { 36 "line": 17, 37 "column": 18 38 } 39 } 40 }, 41 { 42 "type": "TSArrayType", 43 "elementType": { 44 "type": "TSStringKeyword", 45 "loc": { 46 "start": { 47 "line": 17, 48 "column": 19 49 }, 50 "end": { 51 "line": 17, 52 "column": 25 53 } 54 } 55 }, 56 "loc": { 57 "start": { 58 "line": 17, 59 "column": 19 60 }, 61 "end": { 62 "line": 17, 63 "column": 28 64 } 65 } 66 } 67 ], 68 "loc": { 69 "start": { 70 "line": 17, 71 "column": 8 72 }, 73 "end": { 74 "line": 17, 75 "column": 28 76 } 77 } 78 }, 79 "decorators": [], 80 "loc": { 81 "start": { 82 "line": 17, 83 "column": 5 84 }, 85 "end": { 86 "line": 17, 87 "column": 6 88 } 89 } 90 }, 91 "init": { 92 "type": "ArrayExpression", 93 "elements": [ 94 { 95 "type": "ArrayExpression", 96 "elements": [ 97 { 98 "type": "StringLiteral", 99 "value": "foo", 100 "loc": { 101 "start": { 102 "line": 17, 103 "column": 33 104 }, 105 "end": { 106 "line": 17, 107 "column": 38 108 } 109 } 110 } 111 ], 112 "loc": { 113 "start": { 114 "line": 17, 115 "column": 32 116 }, 117 "end": { 118 "line": 17, 119 "column": 39 120 } 121 } 122 }, 123 { 124 "type": "ArrayExpression", 125 "elements": [ 126 { 127 "type": "StringLiteral", 128 "value": "bar", 129 "loc": { 130 "start": { 131 "line": 17, 132 "column": 42 133 }, 134 "end": { 135 "line": 17, 136 "column": 47 137 } 138 } 139 } 140 ], 141 "loc": { 142 "start": { 143 "line": 17, 144 "column": 41 145 }, 146 "end": { 147 "line": 17, 148 "column": 48 149 } 150 } 151 } 152 ], 153 "loc": { 154 "start": { 155 "line": 17, 156 "column": 31 157 }, 158 "end": { 159 "line": 17, 160 "column": 49 161 } 162 } 163 }, 164 "loc": { 165 "start": { 166 "line": 17, 167 "column": 5 168 }, 169 "end": { 170 "line": 17, 171 "column": 49 172 } 173 } 174 } 175 ], 176 "kind": "var", 177 "loc": { 178 "start": { 179 "line": 17, 180 "column": 1 181 }, 182 "end": { 183 "line": 17, 184 "column": 50 185 } 186 } 187 } 188 ], 189 "loc": { 190 "start": { 191 "line": 1, 192 "column": 1 193 }, 194 "end": { 195 "line": 17, 196 "column": 50 197 } 198 } 199} 200TypeError: Type 'string' is not assignable to type 'number'. [tupleAssignability16.ts:17:33] 201