17 lines
651 B
TypeScript
17 lines
651 B
TypeScript
/**
|
|
* Closes and re-creates the FS watcher. Deduped: callers that restart the
|
|
* watcher around the same time (fullRebuild, reloadWatcher, watchdog) only
|
|
* trigger a single re-creation.
|
|
*/
|
|
export declare function restartWatcher(): void;
|
|
/**
|
|
* Called periodically by the dev server. Re-creates the watcher only when it
|
|
* failed to report the probe written on the previous tick, i.e. when it went
|
|
* stale. A healthy watcher is left alone: re-creating it rescans the whole
|
|
* project tree.
|
|
*/
|
|
export declare function watcherWatchdogTick(): void;
|
|
export default function watcherEsbuildCTX(params?: {
|
|
pages_snapshot?: string;
|
|
}): Promise<void>;
|