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": "TSTypeLiteral", 14 "members": [ 15 { 16 "type": "TSPropertySignature", 17 "computed": false, 18 "optional": false, 19 "readonly": false, 20 "key": { 21 "type": "Identifier", 22 "name": "b", 23 "decorators": [], 24 "loc": { 25 "start": { 26 "line": 17, 27 "column": 10 28 }, 29 "end": { 30 "line": 17, 31 "column": 11 32 } 33 } 34 }, 35 "typeAnnotation": { 36 "type": "TSNumberKeyword", 37 "loc": { 38 "start": { 39 "line": 17, 40 "column": 13 41 }, 42 "end": { 43 "line": 17, 44 "column": 19 45 } 46 } 47 }, 48 "loc": { 49 "start": { 50 "line": 17, 51 "column": 10 52 }, 53 "end": { 54 "line": 17, 55 "column": 20 56 } 57 } 58 }, 59 { 60 "type": "TSPropertySignature", 61 "computed": false, 62 "optional": false, 63 "readonly": false, 64 "key": { 65 "type": "Identifier", 66 "name": "c", 67 "decorators": [], 68 "loc": { 69 "start": { 70 "line": 17, 71 "column": 21 72 }, 73 "end": { 74 "line": 17, 75 "column": 22 76 } 77 } 78 }, 79 "typeAnnotation": { 80 "type": "TSStringKeyword", 81 "loc": { 82 "start": { 83 "line": 17, 84 "column": 24 85 }, 86 "end": { 87 "line": 17, 88 "column": 30 89 } 90 } 91 }, 92 "loc": { 93 "start": { 94 "line": 17, 95 "column": 21 96 }, 97 "end": { 98 "line": 17, 99 "column": 32 100 } 101 } 102 } 103 ], 104 "loc": { 105 "start": { 106 "line": 17, 107 "column": 8 108 }, 109 "end": { 110 "line": 17, 111 "column": 32 112 } 113 } 114 }, 115 "decorators": [], 116 "loc": { 117 "start": { 118 "line": 17, 119 "column": 5 120 }, 121 "end": { 122 "line": 17, 123 "column": 6 124 } 125 } 126 }, 127 "init": null, 128 "loc": { 129 "start": { 130 "line": 17, 131 "column": 5 132 }, 133 "end": { 134 "line": 17, 135 "column": 6 136 } 137 } 138 } 139 ], 140 "kind": "var", 141 "loc": { 142 "start": { 143 "line": 17, 144 "column": 1 145 }, 146 "end": { 147 "line": 17, 148 "column": 33 149 } 150 } 151 }, 152 { 153 "type": "VariableDeclaration", 154 "declarations": [ 155 { 156 "type": "VariableDeclarator", 157 "id": { 158 "type": "ObjectPattern", 159 "properties": [ 160 { 161 "type": "Property", 162 "method": false, 163 "shorthand": true, 164 "computed": false, 165 "key": { 166 "type": "Identifier", 167 "name": "c", 168 "decorators": [], 169 "loc": { 170 "start": { 171 "line": 18, 172 "column": 7 173 }, 174 "end": { 175 "line": 18, 176 "column": 8 177 } 178 } 179 }, 180 "value": { 181 "type": "Identifier", 182 "name": "c", 183 "decorators": [], 184 "loc": { 185 "start": { 186 "line": 18, 187 "column": 7 188 }, 189 "end": { 190 "line": 18, 191 "column": 8 192 } 193 } 194 }, 195 "kind": "init", 196 "loc": { 197 "start": { 198 "line": 18, 199 "column": 7 200 }, 201 "end": { 202 "line": 18, 203 "column": 8 204 } 205 } 206 } 207 ], 208 "loc": { 209 "start": { 210 "line": 18, 211 "column": 5 212 }, 213 "end": { 214 "line": 18, 215 "column": 10 216 } 217 } 218 }, 219 "init": { 220 "type": "Identifier", 221 "name": "a", 222 "decorators": [], 223 "loc": { 224 "start": { 225 "line": 18, 226 "column": 13 227 }, 228 "end": { 229 "line": 18, 230 "column": 14 231 } 232 } 233 }, 234 "loc": { 235 "start": { 236 "line": 18, 237 "column": 5 238 }, 239 "end": { 240 "line": 18, 241 "column": 14 242 } 243 } 244 } 245 ], 246 "kind": "var", 247 "loc": { 248 "start": { 249 "line": 18, 250 "column": 1 251 }, 252 "end": { 253 "line": 18, 254 "column": 15 255 } 256 } 257 }, 258 { 259 "type": "ExpressionStatement", 260 "expression": { 261 "type": "AssignmentExpression", 262 "operator": "=", 263 "left": { 264 "type": "Identifier", 265 "name": "c", 266 "decorators": [], 267 "loc": { 268 "start": { 269 "line": 19, 270 "column": 1 271 }, 272 "end": { 273 "line": 19, 274 "column": 2 275 } 276 } 277 }, 278 "right": { 279 "type": "ObjectExpression", 280 "properties": [], 281 "loc": { 282 "start": { 283 "line": 19, 284 "column": 5 285 }, 286 "end": { 287 "line": 19, 288 "column": 7 289 } 290 } 291 }, 292 "loc": { 293 "start": { 294 "line": 19, 295 "column": 1 296 }, 297 "end": { 298 "line": 19, 299 "column": 7 300 } 301 } 302 }, 303 "loc": { 304 "start": { 305 "line": 19, 306 "column": 1 307 }, 308 "end": { 309 "line": 19, 310 "column": 8 311 } 312 } 313 } 314 ], 315 "loc": { 316 "start": { 317 "line": 1, 318 "column": 1 319 }, 320 "end": { 321 "line": 19, 322 "column": 8 323 } 324 } 325} 326TypeError: Type '{ }' is not assignable to type 'string'. [objectDestructuring21.ts:19:1] 327