UNPKG

@types/wrench

Version:
44 lines (34 loc) 1.77 kB
# Installation > `npm install --save @types/wrench` # Summary This package contains type definitions for wrench (https://github.com/ryanmcgrath/wrench-js). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrench. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrench/index.d.ts) ````ts // Imported from: https://github.com/soywiz/typescript-node-definitions/wrench.d.ts export declare function readdirSyncRecursive(baseDir: string): string[]; export declare function rmdirSyncRecursive(path: string, failSilent?: boolean): void; export declare function copyDirSyncRecursive( sourceDir: string, newDirLocation: string, opts?: { preserve?: boolean | undefined }, ): void; export declare function chmodSyncRecursive(sourceDir: string, filemode: number): void; export declare function chownSyncRecursive(sourceDir: string, uid: number, gid: number): void; export declare function mkdirSyncRecursive(path: string, mode: number): void; export declare function readdirRecursive(baseDir: string, fn: (err: Error, files: string[]) => void): void; export declare function rmdirRecursive(path: string, fn: (err: Error) => void): void; export declare function copyDirRecursive(srcDir: string, newDir: string, fn: (err: Error) => void): void; export declare class LineReader { constructor(filename: string, bufferSize?: number); getBufferAndSetCurrentPosition(position: number): number; hasNextLine(): boolean; getNextLine(): string; } ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: none # Credits These definitions were written by [Carlos Ballesteros Velasco](https://github.com/soywiz).