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": "TSStringKeyword", 17 "loc": { 18 "start": { 19 "line": 17, 20 "column": 9 21 }, 22 "end": { 23 "line": 17, 24 "column": 16 25 } 26 } 27 } 28 ], 29 "loc": { 30 "start": { 31 "line": 17, 32 "column": 8 33 }, 34 "end": { 35 "line": 17, 36 "column": 16 37 } 38 } 39 }, 40 "decorators": [], 41 "loc": { 42 "start": { 43 "line": 17, 44 "column": 5 45 }, 46 "end": { 47 "line": 17, 48 "column": 6 49 } 50 } 51 }, 52 "init": null, 53 "loc": { 54 "start": { 55 "line": 17, 56 "column": 5 57 }, 58 "end": { 59 "line": 17, 60 "column": 6 61 } 62 } 63 } 64 ], 65 "kind": "var", 66 "loc": { 67 "start": { 68 "line": 17, 69 "column": 1 70 }, 71 "end": { 72 "line": 17, 73 "column": 17 74 } 75 } 76 }, 77 { 78 "type": "VariableDeclaration", 79 "declarations": [ 80 { 81 "type": "VariableDeclarator", 82 "id": { 83 "type": "ArrayPattern", 84 "elements": [ 85 { 86 "type": "Identifier", 87 "name": "b", 88 "decorators": [], 89 "loc": { 90 "start": { 91 "line": 18, 92 "column": 6 93 }, 94 "end": { 95 "line": 18, 96 "column": 7 97 } 98 } 99 }, 100 { 101 "type": "AssignmentPattern", 102 "left": { 103 "type": "Identifier", 104 "name": "c", 105 "decorators": [], 106 "loc": { 107 "start": { 108 "line": 18, 109 "column": 9 110 }, 111 "end": { 112 "line": 18, 113 "column": 10 114 } 115 } 116 }, 117 "right": { 118 "type": "StringLiteral", 119 "value": "foo", 120 "loc": { 121 "start": { 122 "line": 18, 123 "column": 13 124 }, 125 "end": { 126 "line": 18, 127 "column": 18 128 } 129 } 130 }, 131 "loc": { 132 "start": { 133 "line": 18, 134 "column": 9 135 }, 136 "end": { 137 "line": 18, 138 "column": 18 139 } 140 } 141 } 142 ], 143 "loc": { 144 "start": { 145 "line": 18, 146 "column": 5 147 }, 148 "end": { 149 "line": 18, 150 "column": 19 151 } 152 } 153 }, 154 "init": { 155 "type": "Identifier", 156 "name": "a", 157 "decorators": [], 158 "loc": { 159 "start": { 160 "line": 18, 161 "column": 22 162 }, 163 "end": { 164 "line": 18, 165 "column": 23 166 } 167 } 168 }, 169 "loc": { 170 "start": { 171 "line": 18, 172 "column": 5 173 }, 174 "end": { 175 "line": 18, 176 "column": 23 177 } 178 } 179 } 180 ], 181 "kind": "var", 182 "loc": { 183 "start": { 184 "line": 18, 185 "column": 1 186 }, 187 "end": { 188 "line": 18, 189 "column": 24 190 } 191 } 192 }, 193 { 194 "type": "ExpressionStatement", 195 "expression": { 196 "type": "AssignmentExpression", 197 "operator": "=", 198 "left": { 199 "type": "Identifier", 200 "name": "c", 201 "decorators": [], 202 "loc": { 203 "start": { 204 "line": 19, 205 "column": 1 206 }, 207 "end": { 208 "line": 19, 209 "column": 2 210 } 211 } 212 }, 213 "right": { 214 "type": "ObjectExpression", 215 "properties": [], 216 "loc": { 217 "start": { 218 "line": 19, 219 "column": 5 220 }, 221 "end": { 222 "line": 19, 223 "column": 7 224 } 225 } 226 }, 227 "loc": { 228 "start": { 229 "line": 19, 230 "column": 1 231 }, 232 "end": { 233 "line": 19, 234 "column": 7 235 } 236 } 237 }, 238 "loc": { 239 "start": { 240 "line": 19, 241 "column": 1 242 }, 243 "end": { 244 "line": 19, 245 "column": 8 246 } 247 } 248 } 249 ], 250 "loc": { 251 "start": { 252 "line": 1, 253 "column": 1 254 }, 255 "end": { 256 "line": 19, 257 "column": 8 258 } 259 } 260} 261TypeError: Type '{ }' is not assignable to type 'string'. [arrayDestructuring16.ts:19:1] 262