pub fn render_ts_checked(
ir: &Ir,
opts: &CodegenOptions,
) -> Result<String, String>Expand description
Fallible variant of render_ts.
Errors only on a single, well-defined condition: two TypeDefs share a
name but have different bodies. Equal duplicates are silently deduped.