UNPKG

vike

Version:

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

36 lines (35 loc) 1.38 kB
export { serializeConfigValues }; export { getConfigValuesBase }; export { isJsonValue }; export type { FilesEnv }; import type { ConfigEnvInternal, ConfigValueSource, DefinedAt, PageConfigBuildTime, PageConfigGlobalBuildTime } from '../PageConfig.js'; declare function serializeConfigValues(pageConfig: PageConfigBuildTime | PageConfigGlobalBuildTime, importStatements: string[], filesEnv: FilesEnv, isEnvMatch: (configEnv: ConfigEnvInternal) => boolean, tabspace: string, isEager: boolean | null): string[]; declare function isJsonValue(value: unknown): boolean; declare function getConfigValuesBase(pageConfig: PageConfigBuildTime | PageConfigGlobalBuildTime, isEnvMatch: (configEnv: ConfigEnvInternal) => boolean, isEager: boolean | null): ConfigValuesBase; type ConfigValuesBase = ({ configValueBase: { type: 'computed'; definedAtData: null; }; value: unknown; configEnv: ConfigEnvInternal; configName: string; } | { configValueBase: { type: 'standard'; definedAtData: DefinedAt; }; sourceRelevant: ConfigValueSource; configName: string; } | { configValueBase: { type: 'cumulative'; definedAtData: DefinedAt[]; }; sourcesRelevant: ConfigValueSource[]; configName: string; })[]; type FilesEnv = Map<string, { configEnv: ConfigEnvInternal; configName: string; }[]>;