documentation/dsls/DSL-AshTypescript.Resource.md
<!--
This file was generated by Spark. Do not edit it by hand.
-->
# AshTypescript.Resource
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
| Name | Type | Default | Docs |
|------|------|---------|------|
| [`type_name`](#typescript-type_name){: #typescript-type_name .spark-required} | `String.t` | | The name of the TypeScript type for the resource |
| [`field_names`](#typescript-field_names){: #typescript-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`](#typescript-argument_names){: #typescript-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"]]) |
<style type="text/css">.spark-required::after { content: "*"; color: red !important; }</style>