UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

13 lines (12 loc) • 386 B
export { getGlobalObject }; import type { VikeGlobalInternal } from '../types/VikeGlobalInternal.js'; type ModuleId = `${string}.ts`; /** * Share information across module instances. * * @__NO_SIDE_EFFECTS__ */ declare function getGlobalObject<T extends Record<string, unknown> = never>(moduleId: ModuleId, defaultValue: T): T; declare global { var _vike: VikeGlobalInternal; }