@types/copyfiles
TypeScript icon, indicating that this package has built-in type declarations

2.4.4 • Public • Published

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

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 | readonly 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: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

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

Readme

Keywords

none

Package Sidebar

Install

npm i @types/copyfiles

Weekly Downloads

15,357

Version

2.4.4

License

MIT

Unpacked Size

5.06 kB

Total Files

5

Last publish

Collaborators

  • types