Skip to content
0

katanakit-js / ConfigValues

Type Alias: ConfigValues<T, V> ​

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

Defined in: src/types/index.ts:1544

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 Parameters ​

Type ParameterDescription
TThe literal being validated.
VThe type every non-method value must satisfy.

Released under the MIT License.