histoire
Version:
A fast story book powered by Vite
17 lines (16 loc) • 537 B
JavaScript
let handler;
/**
* 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 function setHostRestart(value) {
handler = value;
}
/**
* Current host restart delivery, when this process has one.
* @returns The registered function, or `undefined` without a host.
*/
export function getHostRestart() {
return handler;
}