UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

28 lines (22 loc) 1.32 kB
// 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; } }