mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
24 lines
394 B
TypeScript
24 lines
394 B
TypeScript
/// <reference path="fs-mock.d.ts" />
|
|
|
|
import FS = require("fs-mock");
|
|
|
|
var fs: FS = new FS({
|
|
'Users': {
|
|
'David': {
|
|
'password.txt': 'my super password'
|
|
}
|
|
}
|
|
}, {
|
|
windows: true
|
|
});
|
|
|
|
var fsopts: FS.Opts = {
|
|
windows: true,
|
|
drives: ["A", "B"],
|
|
root: "/"
|
|
};
|
|
|
|
fs.rename("/a/b.txt", "/a/c/txt", (err?: Error): void => {
|
|
// nothing
|
|
});
|