UNPKG

766 BTypeScriptView Raw
1/// <reference types="node" />
2import { Writable, Readable } from "stream";
3/**
4 * Onchange configuration options.
5 */
6export interface Options {
7 add?: boolean;
8 awaitWriteFinish?: number;
9 command?: string[];
10 cwd?: string;
11 defaultExclude?: boolean;
12 delay?: number;
13 env?: NodeJS.ProcessEnv;
14 exclude?: (string | ((path: string) => boolean))[];
15 filter?: string[];
16 initial?: boolean;
17 jobs?: number;
18 kill?: boolean;
19 killSignal?: NodeJS.Signals;
20 matches: string[];
21 onReady?: () => void;
22 outpipe?: string;
23 poll?: number;
24 stderr?: Writable;
25 stdin?: Readable;
26 stdout?: Writable;
27 verbose?: boolean;
28}
29/**
30 * Onchange manages
31 */
32export declare function onchange(options: Options): () => void;