Skip to content

GramIO API Reference / @gramio/contexts/dist / ContextType

Type Alias: ContextType<Bot, Name>

ContextType<Bot, Name> = InstanceType<ContextsMapping<Bot>[Name]> & GetDerives<Bot, Name>

Defined in: contexts/index.d.ts:189

Type util to get type of Context

Type Parameters

Type Parameter
Bot extends BotLike
Name extends keyof ContextsMapping<Bot>

Example

ts
type Message = ContextType<Bot, "message">;