mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +00:00
Add moveAsync definition (#13019)
This commit is contained in:
parent
a6f263d331
commit
e3885ed339
@ -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);
|
||||
|
||||
4
fs-extra-promise/index.d.ts
vendored
4
fs-extra-promise/index.d.ts
vendored
@ -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<void>;
|
||||
export declare function mkdirsAsync(dir: string, options?: MkdirOptions): Promise<void>;
|
||||
export declare function mkdirpAsync(dir: string, options?: MkdirOptions): Promise<void>;
|
||||
|
||||
export declare function moveAsync(src: string, dest: string, options?: MoveOptions): Promise<void>;
|
||||
|
||||
export declare function outputFileAsync(file: string, data: any): Promise<void>;
|
||||
|
||||
export declare function outputJsonAsync(file: string, data: any): Promise<void>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user