Skip to main content

emit_group_interface

Function emit_group_interface 

Source
fn emit_group_interface(out: &mut String, name: &str, leaves: &[FieldDef])
Expand description

Emit a TypeScript interface for an inline union group arm’s leaf fields.

Mirrors the non-union-field emission in emit_struct_interface: struct pointers are nullable, Option*/Text/Data/List are not.