AshTypescript.Codegen.SortTypes (ash_typescript v0.17.3)

Copy Markdown View Source

Generates TypeScript sort field as const arrays and derived union types for Ash resources.

Each resource gets:

  • {resourceName}SortFields — a runtime as const array of sortable field names
  • {ResourceName}SortField — a union type derived from the array

Sortable fields include public attributes, calculations with field?: true, and all public aggregates, formatted for the client (e.g. camelCase).

Summary

Functions

generate_sort_type(resource)

generate_sort_types(resources)