createAction
Summary
Defines a route handler with route-aware params and the default router context.
This helper returns the action unchanged while giving TypeScript the route pattern it needs to
type context.params. If action middleware adds context values, those values are available to
the action handler.
Signature
Parameters
route
action
The handler function or action object to type-check.
Returns
The same action value.