-
Notifications
You must be signed in to change notification settings - Fork 92
/
wrench.d.ts
22 lines (18 loc) · 1.04 KB
/
wrench.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// https://github.com/ryanmcgrath/wrench-js
declare module "wrench" {
export function readdirSyncRecursive(baseDir: string): string[];
export function rmdirSyncRecursive(path: string, failSilent?: bool);
export function copyDirSyncRecursive(sourceDir: string, newDirLocation: string, opts: { preserve?: bool; }): void;
export function chmodSyncRecursive(sourceDir: string, filemode: number): void;
export function chownSyncRecursive(sourceDir: string, uid: any, gid: any): void;
export function mkdirSyncRecursivefunction(path: string, mode: number): void;
export function readdirRecursive(baseDir: string, fn: (err: Error, files: string[]) => void): void;
export function rmdirRecursive(path: string, fn: (err: Error) => void): void;
export function copyDirRecursive(srcDir: string, newDir: string, fn: (err: Error) => void): void;
export class LineReader {
constructor (filename: string, bufferSize?: number);
getBufferAndSetCurrentPosition(position: number): number;
hasNextLine(): bool;
getNextLine(): string;
}
}