Skip to main content

Module schema_ts

Module schema_ts 

Source
Expand description

dmc-schema descriptor -> TypeScript type emitter. Drives the typed interfaces in the generated index.d.ts. Mirrors the kinds accepted by dmc_schema::compile_descriptor; unknown shapes fall back to unknown so the build never fails on an unrecognised descriptor.

Functionsยง

schema_to_ts
Descriptor -> TS type string at indent levels (0 = top of interface body).
schema_to_ts_object
Render the top-level object body as a { ... } block at indent 0.