UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

8 lines (7 loc) 373 B
export { getGlobalObject }; export { assertIsSingleModuleInstance }; type Key = `${string}.ts`; /** Share information across module instances. */ declare function getGlobalObject<T extends Record<string, unknown> = never>(key: Key, defaultValue: T): T; /** Assert that the module is instantiated only once. */ declare function assertIsSingleModuleInstance(key: Key): void;