Skip to main content

Module codegen_types

Module codegen_types 

Source
Expand description

Registration types for TypeScript codegen macros.

These live outside the gated codegen module so the macros work on all platforms. The actual codegen functions that consume these registrations remain in codegen/mod.rs.

Structs§

TsConstRegistration
Registration for a Rust constant to be exported as a TypeScript constant.
TsExportRegistration
Registration for ts-rs type exports. Allows types with #[derive(TS)] to be exported without running cargo test.

Enums§

TsConstValue
Value types for TypeScript constant generation.