AshTypescript.Codegen.UtilityTypes (ash_typescript v0.17.2)

Copy Markdown View Source

Generates TypeScript utility types for field selection and type inference.

These types are shared between RPC and typed controller code generation, including TypedSchema, UnionToIntersection, InferResult, pagination helpers, and error types.

Summary

Functions

Generates TypeScript utility types for field selection and type inference.

Functions

generate_utility_types()

Generates TypeScript utility types for field selection and type inference.

Includes:

  • TypedSchema constraint
  • UnionToIntersection helper
  • InferUnionFieldValue helper
  • Field selection types
  • InferResult type
  • Pagination conditional types
  • SuccessDataFunc and ErrorData helpers
  • AshRpcError type