{ "type": "Program", "statements": [ { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "TSBigIntKeyword", "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BooleanLiteral", "value": false, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 13 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 14 } } } ], "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 19, "column": 2 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 20, "column": 1 } } } TypeError: Type 'boolean' is not assignable to type 'bigint'. [function_declaration_8.ts:18:1]