I'm unable to get type inference working on the withParams helper:
import { Router } from 'itty-router';
import { withParams } from 'itty-router-extras';
export default {
fetch
};
const router = Router();
router.get('/projects/:project/deployments', withParams, async ({ project }) => {
console.log(project);
return new Response();
});
Gives me this error:
Property 'project' does not exist on type 'Request'. ts(2339)
I'm unable to get type inference working on the
withParamshelper:Gives me this error: