WrappedActions<Actions extends {
    [action: string]: Action<any, any, any>;
}>: {
    [Prop in keyof Actions]: Actions[Prop] extends Action<infer TParams, infer TOk, infer TErr>
        ? WrappedAction<TParams, TOk, TErr>
        : never
}

Type Parameters

  • Actions extends {
        [action: string]: Action<any, any, any>;
    }