Expand description
TypeScript IR emitter (gen-ts).
Emit TypeScript IR types from an explicit Rust IR_ELEMENTS spec (SoT with models).
Static preamble / enums / supporting / footer live in src/codegen/*.ts via
include_str!. The remaining push_str calls are intentional: per-element
interfaces and the WidgetElement union are generated from IR_ELEMENTS
so exhaustiveness tests stay coupled to crate::models::WidgetElement.
Functionsยง
- emit_
widget_ types_ ts - Emit
guest-js/generated/widget-types.ts. - emit_
wire_ catalog_ kotlin - Wire type constants for Android Glance renderer (JSONObject path stays dynamic).
- emit_
wire_ catalog_ swift - Wire type strings + field hints for Swift (flat Codable stays in Models.swift).