Skip to content

Commit

Permalink
feat: default type params for convo
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Nov 21, 2024
1 parent 3d6440c commit 1fca227
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ export interface HaltOptions {
* Be sure to consult this plugin's documentation:
* https://grammy.dev/plugins/conversations
*/
export class Conversation<OC extends Context, C extends Context> {
export class Conversation<
OC extends Context = Context,
C extends Context = Context,
> {
/** `true` if `external` is currently running, `false` otherwise */
private insideExternal = false;

Expand Down Expand Up @@ -816,7 +819,7 @@ First return your data from `external` and then resume update handling using `wa
* through `JSON.parse(JSON.stringify(data))` (even though this is not what
* actually happens under the hood).
*
* The callback function passed to `external` received the outside context
* The callback function passed to `external` receives the outside context
* object from the current middleware pass. This lets you access properties
* on the context object that are only present in the outside middleware
* system, but that have not been installed on the context objects inside a
Expand Down

0 comments on commit 1fca227

Please sign in to comment.