Current behavior
Using the following code in TypeScript results in an error:
import {Cottage} from 'cottage';
const router = new Cottage();
router.get('/:id', (ctx) => {
return `Requested id: ${ctx.request.params.id}`; // Property 'params' does not exist on type 'Request'. ts(2339)
});
Expected behavior
The types correctly recognize the Request.params property.
Environment
Cottage v3.1.3 (npm latest)
TypeScript v3.9.6