Newer
Older
alert / js / node_modules / totalist / index.d.ts
@Réz István Réz István on 18 Nov 2021 479 bytes first commit
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;
}