nori/codegen/typescript/shared
Shared utilities for all TypeScript code generators.
Values
pub fn sanitize_identifier(input: String) -> String
Make a string a valid TypeScript identifier.
pub fn to_camel_case(input: String) -> String
Convert a snake_case, kebab-case, or space-separated string to camelCase.
pub fn to_pascal_case(input: String) -> String
Convert a snake_case, kebab-case, or space-separated string to PascalCase.
pub fn type_ref_to_ts(ref: ir.TypeRef) -> String
Convert a TypeRef to its TypeScript type syntax.