How to improve type-inference in Folds.map?

Eg

julia> @code_warntype Folds.map(1:10) do i
       i^2
       end
MethodInstance for Folds.map(::var"#3#4", ::UnitRange{Int64})
  from map(f, itr; kwargs...) in Folds.Implementations at /home/jishnu/.julia/packages/Folds/ZayPF/src/collect.jl:83
Arguments
  #self#::Core.Const(Folds.map)
  f::Core.Const(var"#3#4"())
  itr::UnitRange{Int64}
Body::Any
1 ─ %1 = Core.NamedTuple()::Core.Const(NamedTuple())
│   %2 = Base.pairs(%1)::Core.Const(Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}())
│   %3 = Folds.Implementations.:(var"#map#50")(%2, #self#, f, itr)::Any
└──      return %3

In this case, I know the return type of the function. Is there any way to convey this information to Folds.map to make this operation inferrable?