Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
c944a273d0
commit
472c07c0a8
3 changed files with 11 additions and 4 deletions
8
src/@types/cpx.d.ts
vendored
8
src/@types/cpx.d.ts
vendored
|
@ -15,12 +15,16 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import "cpx";
|
||||
import type EventEmitter from "events";
|
||||
|
||||
declare module "cpx" {
|
||||
export class Cpx extends EventEmitter {
|
||||
export class Cpx {
|
||||
public constructor(source: string, outDir: string, options?: object);
|
||||
|
||||
public on(eventName: "copy", fn: (event: { srcPath: string; dstPath: string }) => void): void;
|
||||
public on(eventName: "remove", fn: (event: { path: string }) => void): void;
|
||||
public on(eventName: "watch-ready", fn: () => void): void;
|
||||
public on(eventName: "watch-error", fn: (error: Error) => void): void;
|
||||
|
||||
/**
|
||||
* Copy all files that matches `this.source` pattern to `this.outDir`.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue