thenable-reject
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

thenable-reject

It's like Promise.reject except it doesn't bother you with unhandled Promise rejection error in case you need to postpone a bit handling that rejection.

Typescript typings included.

Source:

export default error => ({ then: (onresolve, onreject) => onreject(error) })

/thenable-reject/

    Package Sidebar

    Install

    npm i thenable-reject

    Weekly Downloads

    455

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.48 kB

    Total Files

    14

    Last publish

    Collaborators

    • vadzim