mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
4
mock-fs/index.d.ts
vendored
4
mock-fs/index.d.ts
vendored
@@ -6,7 +6,7 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
|
||||
import fs = require("fs");
|
||||
import nodefs = require("fs");
|
||||
|
||||
declare function mock(config?: mock.Config, options?: mock.Options): void;
|
||||
|
||||
@@ -17,7 +17,7 @@ declare namespace mock {
|
||||
|
||||
function restore(): void;
|
||||
|
||||
function fs(config?: Config, options?: Options): typeof fs;
|
||||
function fs(config?: Config, options?: Options): typeof nodefs;
|
||||
|
||||
interface Config {
|
||||
[path: string]: string | Buffer | File | Directory | Symlink | Config;
|
||||
|
||||
Reference in New Issue
Block a user