Skip to content

Type Alias: InferConfigType<T>

ts
type InferConfigType<T> = ExtractSections<T> & keyof ExtractTopLevelItems<T> extends never ? Record<string, never> : object;

Defined in: packages/core/src/schema.ts:88

Extracts the runtime config shape from a schema. Top-level ConfigItem values are grouped under the app section, while ConfigSection values remain as their own named sections.

Type Parameters

Type Parameter
T