Files
pixelheros/extensions/Excel转JSON/node_modules/atomically/dist/utils/attemptify.d.ts
walkpan 8f57f57c1d dd
2024-08-18 23:38:55 +08:00

5 lines
281 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 };