Skip to main content

generate_service_file

Function generate_service_file 

Source
fn generate_service_file(service_name: &str, schema: &ParsedSchema) -> String
Expand description

Generate a single TypeScript file for a schema.

For service schemas (with request/response structs): generates interfaces, service builders/parsers, client class, plus standalone struct builders/parsers. For data-only schemas: generates interfaces and standalone struct builders/parsers only.