UNPKG

@hopeio/utils

Version:
8 lines (7 loc) 402 B
import { Dirent } from 'fs'; type RangeCallback = (dir: string, name: string, path: string) => void; export declare function range(dir: string, callback: RangeCallback): void; type SyncCallback = (name: string, path: string, dst: string) => void; type Filter = (file: Dirent) => boolean; export declare function sync(src: string, dst: string, callback: SyncCallback, filter?: Filter): void; export {};