From e3885ed339aaa8b4fdf4a4380416c8d70b6929ef Mon Sep 17 00:00:00 2001 From: Kevin Smathers Date: Sat, 24 Dec 2016 04:55:40 -0500 Subject: [PATCH] Add moveAsync definition (#13019) --- fs-extra-promise/fs-extra-promise-tests.ts | 2 ++ fs-extra-promise/index.d.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fs-extra-promise/fs-extra-promise-tests.ts b/fs-extra-promise/fs-extra-promise-tests.ts index 51ae5b1140..112a27109c 100644 --- a/fs-extra-promise/fs-extra-promise-tests.ts +++ b/fs-extra-promise/fs-extra-promise-tests.ts @@ -62,6 +62,8 @@ fs.mkdirsSync(dir); fs.mkdirp(dir, errorCallback); fs.mkdirpSync(dir); +fs.move(src, dest, errorCallback); + fs.outputFile(file, data, errorCallback); fs.outputFileSync(file, data); fs.outputJson(file, data, errorCallback); diff --git a/fs-extra-promise/index.d.ts b/fs-extra-promise/index.d.ts index 871105f769..e04f0f0688 100644 --- a/fs-extra-promise/index.d.ts +++ b/fs-extra-promise/index.d.ts @@ -10,7 +10,7 @@ import * as stream from 'stream'; import { Stats } from 'fs'; import * as Promise from 'bluebird'; -import { CopyFilter, CopyOptions, OpenOptions, MkdirOptions } from 'fs-extra'; +import { CopyFilter, CopyOptions, OpenOptions, MkdirOptions, MoveOptions } from 'fs-extra'; export * from 'fs-extra'; @@ -24,6 +24,8 @@ export declare function createFileAsync(file: string): Promise; export declare function mkdirsAsync(dir: string, options?: MkdirOptions): Promise; export declare function mkdirpAsync(dir: string, options?: MkdirOptions): Promise; +export declare function moveAsync(src: string, dest: string, options?: MoveOptions): Promise; + export declare function outputFileAsync(file: string, data: any): Promise; export declare function outputJsonAsync(file: string, data: any): Promise;