Closed rwv closed 1 year ago
I have a similar issue when trying to create new Request(request, { /** **/ })
Where IRequest
cannot be supplied for Request
Thanks guys, I'll be sure to address this as part of the v4.x migration! https://github.com/kwhitley/itty-router/pull/148
Imported, modified to IRequest
, and confirmed working in 4.x:
Thanks all - this has been fully addressed in the v4.x next
branch that's pending release!
Strict mode is no problem! :)
For complete v4.x docs, start here:
Expect the @next branch to drop into main in the next couple days, barring any major issues found by the community. The types are finally sorted!
cause error:
works fine in itty-router 2.x