Skip to content

ActionHandler

Action handler function signature.

May be sync or async — the framework will await the return value regardless. The C parameter carries the accumulated middleware context type (defaults to empty).

Signatures

ts
type ActionHandler<F extends Record<string, FlagBuilder<FlagConfig>>, A extends Record<string, ArgBuilder<ArgConfig>>, C extends Record<string, unknown>> = { (params: ActionParams<F, A, C>): void | Promise<void>; };

See Also

Released under the MIT License.