pub type ComponentResolver = Arc<dyn Fn(&str, Option<&str>) -> Option<ResolvedComponent> + Send + Sync>;Expand description
Callback type for resolving component source code Takes component name and optional path context, returns resolved component Path context is the file path where this component is being referenced from Resolver should return (source_code, resolved_path) where resolved_path is the absolute path to the component file (used for resolving nested components)
Aliased Typeยง
pub struct ComponentResolver { /* private fields */ }