UNPKG

nx-mesh

Version:
8 lines (7 loc) 302 B
import type { WatcherOptions } from 'watchpack'; export declare type WatchFunc<T = unknown> = () => Promise<T>; export declare type Options = Omit<WatcherOptions, 'ignored'> & { dir: string; watch?: boolean; }; export declare function watcher(func: WatchFunc, options: Options): Promise<void>;