#[derive(TypeWriter)]
{
// Attributes available to this derive:
#[sync_to]
#[tw]
}
Expand description
Re-export the TypeWriter derive macro.
Derive macro for typewriter type synchronization.
§Usage
ⓘ
use typebridge::TypeWriter;
#[derive(TypeWriter)]
#[sync_to(typescript, python)]
pub struct UserProfile {
pub id: Uuid,
pub email: String,
pub age: Option<u32>,
}This will generate corresponding TypeScript and Python type definitions
on cargo build.