nx-mesh
Version:
GraphQL Mesh support for Nx
8 lines (7 loc) • 302 B
TypeScript
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>;