attemptify.d.ts 281 B

12345
  1. import { Exception, FN } from '../types';
  2. declare const attemptifyAsync: <T extends FN<any[], any>>(fn: T, onError?: FN<[Exception]>) => T;
  3. declare const attemptifySync: <T extends FN<any[], any>>(fn: T, onError?: FN<[Exception]>) => T;
  4. export { attemptifyAsync, attemptifySync };