Skip to main content

Module primitives

Module primitives 

Source
Expand description

Primitives provide building blocks for Specta-based libraries.

These are for advanced usecases, you should generally use crate::Typescript or crate::JSDoc in end-user applications.

Functionsยง

export
Generate a group of export Type = ... Typescript string for a specific NamedDataType.
inline
Generate an anonymous Typescript string for a specific DataType.
reference
Generate a Typescript string for a specific DataType while preserving ordinary named references recursively.