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
Currently wizard steps have no idea whether the next/previous middleware are MiddlewareFn or MiddlewareObj, leading to cases like:
ctx.wizard.back();// This expression is not callable.// Not all constituents of type 'Middleware<unknown>' are callable.returnctx.wizard.step(ctx,next);
The fix is:
returnComposer.unwrap(ctx.wizard.step)(ctx,next);
v5 could make this change:
get step() {
- return this.steps[this.cursor]+ return Composer.unwrap(this.steps[this.cursor])
}
Therefore making it always safe to call ctx.wizard.step?.(ctx. next)
The text was updated successfully, but these errors were encountered:
Currently wizard steps have no idea whether the next/previous middleware are
MiddlewareFn
orMiddlewareObj
, leading to cases like:The fix is:
v5 could make this change:
Therefore making it always safe to call
ctx.wizard.step?.(ctx. next)
The text was updated successfully, but these errors were encountered: