1.0.0 • Published 4 years ago
thenable-reject v1.0.0
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) })
1.0.0
4 years ago