jeffijoe / awilix-express

Awilix helpers/middleware for Express
MIT License
114 stars 7 forks source link

Only allow request handlers on member invokers (typescript only) #29

Closed fpbouchard closed 3 years ago

fpbouchard commented 3 years ago

As a commodity, I've added conditional typing for invoker member names so that they are constrained to only the members that are request handlers. No impact on the generated javascript.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling dbbc7f4693fefd81eeada655d9aa3d1d811293d2 on ingeno:feature/add-invoker-type-checking into 00b2736c885eff8e5648ada10ec5e21d3747fe2f on talyssonoc:master.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 8df24addce08bac3000027cbc6044d9496e8a590 on ingeno:feature/add-invoker-type-checking into 00b2736c885eff8e5648ada10ec5e21d3747fe2f on talyssonoc:master.

fpbouchard commented 3 years ago

I was too quick to open this, I'll be back :)