{ "type": "Program", "statements": [ { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "func", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 16 } } } ], "returnType": { "type": "TSVoidKeyword", "loc": { "start": { "line": 17, "column": 29 }, "end": { "line": 17, "column": 33 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 17, "column": 34 }, "end": { "line": 17, "column": 37 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 37 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 37 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "func", "decorators": [], "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 5 } } }, "arguments": [ { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 7 } } }, { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 10 } } } ], "optional": false, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 11 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 12 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 18, "column": 12 } } } TypeError: Expected 1 arguments, but got 2. [functionCall_3.ts:18:9]