Skip to main content

generate_ts_client

Function generate_ts_client 

Source
pub fn generate_ts_client(rust_dir: &Path, out: &Path) -> Result<()>
Expand description

Emit the TypeScript (or browser-global JS) client for every #[native] handler discovered under rust_dir. Output format is chosen by the extension of out (.ts → TS module, .js → browser global).

If no handlers are found the output file is removed.