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": "ExpressionStatement", 64 "expression": { 65 "type": "AssignmentExpression", 66 "operator": "=", 67 "left": { 68 "type": "ObjectPattern", 69 "properties": [ 70 { 71 "type": "Property", 72 "method": false, 73 "shorthand": true, 74 "computed": false, 75 "key": { 76 "type": "Identifier", 77 "name": "a", 78 "decorators": [], 79 "loc": { 80 "start": { 81 "line": 17, 82 "column": 3 83 }, 84 "end": { 85 "line": 17, 86 "column": 4 87 } 88 } 89 }, 90 "value": { 91 "type": "Identifier", 92 "name": "a", 93 "decorators": [], 94 "loc": { 95 "start": { 96 "line": 17, 97 "column": 3 98 }, 99 "end": { 100 "line": 17, 101 "column": 4 102 } 103 } 104 }, 105 "kind": "init", 106 "loc": { 107 "start": { 108 "line": 17, 109 "column": 3 110 }, 111 "end": { 112 "line": 17, 113 "column": 4 114 } 115 } 116 } 117 ], 118 "loc": { 119 "start": { 120 "line": 17, 121 "column": 2 122 }, 123 "end": { 124 "line": 17, 125 "column": 5 126 } 127 } 128 }, 129 "right": { 130 "type": "ObjectExpression", 131 "properties": [ 132 { 133 "type": "Property", 134 "method": false, 135 "shorthand": false, 136 "computed": false, 137 "key": { 138 "type": "Identifier", 139 "name": "a", 140 "decorators": [], 141 "loc": { 142 "start": { 143 "line": 17, 144 "column": 9 145 }, 146 "end": { 147 "line": 17, 148 "column": 10 149 } 150 } 151 }, 152 "value": { 153 "type": "StringLiteral", 154 "value": "foo", 155 "loc": { 156 "start": { 157 "line": 17, 158 "column": 13 159 }, 160 "end": { 161 "line": 17, 162 "column": 18 163 } 164 } 165 }, 166 "kind": "init", 167 "loc": { 168 "start": { 169 "line": 17, 170 "column": 9 171 }, 172 "end": { 173 "line": 17, 174 "column": 18 175 } 176 } 177 } 178 ], 179 "loc": { 180 "start": { 181 "line": 17, 182 "column": 8 183 }, 184 "end": { 185 "line": 17, 186 "column": 19 187 } 188 } 189 }, 190 "loc": { 191 "start": { 192 "line": 17, 193 "column": 1 194 }, 195 "end": { 196 "line": 17, 197 "column": 20 198 } 199 } 200 }, 201 "loc": { 202 "start": { 203 "line": 17, 204 "column": 1 205 }, 206 "end": { 207 "line": 17, 208 "column": 20 209 } 210 } 211 } 212 ], 213 "loc": { 214 "start": { 215 "line": 1, 216 "column": 1 217 }, 218 "end": { 219 "line": 19, 220 "column": 1 221 } 222 } 223} 224TypeError: Type 'string' is not assignable to type 'number'. [objectDestructuring30.ts:17:3] 225