AshTypescript.Resource

View Source

Spark 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

NameTypeDefaultDocs
type_nameString.tThe name of the TypeScript type for the resource
field_nameskeyword[]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_nameskeyword[]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"]])