Open scrawnyColeman opened 3 weeks ago
cc @RamIdeas
Hi @scrawnyColeman
This is not a real bug but a known issue related to TypeScript's limitations. Currently, we only have to write it as type
. However, I also think it should be written with interface
. So, let this issue be left as an enhancement.
What version of Hono are you using?
4.4.6
What runtime/platform is your app running on?
Cloudflare Pages
What steps can reproduce the bug?
Attempt to initialise
Hono
router with aninterface
. I have attempted to do so with cloudflare pages. The interface generated by wrangler looks as follows:What is the expected behavior?
There should be no
ts-error
. This is an example of thetype
syntaxWhat do you see instead?
The following type-error appears:
Additional information
No response