Skip to content

function expects 2 arguments, but 1 supplied #1690

Description

@Please-just-dont

I have a function that looks like this:

function decorateFunctionName(name: string, isStarting: boolean = true)

And calling it with one argument gives:


function expects 2 arguments, but 1 supplied
    decorateFunctionName(func_name);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions