2.4.4 • Published 6 months ago

@types/copyfiles v2.4.4

Weekly downloads
18,837
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/copyfiles

Summary

This package contains type definitions for copyfiles (https://github.com/calvinmetcalf/copyfiles#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/copyfiles.

index.d.ts

// Type definitions for copyfiles 2.4
// Project: https://github.com/calvinmetcalf/copyfiles#readme
// Definitions by: Florian Keller <https://github.com/ffflorian>
//                 Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace copyfiles {
    interface Options {
        /** include files & directories beginning with a dot (.) */
        all?: boolean | undefined;
        /** throw error if nothing is copied */
        error?: boolean | undefined;
        /** pattern or glob to exclude */
        exclude?: string | ReadonlyArray<string> | undefined;
        /** flatten the output */
        flat?: boolean | undefined;
        /**
         * follow symbolink links
         * @default false
         */
        follow?: boolean | undefined;
        /** do not overwrite destination files if they exist */
        soft?: boolean | undefined;
        /**
         * slice a path off the bottom of the paths
         * @default 0
         */
        up?: number | true | undefined;
        /** print more information to console */
        verbose?: boolean | undefined;
    }

    type Callback = (error?: Error) => void;
}

declare function copyfiles(paths: string[], options: copyfiles.Options | number, callback: copyfiles.Callback): void;
declare function copyfiles(paths: string[], callback: copyfiles.Callback): void;

export = copyfiles;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:14 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Florian Keller, and Piotr Błażejewicz.