Skip to main content

Module generate_types

Module generate_types 

Source

Structs§

InertiaPropsStruct
Represents a parsed InertiaProps struct
StructField

Enums§

RustType
SerdeCase
Serde rename_all case transformation

Functions§

generate_types_to_file
Generate types and write to the output file
generate_typescript
Generate TypeScript interfaces from the structs (self-contained, no shared.ts imports)
parse_shared_types
Parse shared.ts to find exported type names Returns set of exported type/interface/enum names
resolve_nested_types
Resolve all nested types referenced by InertiaProps structs
run
Main entry point for the generate-types command
scan_inertia_props
Scan all Rust files in the src directory for InertiaProps structs
scan_serialize_structs
Scan all Rust files for Serialize structs matching the target type names