Skip to content

createDefineConfig

createDefineConfig<T>(): <C>(config) => C

Defined in: cli/datapad/src/define/define.ts:13

Build a typed identity defineConfig for a specific config shape.

Each consumer (@theholocron/cli, @theholocron/astromech) calls this once with its own config type and re-exports the result, so config files get autocomplete and type-checking with no runtime cost:

// @theholocron/astromech/config
export const defineConfig = createDefineConfig<TasksConfig>();

T

<C>(config) => C