Maps Ash type specifications to TypeScript type annotations.
Type Mapping
:string,:uuid,:ci_string, date/time types →string:integer,:float,:decimal→number:boolean→boolean:map→Record<string, any>:file→File(orstring[]for arrays of files){:array, inner}→InnerType[]- Embedded resources → inline object type
- Enums → union of string literals
- Union types (
one_of) → union of mapped types - Unknown types →
any
See Alva.Codegen.InputContract and Alva.Codegen.DtoGenerator for consumers.
Summary
Functions
Maps a single Ash type to its TypeScript equivalent.