TYPESCRIPT_TYPES

Static TYPESCRIPT_TYPES 

Source
pub static TYPESCRIPT_TYPES: DistributedSlice<[fn() -> TypeDef]>
Expand description

Distributed slice for auto-registration of TypeScript types.

Types that derive TypeScript are automatically registered in this slice when the auto_register feature is enabled (default). This allows collecting all types without manual registration.

§Usage

// Types are automatically registered when you derive TypeScript
#[derive(TypeScript)]
struct User { name: String }

// Collect all registered types
let registry = TypeRegistry::from_distributed();