AshTypescript.Resource
View SourceSpark DSL extension for configuring TypeScript generation on Ash resources.
This extension allows resources to define TypeScript-specific settings, such as custom type names for the generated TypeScript interfaces.
typescript
Define TypeScript settings for this resource
Options
| Name | Type | Default | Docs |
|---|---|---|---|
type_name | String.t | The name of the TypeScript type for the resource | |
field_names | keyword | [] | A keyword list mapping Elixir field names to TypeScript client names. Use strings for the client names - no additional formatting is applied. (e.g., [is_active?: "isActive", address_line_1: "addressLine1"]) |
argument_names | keyword | [] | A keyword list mapping Elixir argument names to TypeScript client names per action. Use strings for the client names - no additional formatting is applied. (e.g., [read_action: [is_active?: "isActive"]]) |