AshTypescript. TypedController. Verifiers. VerifyTypedController
(ash_typescript v0.19.0)
Copy Markdown
View Source
Verifies that typed controller configurations are valid.
Checks:
- Route names are unique
- Each route has a
runhandler - Argument types are valid Ash types
- Route and argument names are valid for TypeScript generation (no
_1,?patterns) - Field names inside
returnsand argument types (typed maps, keywords, tuples, structs — at any depth) are valid for TypeScript generation too. Handlers send and receive these as-is, so an invalid name would produce a generated type that doesn't match the wire. A type's owntypescript_field_names/0mapping is honored, as for RPC.