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) })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    565
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    565

Package Sidebar

Install

npm i thenable-reject

Weekly Downloads

510

Version

1.0.0

License

MIT

Unpacked Size

4.48 kB

Total Files

14

Last publish

Collaborators

  • vadzim