Skip to content

Consider relaxing thenReject to accept types other than Error  #510

@iliocatallo

Description

@iliocatallo

Description

In a TypeScript code base, thenReject() only accepts Errors.

Issue

It would be nice to allow for different types of rejected values – along the lines of this JavaScript example in the official docs.

Thanks,
Ilio.

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