Skip to main content

gen_ts_from_source

Function gen_ts_from_source 

Source
pub fn gen_ts_from_source(
    sources: Vec<NapiSourceFile>,
    components: Option<Vec<NapiInjectedManifest>>,
) -> Result<String>
Expand description

Generate TypeScript type information from in-memory Veryl sources.

Like gen_ts() but does not require a Veryl.toml or filesystem access. Works on both native and wasm32 targets.