You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
479 B
14 lines
479 B
3 years ago
|
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;
|
||
|
}
|