//! Shared descriptor types for code generation targets.
/// A WASM-exported function descriptor.
#[derive(Clone, Copy)]pubstructWasmFn{/// camelCase JS function name (wasm-bindgen auto-converts snake_case).
pubname:&'staticstr,
/// Raw output of `file!()` at `#[wasm_export]` call site (e.g. `"src/foo_bar.rs"`).
/// Used by `bundle!` to group functions by source file → output stem.
pubfile:&'staticstr,
/// Called at test runtime — returns TS parameter signature string.
pubts_params:fn()-> String,
/// Called at test runtime — returns TS return type string.
pubts_ret:fn()-> String,
/// Called at test runtime — returns Flow parameter signature string.
pubflow_params:fn()-> String,
/// Called at test runtime — returns Flow return type string.
pubflow_ret:fn()-> String,
}/// An interface not modeled as a Rust struct (e.g. ad-hoc WASM return shapes).
pubstructInterface{/// Interface name.
pubname:&'staticstr,
/// Fields: `(name, type)`. All emitted as readonly/covariant.
pubfields:&'static [(&'staticstr, &'staticstr)],
}/// A type alias (e.g. `export type AttrOp = PredicateOp`).
pubstructTypeAlias{/// Alias name.
pubname:&'staticstr,
/// Target type.
pubtarget:&'staticstr,
}