UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

13 lines (12 loc) 381 B
import { GeneralFunction } from "../types"; /** * create try functions wrapper * * the wrapper will try runners one by one, return the successful value, or the last error * * @since 5.18.0 * @category Fallback * @param runners runners functions */ export declare function toTry<R>(...runners: Array<GeneralFunction<any[], R>>): (...args: any[]) => R; export default toTry;