pub fn export_function_header(
dt: FunctionDataType,
config: &ExportConfig,
) -> Result<String>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()
This had to be modified to support async Promises and to not include the final semicolon.