Type Alias MakeRequestMethod<Name, T>

MakeRequestMethod: (
    args: { method: Name } & (
        undefined extends T[0] ? { params?: T[0] } : { params: T[0] }
    ),
) => Promise<T[1]>

Type Parameters

  • Name extends string
  • T extends Method