@types/copyfiles
Version:
TypeScript definitions for copyfiles
53 lines (44 loc) • 1.81 kB
Markdown
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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/copyfiles/index.d.ts)
````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;
````
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Dependencies: none
These definitions were written by [Florian Keller](https://github.com/ffflorian), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
> `npm install --save @types/copyfiles`