Skip to main content

emit_helpers_for_owner_qualified

Function emit_helpers_for_owner_qualified 

Source
pub fn emit_helpers_for_owner_qualified(
    type_names: &[String],
    types: &HashMap<String, Arc<TypeDecl>>,
    _owner_qualified: &str,
    qual: &HashMap<String, String>,
    ru: &RuntimeUse,
) -> Vec<TsDecl>
Expand description

#661: as emit_helpers_for_owner, but the caller supplies a type Qual. With an empty qualifier this is the owner’s own module (every type named bare, refined validation through .of). With a non-empty one it is a consumer generating its own view of another context’s boundary types: the qualified names reach through the import type * as <ns> alias, and refined validation inlines (transparent) or casts structurally (opaque) because the owner’s .of is not importable.