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