Creates a new rejected promise for the provided reason.
A new rejected Promise.
Optional
The reason the promise was rejected.
Generated using TypeDoc
Creates a new rejected promise for the provided reason.
Returns
A new rejected Promise.