pub fn registry_to_output<'a, Format>(registry: &'a TypeRegistry) -> String where
Format: From<&'a Type> + Display,
Generates code for all the types in the TypeRegistry
You should provide
go_away::TypeScriptType as a generic
parameter with turbofish syntax to decide which format to output.
Note that this is a WIP API and is likely to be ditched/changed in future releases.