UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

7 lines (6 loc) 166 B
/** * Returns a promise that resolves to an error. * * @param err Error instance or reason. */ export default function fail(err: Error | string): Promise<Error>;