class ActiveRecord::Associations::Preloader::Branch

def preloader_for(reflection)

Experimental RBS support (using type sampling data from the type_fusion project).

def preloader_for: (ActiveRecord::Reflection::HasManyReflection reflection) -> untyped

This signature was generated using 1 sample from 1 application.

that accepts a preloader.
and attach it to a relation. The class returned implements a `run` method
Returns a class containing the logic needed to load preload the data
def preloader_for(reflection)
  if reflection.options[:through]
    ThroughAssociation
  else
    Association
  end
end