Skip to content
0

katanakit-js / ConfigMethodKeys

Type Alias: ConfigMethodKeys<T> ​

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

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

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

Type Parameter
T

Released under the MIT License.