{ "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": [ { "type": "ObjectPattern", "properties": [ { "type": "Property", "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 17 } } }, "value": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 17 } } }, "kind": "init", "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 17 } } }, { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 20 } } }, "value": { "type": "AssignmentPattern", "left": { "type": "ObjectPattern", "properties": [ { "type": "Property", "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "name": "t", "decorators": [], "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 25 } } }, "value": { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "t", "decorators": [], "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 25 } } }, "right": { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 17, "column": 33 } } }, "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 33 } } }, "kind": "init", "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 33 } } } ], "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 35 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "t", "decorators": [], "loc": { "start": { "line": 17, "column": 40 }, "end": { "line": 17, "column": 41 } } }, "value": { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 17, "column": 43 }, "end": { "line": 17, "column": 44 } } }, "kind": "init", "loc": { "start": { "line": 17, "column": 40 }, "end": { "line": 17, "column": 44 } } } ], "loc": { "start": { "line": 17, "column": 38 }, "end": { "line": 17, "column": 46 } } }, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 46 } } }, "kind": "init", "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 46 } } }, { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "d", "decorators": [], "loc": { "start": { "line": 17, "column": 48 }, "end": { "line": 17, "column": 49 } } }, "value": { "type": "AssignmentPattern", "left": { "type": "ArrayPattern", "elements": [ { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 53 } } }, "right": { "type": "ObjectExpression", "properties": [], "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 17, "column": 58 } } }, "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 58 } } }, { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "f", "decorators": [], "loc": { "start": { "line": 17, "column": 60 }, "end": { "line": 17, "column": 61 } } }, "right": { "type": "NumberLiteral", "value": 6, "loc": { "start": { "line": 17, "column": 64 }, "end": { "line": 17, "column": 65 } } }, "loc": { "start": { "line": 17, "column": 60 }, "end": { "line": 17, "column": 65 } } } ], "loc": { "start": { "line": 17, "column": 51 }, "end": { "line": 17, "column": 66 } } }, "right": { "type": "ArrayExpression", "elements": [ { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 17, "column": 70 }, "end": { "line": 17, "column": 71 } } }, { "type": "ArrayExpression", "elements": [ { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 17, "column": 74 }, "end": { "line": 17, "column": 79 } } }, { "type": "StringLiteral", "value": "bar", "loc": { "start": { "line": 17, "column": 81 }, "end": { "line": 17, "column": 86 } } } ], "loc": { "start": { "line": 17, "column": 73 }, "end": { "line": 17, "column": 87 } } } ], "loc": { "start": { "line": 17, "column": 69 }, "end": { "line": 17, "column": 88 } } }, "loc": { "start": { "line": 17, "column": 51 }, "end": { "line": 17, "column": 88 } } }, "kind": "init", "loc": { "start": { "line": 17, "column": 48 }, "end": { "line": 17, "column": 88 } } } ], "loc": { "start": { "line": 17, "column": 14 }, "end": { "line": 17, "column": 90 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 17, "column": 92 }, "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 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 21, "column": 4 } } }, "arguments": [ { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 8 } } }, "value": { "type": "BooleanLiteral", "value": false, "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 15 } } }, "kind": "init", "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 15 } } }, { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 21, "column": 17 }, "end": { "line": 21, "column": 18 } } }, "value": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "t", "decorators": [], "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 23 } } }, "value": { "type": "NumberLiteral", "value": 7, "loc": { "start": { "line": 21, "column": 25 }, "end": { "line": 21, "column": 26 } } }, "kind": "init", "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 26 } } } ], "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 28 } } }, "kind": "init", "loc": { "start": { "line": 21, "column": 17 }, "end": { "line": 21, "column": 28 } } }, { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "d", "decorators": [], "loc": { "start": { "line": 21, "column": 30 }, "end": { "line": 21, "column": 31 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 21, "column": 34 }, "end": { "line": 21, "column": 35 } } }, { "type": "BigIntLiteral", "value": "5", "loc": { "start": { "line": 21, "column": 37 }, "end": { "line": 21, "column": 39 } } } ], "loc": { "start": { "line": 21, "column": 33 }, "end": { "line": 21, "column": 40 } } }, "kind": "init", "loc": { "start": { "line": 21, "column": 30 }, "end": { "line": 21, "column": 40 } } } ], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 42 } } } ], "optional": false, "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 21, "column": 43 } } }, "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 21, "column": 44 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 22, "column": 1 } } } TypeError: Type 'bigint' is not assignable to type 'string[]'. [functionWithPattern7.ts:21:37]