Skip to content

Lint error with TypeScript #35

Description

@royalpinto

Using the async handler with this lib leads to the following lint error as the return type of async handler is a Promise<> and the expected one is just a void.

Error Message:

Promise returned in function argument where a void return was expected. (@typescript-eslint/no-misused-promises)

I am not sure if the type definition of the express handler can be changed in this lib's definitions. Create a ticket just in case if it's possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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