Skip to main content

render_ts

Function render_ts 

Source
pub fn render_ts(ir: &Ir, opts: &CodegenOptions) -> String
Expand description

Render an Ir into a single api.gen.ts source string.

This is the panicking-on-internal-bug variant: duplicate type definitions with conflicting bodies will panic. Use render_ts_checked when callers want to recover from that case (e.g. surface a friendly CLI error).