cpr.d.ts 398 B

123456789101112131415
  1. /**
  2. * Nodejs cp -R
  3. */
  4. declare module "cpr" {
  5. function cpr (from: string, to: string, options?: cpr.CprOptions, callback?: (err: any, files: string[]) => void): void;
  6. namespace cpr {
  7. interface CprOptions {
  8. deleteFirst?: boolean;
  9. overwrite?: boolean;
  10. confirm?: boolean;
  11. filter?: RegExp | Function;
  12. }
  13. }
  14. export = cpr;
  15. }