Skip to content

[@types/express-serve-static-core] async handlers typings #50871

@jlowcs

Description

@jlowcs

I tried bumping @types/express-serve-static-core to the latest version but the changes to the return type of handlers (to void) introduced a typing error for async handlers.

Should we instead go with a void | Promise<void> return type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions