histoire
Version:
A fast story book powered by Vite
19 lines • 1.03 kB
TypeScript
/** Why the runtime asks its host for a replacement process. */
export interface HostRestartRequest {
/** Short label shown in the host's restart notice. */ source: string;
/** Successor skips cached catalog restoration and forces dependency optimization. */ fresh?: boolean;
}
/** Delivers a request to the owning host; returns whether it was handed over. */
export type HostRestart = (request: HostRestartRequest) => boolean;
/**
* Registers the process host able to replace this runtime with a new process (the dev proxy
* parent of a CLI child). In-process SDK runtimes register nothing: they can't drop loaded modules.
* @param value Delivery function, or `undefined` to unregister.
*/
export declare function setHostRestart(value: HostRestart | undefined): void;
/**
* Current host restart delivery, when this process has one.
* @returns The registered function, or `undefined` without a host.
*/
export declare function getHostRestart(): HostRestart | undefined;
//# sourceMappingURL=host-restart.d.ts.map