mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
28 lines
1.3 KiB
TypeScript
28 lines
1.3 KiB
TypeScript
// 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;
|
|
}
|
|
}
|