Skip to content

Functions declaring this as first argument should not be converted #63

@smartinio

Description

@smartinio

Description

Some custom userland functions that are ultimately passed back into a library are sometimes required to be methods with this declared as first arg for correct types, regardless of whether this is needed by the userland function body. One such example is fastify's app.setErrorHandler(fn) (5.1.0)

Suggested Solution

Do not convert functions where the first argument is this

Help Needed

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions