GramIO API Reference / @gramio/composer/dist / DeriveFromOptions
Type Alias: DeriveFromOptions<Macros, TOptions>
DeriveFromOptions<
Macros,TOptions> =UnionToIntersection<{ [K in keyof TOptions & keyof Macros]: MacroDeriveType<Macros[K]> }[keyofTOptions& keyofMacros]>
Defined in: composer/index.d.ts:101
Collects all derive types from macros that are activated in TOptions. The result is intersected into the handler's context type.
Type Parameters
| Type Parameter |
|---|
Macros extends MacroDefinitions |
TOptions |