Skip to main content

Module codegen

Module codegen 

Source
Expand description

TypeScript IR emitter (gen-ts). Emit TypeScript IR types from an explicit Rust IR_SPEC (SoT with models.rs).

Not include_str of a hand-maintained twin — the emitter builds the file. Exhaustiveness is checked via [WidgetElement] match in tests / type_name.

Functions§

emit_widget_types_ts
Emit guest-js/generated/widget-types.ts.