mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
first batch: the easy pickings - as per https://github.com/borisyankov/DefinitelyTyped/issues/115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
37 lines
869 B
TypeScript
37 lines
869 B
TypeScript
/// <reference path="wrench.d.ts" />
|
|
|
|
import wrench = require('wrench');
|
|
|
|
var str: string;
|
|
var num: number;
|
|
var bool: boolean;
|
|
var strArr: string[];
|
|
var line: wrench.LineReader;
|
|
|
|
strArr = wrench.readdirSyncRecursive(str);
|
|
wrench.rmdirSyncRecursive(str);
|
|
wrench.rmdirSyncRecursive(str, bool);
|
|
wrench.copyDirSyncRecursive(str, str);
|
|
wrench.copyDirSyncRecursive(str, str, {
|
|
preserve: bool
|
|
});
|
|
wrench.chmodSyncRecursive(str, num);
|
|
wrench.chownSyncRecursive(str, num, num);
|
|
wrench.mkdirSyncRecursivefunction(str, num);
|
|
wrench.readdirRecursive(str, (err: Error, files: string[]) => {
|
|
|
|
});
|
|
wrench.rmdirRecursive(str, (err: Error) => {
|
|
|
|
});
|
|
wrench.copyDirRecursive(str, str, (err: Error) => {
|
|
|
|
});
|
|
|
|
line = new wrench.LineReader(str);
|
|
line = new wrench.LineReader(str, num);
|
|
|
|
str = line.getNextLine();
|
|
bool = line.hasNextLine();
|
|
num = line.getBufferAndSetCurrentPosition(num);
|