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).
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/schema/command.ts - Source link:
packages/dreamcli/src/core/schema/command.ts:325
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>; };