Skip to content

ConfigValues

katanakit-js / ConfigValues

type ConfigValues<T, V> = {
[K in keyof T]: K extends ConfigMethodKeys<T> ? T[K] : V;
};

Defined in: types/core/config-facade.ts:57

Constrains every non-method entry of a define*Config literal to V, while leaving method entries untouched. Pair with NoInfer<T> in the signature so it validates without stealing inference from the literal.

Type Parameter Description
T The literal being validated.
V The type every non-method value must satisfy.