Skip to content

ConfigMethodKeys

katanakit-js / ConfigMethodKeys

type ConfigMethodKeys<T> = {
[K in keyof T]-?: NonNullable<T[K]> extends ConfigMethod ? K : never;
}[keyof T];

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

Keys of T whose value is a ConfigMethod. Methods declared as optional are still detected (NonNullable), so they are split out of the config half rather than leaking into it.

Type Parameter
T