Home > @findkit/ui > MethodParameters

MethodParameters type

Like Parameters<typeof fn> but for class methods

Example: Parameters<typeof HubDB, "ensureUser">[0]

Signature:

export type MethodParameters<Klass extends new (...args: any) => any, Method extends keyof InstanceType<Klass>> = Parameters<InstanceType<Klass>[Method]>;