Type alias GetMethodsOptions<Methods>

GetMethodsOptions<Methods>: {
    [Name in keyof Methods]: Methods[Name] extends ((...args) => any)
        ? Args[Decrement<Args["length"]>]
        : never
}

Type Parameters

  • Methods extends {
        [key: string]: Function;
    }

Generated using TypeDoc