Function specta_typescript::export_function_header
source ยท pub fn export_function_header(
dt: FunctionDataType,
config: &ExportConfig,
) -> Result<String>Available on crate feature
function only.Expand description
Convert a [FunctionDataType] into a function header like would be used in a .d.ts file.
If your function requires a function body you can copy this function into your own codebase.
Eg. function name();