UNPKG

vike

Version:

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

10 lines (9 loc) 503 B
export { execHookGuard }; import type { PageContextConfig } from '../getPageFiles.js'; import { type PageContextExecHook } from '../hooks/execHook.js'; import type { GlobalContextInternal } from '../createGlobalContextShared.js'; declare function execHookGuard<PageContext extends { pageId: string; } & { _globalContext: GlobalContextInternal; } & PageContextExecHook & PageContextConfig>(pageContext: PageContext, getPageContextPublic: (pageConfig: PageContext) => PageContext): Promise<void>;