mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
feat(fs extra): update APi to match fs-extra 5.0.0
This commit is contained in:
@@ -52,17 +52,9 @@ fs.copy(src, dest,
|
||||
},
|
||||
errorCallback
|
||||
);
|
||||
fs.copy(src, dest,
|
||||
{
|
||||
overwrite: true,
|
||||
preserveTimestamps: true,
|
||||
filter: /.*/
|
||||
},
|
||||
errorCallback
|
||||
);
|
||||
|
||||
fs.copySync(src, dest);
|
||||
fs.copySync(src, dest, { filter: (src: string, dest: string) => false });
|
||||
fs.copySync(src, dest, { filter: /.*/ });
|
||||
fs.copySync(src, dest,
|
||||
{
|
||||
overwrite: true,
|
||||
@@ -70,13 +62,7 @@ fs.copySync(src, dest,
|
||||
filter: (src: string, dest: string) => false
|
||||
}
|
||||
);
|
||||
fs.copySync(src, dest,
|
||||
{
|
||||
overwrite: true,
|
||||
preserveTimestamps: true,
|
||||
filter: /.*/
|
||||
}
|
||||
);
|
||||
|
||||
fs.createFile(file).then(() => {
|
||||
// stub
|
||||
});
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for fs-extra 4.0
|
||||
// Type definitions for fs-extra 5.0
|
||||
// Project: https://github.com/jprichardson/node-fs-extra
|
||||
// Definitions by: Alan Agius <https://github.com/alan-agius4>,
|
||||
// midknight41 <https://github.com/midknight41>,
|
||||
@@ -254,7 +254,7 @@ export interface PathEntryStream {
|
||||
read(): PathEntry | null;
|
||||
}
|
||||
|
||||
export type CopyFilter = ((src: string, dest: string) => boolean) | RegExp;
|
||||
export type CopyFilter = (src: string, dest: string) => boolean;
|
||||
|
||||
export type SymlinkType = "dir" | "file";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user