Type alias TransformMethods<Methods>

TransformMethods<Methods>: {
    [Name in keyof Methods]: Methods[Name] extends ((...args) => infer Ret)
        ? ((...args) => Ret)
        : never
}

Type Parameters

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

Generated using TypeDoc