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
{{ message }}
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.
varconvert=require('koa-convert');// legacy middleware has `this` as context, and first argument as `next` generatorfunction*myGen(next){console.log(this.x);}varconvertedGen=convert(myGen);// modern middleware has first argument as context, and second argument as `next` functionconvertedGen({x: 666},functionnext(){});
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First off, I do not know if this belongs here in this module, but I'll start here. I'm experimenting with the following code:
I can't seem to pass an argument to the generator function. If this isn't to do with
koa-convert
then I'm guessinggenerator-bind
is at fault.The text was updated successfully, but these errors were encountered: