index.d.ts 479 B

12345678910111213
  1. declare module 'totalist' {
  2. import { Stats } from 'fs';
  3. export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
  4. function totalist(dir: string, callback: Caller, prefix?: string): Promise<void>;
  5. export = totalist;
  6. }
  7. declare module 'totalist/sync' {
  8. import { Stats } from 'fs';
  9. export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
  10. function totalist(dir: string, callback: Caller, prefix?: string): void;
  11. export = totalist;
  12. }