Skip to main content

Type

Derive Macro Type 

Source
#[derive(Type)]
{
    // Attributes available to this derive:
    #[tyzen]
    #[serde]
    #[validate]
}
Expand description

Derives the TsType trait and registers metadata for TypeScript generation.

Supports both structs and enums. Correctly handles serde attributes and Tyzen-specific metadata like #[tyzen(optional)] or #[tyzen(apply = Template)].