UNPKG

vike

Version:

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

9 lines (8 loc) 497 B
export { getConfigValueRuntime }; import { type ResolveTypeAsString } from '../utils.js'; import type { PageConfigRuntime, ConfigValue } from './PageConfig.js'; import type { ConfigNameBuiltIn } from './Config.js'; import { type TypeAsString } from './getConfigValueTyped.js'; declare function getConfigValueRuntime<Type extends TypeAsString = undefined>(pageConfig: PageConfigRuntime, configName: ConfigNameBuiltIn, type?: Type): null | (ConfigValue & { value: ResolveTypeAsString<Type>; });