mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
23 lines
333 B
TypeScript
23 lines
333 B
TypeScript
|
|
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
|
|
});
|