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