Revert "refactor(fs-extra): remove redundant types"

This reverts commit 3a344fb28e.
This commit is contained in:
Alan Agius
2017-05-17 23:10:58 +02:00
parent 3a344fb28e
commit 7796afc8e0
+5 -1
View File
@@ -258,6 +258,10 @@ export interface PathEntryStream {
read(): PathEntry | null;
}
export type CopyFilterFunction = (src: string) => boolean;
export type CopyFilter = CopyFilterFunction | RegExp;
export type SymlinkType = "dir" | "file";
export interface CopyOptions {
@@ -265,7 +269,7 @@ export interface CopyOptions {
overwrite?: boolean;
preserveTimestamps?: boolean;
errorOnExist?: boolean;
filter?: ((src: string) => boolean) | RegExp;
filter?: CopyFilter;
recursive?: boolean;
}