securityos/node_modules/totalist/index.d.ts

14 lines
479 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
declare module 'totalist' {
import { Stats } from 'fs';
export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
function totalist(dir: string, callback: Caller, prefix?: string): Promise<void>;
export = totalist;
}
declare module 'totalist/sync' {
import { Stats } from 'fs';
export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
function totalist(dir: string, callback: Caller, prefix?: string): void;
export = totalist;
}