hexo/node_modules/atomically/dist/utils/attemptify.d.ts

5 lines
285 B
TypeScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
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 };