mirror of https://github.com/jkjoy/sunpeiwen.git
5 lines
285 B
TypeScript
5 lines
285 B
TypeScript
import { Exception, FN } from '../types';
|
|
declare const attemptifyAsync: <T extends FN<any[], any>>(fn: T, onError?: FN<[Exception]>) => T;
|
|
declare const attemptifySync: <T extends FN<any[], any>>(fn: T, onError?: FN<[Exception]>) => T;
|
|
export { attemptifyAsync, attemptifySync };
|