DefinitelyTyped/types/mv/index.d.ts
Miloslav Nenadal a5b9018939 [mv]: Add types
2017-08-29 15:40:13 +02:00

24 lines
538 B
TypeScript

// Type definitions for mv 2.1
// Project: https://github.com/andrewrk/node-mv
// Definitions by: Miloslav Nenadál <https://github.com/nenadalm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Options {
mkdirp?: boolean;
clobber?: boolean;
}
interface Mv {
(
src: string,
dest: string,
options: Options,
callback: (error: any) => void
): void;
(src: string, dest: string, callback: (error: any) => void): void;
}
declare const inst: Mv;
export = inst;