Files
DefinitelyTyped/types/move-file/index.d.ts
T
2018-12-10 21:14:21 +01:00

21 lines
549 B
TypeScript

// Type definitions for move-file 1.0
// Project: https://github.com/sindresorhus/move-file#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = moveFile;
declare function moveFile(
source: string,
destination: string,
options?: moveFile.Options
): Promise<void>;
declare namespace moveFile {
function sync(source: string, destination: string, options?: Options): void;
interface Options {
overwrite?: boolean;
}
}