pub fn export_bindings(
    path: &Path,
    file_name: impl AsRef<str>,
    bindings: ExportStrings
) -> Result<()>
Available on crate feature generating only.
Expand description

Export the generated binding string to a file with passed file name at passed path.

Only javascript code will be exported. To export the generated typescript typings as well use crate::build_npm_package.

If the file already exists if will be overwritten.