type ActionsProxy<
  LeafT,
  TreeT = LeafT,
  RiducerDictT extends RiducerDict<TreeT> = RiducerDict<TreeT>
> = {
  create: CreateAPI<LeafT, TreeT, RiducerDictT>;
} & {
  [K in keyof LeafT]: ActionsProxy<LeafT[K], TreeT, RiducerDictT>;
};

Related types: