forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrench.d.ts
27 lines (22 loc) · 1.29 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
23
24
25
26
27
// Type definitions for wrench
// Project: https://github.com/ryanmcgrath/wrench-js
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/wrench.d.ts
declare module "wrench" {
export function readdirSyncRecursive(baseDir: string): string[];
export function rmdirSyncRecursive(path: string, failSilent?: boolean): void;
export function copyDirSyncRecursive(sourceDir: string, newDirLocation: string, opts?: { preserve?: boolean; }): void;
export function chmodSyncRecursive(sourceDir: string, filemode: number): void;
export function chownSyncRecursive(sourceDir: string, uid: number, gid: number): void;
export function mkdirSyncRecursive(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(): boolean;
getNextLine(): string;
}
}