mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
fix(fs-extra): ensureSymlink and ensureLink should accept more params
This commit is contained in:
@@ -167,16 +167,16 @@ fs.ensureFile(path).then(() => {
|
||||
});
|
||||
fs.ensureFile(path, errorCallback);
|
||||
fs.ensureFileSync(path);
|
||||
fs.ensureLink(path).then(() => {
|
||||
fs.ensureLink(path, path).then(() => {
|
||||
// stub
|
||||
});
|
||||
fs.ensureLink(path, errorCallback);
|
||||
fs.ensureLinkSync(path);
|
||||
fs.ensureSymlink(path).then(() => {
|
||||
fs.ensureLink(path, path, errorCallback);
|
||||
fs.ensureLinkSync(path, path);
|
||||
fs.ensureSymlink(path, path).then(() => {
|
||||
// stub
|
||||
});
|
||||
fs.ensureSymlink(path, errorCallback);
|
||||
fs.ensureSymlinkSync(path);
|
||||
fs.ensureSymlink(path, path, errorCallback);
|
||||
fs.ensureSymlinkSync(path, path);
|
||||
fs.emptyDir(path).then(() => {
|
||||
// stub
|
||||
});
|
||||
|
||||
Vendored
+7
-6
@@ -79,13 +79,14 @@ export function ensureFile(path: string): Promise<void>;
|
||||
export function ensureFile(path: string, callback: (err: Error) => void): void;
|
||||
export function ensureFileSync(path: string): void;
|
||||
|
||||
export function ensureLink(path: string): Promise<void>;
|
||||
export function ensureLink(path: string, callback: (err: Error) => void): void;
|
||||
export function ensureLinkSync(path: string): void;
|
||||
export function ensureLink(src: string, dest: string): Promise<void>;
|
||||
export function ensureLink(src: string, dest: string, callback: (err: Error) => void): void;
|
||||
export function ensureLinkSync(src: string, dest: string): void;
|
||||
|
||||
export function ensureSymlink(path: string): Promise<void>;
|
||||
export function ensureSymlink(path: string, callback: (err: Error) => void): void;
|
||||
export function ensureSymlinkSync(path: string): void;
|
||||
export function ensureSymlink(src: string, dest: string, type?: string): Promise<void>;
|
||||
export function ensureSymlink(src: string, dest: string, type: string, callback: (err: Error) => void): void;
|
||||
export function ensureSymlink(src: string, dest: string, callback: (err: Error) => void): void;
|
||||
export function ensureSymlinkSync(src: string, dest: string, type?: string): void;
|
||||
|
||||
export function emptyDir(path: string): Promise<void>;
|
||||
export function emptyDir(path: string, callback: (err: Error) => void): void;
|
||||
|
||||
Reference in New Issue
Block a user