You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which means that when I do const state = ctx.scene.state, I'd expect state to be of type { lastMessageId?: number }, because that's what it actually is, but because of the type definition state is given with type object.
Context
So I have this:
And then looking at the implementation of the class
SceneContextScene
I see this code:But then the type definition of the class in
typings/scenes/context.d.ts
shows this:Which means that when I do
const state = ctx.scene.state
, I'd expectstate
to be of type{ lastMessageId?: number }
, because that's what it actually is, but because of the type definitionstate
is given with typeobject
.Solution
Change
src/scenes/context.ts
to this:And then I assume
typings/scenes/context.d.ts
will automatically be generated correctly.The text was updated successfully, but these errors were encountered: