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