GramIO API Reference / @gramio/composer/dist / HandlerOptions
Type Alias: HandlerOptions<TBaseCtx, Macros>
HandlerOptions<
TBaseCtx,Macros> =object&{ [K in keyof Macros]?: WithCtx<MacroOptionType<Macros[K]>, TBaseCtx> }
Defined in: composer/index.d.ts:90
Builds the options parameter type for handler methods. Includes preHandler plus all registered macro option types with ContextCallback markers replaced by TBaseCtx.
Type Declaration
| Name | Type | Defined in |
|---|---|---|
preHandler? | Middleware<TBaseCtx> | Middleware<TBaseCtx>[] | composer/index.d.ts:91 |
Type Parameters
| Type Parameter |
|---|
TBaseCtx |
Macros extends MacroDefinitions |