Shared helper functions for code generation.
Summary
Functions
Builds a TypeScript type name from a resource module. Uses the custom typescript_type_name if defined, otherwise derives from module name.
Converts a PascalCase name to camelCase by lowercasing the first character.
Determines if a return type is complex (requires special metadata handling).
Functions
Builds a TypeScript type name from a resource module. Uses the custom typescript_type_name if defined, otherwise derives from module name.
Converts a PascalCase name to camelCase by lowercasing the first character.
Examples
iex> AshTypescript.Codegen.Helpers.camel_case_prefix("Todo")
"todo"
iex> AshTypescript.Codegen.Helpers.camel_case_prefix("OrgTodo")
"orgTodo"
Determines if a return type is complex (requires special metadata handling).