1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "func", 12 "typeAnnotation": { 13 "type": "TSTypeLiteral", 14 "members": [ 15 { 16 "type": "TSCallSignatureDeclaration", 17 "params": [ 18 { 19 "type": "Identifier", 20 "name": "a", 21 "typeAnnotation": { 22 "type": "TSNumberKeyword", 23 "loc": { 24 "start": { 25 "line": 17, 26 "column": 17 27 }, 28 "end": { 29 "line": 17, 30 "column": 23 31 } 32 } 33 }, 34 "decorators": [], 35 "loc": { 36 "start": { 37 "line": 17, 38 "column": 14 39 }, 40 "end": { 41 "line": 17, 42 "column": 15 43 } 44 } 45 }, 46 { 47 "type": "RestElement", 48 "argument": { 49 "type": "Identifier", 50 "name": "c", 51 "decorators": [], 52 "loc": { 53 "start": { 54 "line": 17, 55 "column": 28 56 }, 57 "end": { 58 "line": 17, 59 "column": 29 60 } 61 } 62 }, 63 "loc": { 64 "start": { 65 "line": 17, 66 "column": 25 67 }, 68 "end": { 69 "line": 17, 70 "column": 29 71 } 72 } 73 } 74 ], 75 "returnType": { 76 "type": "TSBooleanKeyword", 77 "loc": { 78 "start": { 79 "line": 17, 80 "column": 32 81 }, 82 "end": { 83 "line": 17, 84 "column": 39 85 } 86 } 87 }, 88 "loc": { 89 "start": { 90 "line": 17, 91 "column": 13 92 }, 93 "end": { 94 "line": 17, 95 "column": 40 96 } 97 } 98 }, 99 { 100 "type": "TSCallSignatureDeclaration", 101 "params": [ 102 { 103 "type": "Identifier", 104 "name": "a", 105 "typeAnnotation": { 106 "type": "TSAnyKeyword", 107 "loc": { 108 "start": { 109 "line": 17, 110 "column": 45 111 }, 112 "end": { 113 "line": 17, 114 "column": 48 115 } 116 } 117 }, 118 "decorators": [], 119 "loc": { 120 "start": { 121 "line": 17, 122 "column": 42 123 }, 124 "end": { 125 "line": 17, 126 "column": 43 127 } 128 } 129 }, 130 { 131 "type": "Identifier", 132 "name": "b", 133 "typeAnnotation": { 134 "type": "TSArrayType", 135 "elementType": { 136 "type": "TSStringKeyword", 137 "loc": { 138 "start": { 139 "line": 17, 140 "column": 53 141 }, 142 "end": { 143 "line": 17, 144 "column": 59 145 } 146 } 147 }, 148 "loc": { 149 "start": { 150 "line": 17, 151 "column": 53 152 }, 153 "end": { 154 "line": 17, 155 "column": 61 156 } 157 } 158 }, 159 "decorators": [], 160 "loc": { 161 "start": { 162 "line": 17, 163 "column": 50 164 }, 165 "end": { 166 "line": 17, 167 "column": 51 168 } 169 } 170 }, 171 { 172 "type": "RestElement", 173 "argument": { 174 "type": "Identifier", 175 "name": "c", 176 "typeAnnotation": { 177 "type": "TSArrayType", 178 "elementType": { 179 "type": "TSNumberKeyword", 180 "loc": { 181 "start": { 182 "line": 17, 183 "column": 69 184 }, 185 "end": { 186 "line": 17, 187 "column": 75 188 } 189 } 190 }, 191 "loc": { 192 "start": { 193 "line": 17, 194 "column": 69 195 }, 196 "end": { 197 "line": 17, 198 "column": 77 199 } 200 } 201 }, 202 "decorators": [], 203 "loc": { 204 "start": { 205 "line": 17, 206 "column": 66 207 }, 208 "end": { 209 "line": 17, 210 "column": 67 211 } 212 } 213 }, 214 "loc": { 215 "start": { 216 "line": 17, 217 "column": 63 218 }, 219 "end": { 220 "line": 17, 221 "column": 67 222 } 223 } 224 } 225 ], 226 "returnType": { 227 "type": "TSStringKeyword", 228 "loc": { 229 "start": { 230 "line": 17, 231 "column": 80 232 }, 233 "end": { 234 "line": 17, 235 "column": 86 236 } 237 } 238 }, 239 "loc": { 240 "start": { 241 "line": 17, 242 "column": 41 243 }, 244 "end": { 245 "line": 17, 246 "column": 87 247 } 248 } 249 }, 250 { 251 "type": "TSCallSignatureDeclaration", 252 "params": [ 253 { 254 "type": "Identifier", 255 "name": "a", 256 "typeAnnotation": { 257 "type": "TSNumberKeyword", 258 "loc": { 259 "start": { 260 "line": 17, 261 "column": 92 262 }, 263 "end": { 264 "line": 17, 265 "column": 98 266 } 267 } 268 }, 269 "decorators": [], 270 "loc": { 271 "start": { 272 "line": 17, 273 "column": 89 274 }, 275 "end": { 276 "line": 17, 277 "column": 90 278 } 279 } 280 }, 281 { 282 "type": "Identifier", 283 "name": "b", 284 "typeAnnotation": { 285 "type": "TSBooleanKeyword", 286 "loc": { 287 "start": { 288 "line": 17, 289 "column": 103 290 }, 291 "end": { 292 "line": 17, 293 "column": 110 294 } 295 } 296 }, 297 "decorators": [], 298 "loc": { 299 "start": { 300 "line": 17, 301 "column": 100 302 }, 303 "end": { 304 "line": 17, 305 "column": 101 306 } 307 } 308 } 309 ], 310 "returnType": { 311 "type": "TSNumberKeyword", 312 "loc": { 313 "start": { 314 "line": 17, 315 "column": 113 316 }, 317 "end": { 318 "line": 17, 319 "column": 119 320 } 321 } 322 }, 323 "loc": { 324 "start": { 325 "line": 17, 326 "column": 88 327 }, 328 "end": { 329 "line": 17, 330 "column": 121 331 } 332 } 333 } 334 ], 335 "loc": { 336 "start": { 337 "line": 17, 338 "column": 11 339 }, 340 "end": { 341 "line": 17, 342 "column": 121 343 } 344 } 345 }, 346 "decorators": [], 347 "loc": { 348 "start": { 349 "line": 17, 350 "column": 5 351 }, 352 "end": { 353 "line": 17, 354 "column": 9 355 } 356 } 357 }, 358 "init": null, 359 "loc": { 360 "start": { 361 "line": 17, 362 "column": 5 363 }, 364 "end": { 365 "line": 17, 366 "column": 9 367 } 368 } 369 } 370 ], 371 "kind": "var", 372 "loc": { 373 "start": { 374 "line": 17, 375 "column": 1 376 }, 377 "end": { 378 "line": 17, 379 "column": 122 380 } 381 } 382 }, 383 { 384 "type": "ExpressionStatement", 385 "expression": { 386 "type": "CallExpression", 387 "callee": { 388 "type": "Identifier", 389 "name": "func", 390 "decorators": [], 391 "loc": { 392 "start": { 393 "line": 18, 394 "column": 1 395 }, 396 "end": { 397 "line": 18, 398 "column": 5 399 } 400 } 401 }, 402 "arguments": [], 403 "optional": false, 404 "loc": { 405 "start": { 406 "line": 18, 407 "column": 1 408 }, 409 "end": { 410 "line": 18, 411 "column": 7 412 } 413 } 414 }, 415 "loc": { 416 "start": { 417 "line": 18, 418 "column": 1 419 }, 420 "end": { 421 "line": 18, 422 "column": 8 423 } 424 } 425 } 426 ], 427 "loc": { 428 "start": { 429 "line": 1, 430 "column": 1 431 }, 432 "end": { 433 "line": 19, 434 "column": 1 435 } 436 } 437} 438TypeError: Expected at least 1 arguments, but got 0. [functionCall_15.ts:18:1] 439