cottage
cottage copied to clipboard
Fix the Handler argument types missing request.params
The inferred types for Handlers were missing the ctx.request.params property, resulting in an error when attempting to access them.
Also fixes the default value for KoaCompatibleMiddleware's generic type CustomT (custom context) being wrong. The previous type was equivalent anyway, but it's still a misleading hint for developers.
Fixes #26