pub fn reference(
exporter: &dyn AsRef<Exporter>,
types: &Types,
dt: &DataType,
) -> Result<String, Error>Expand description
Generate a Typescript string for a specific DataType while preserving ordinary named
references recursively.
Unlike inline, named types are rendered as references even when nested within an anonymous
composite type. References explicitly marked as inline are still expanded.
See export for the list of things to consider when using this.