everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
23 lines • 845 B
text/typescript
//#region src/ui/version-check.d.ts
/**
* The soft-refresh poller (atomic-deploys 10): a browser-side loop fetching
* the host's `/.well-known/version` and reporting when the served deploy
* fingerprint differs from the one this document was rendered from. No live
* container swap — the banner decides whether to reload (old bytes are
* retained, so a reload is always safe). Polling pauses while the document
* is hidden and reports at most once.
*/
interface VersionWatchHandle {
stop: () => void;
}
declare function startVersionWatch(input: {
currentFingerprint: string;
onNewVersion: () => void;
intervalMs?: number;
endpoint?: string;
fetchImpl?: typeof fetch;
documentRef?: Document;
}): VersionWatchHandle;
//#endregion
export { VersionWatchHandle, startVersionWatch };
//# sourceMappingURL=version-check.d.mts.map