Type Alias MethodKey<T, R>
MethodKey: {
[K in keyof T & (string | symbol)]: T[K] extends (
...requests: never[],
) => R | Promise<R>
? K
: never
}[keyof T & (string | symbol)]
[K in keyof T & (string | symbol)]: T[K] extends (
...requests: never[],
) => R | Promise<R>
? K
: never
}[keyof T & (string | symbol)]
Type Parameters
- T
- R
The names of the methods of
Tthat returnRor a promise of it, which a builder may be given as a hook, an input adapter or a service provider.