Mickaël
Can someone explain why types aren't inferred
Do you think this kind of functionality would be added via Typescript 5.5 - Inferred Type Predicates ?
11 replies
Can someone explain why types aren't inferred
Yes, and it's a problem in the sense that the documentation is full of examples that don't use chaining. I personally chose to chain all the methods on my project, but I have to admit that this has an impact on readability. Here's a related issue: https://github.com/honojs/hono/issues/2120#issuecomment-1917847801
11 replies
How to debug Hono/HonoX in Visual Studio Code?
Hello @chip !
This setup works for me :
- First I run my project with this command in
package.json
:
If you use other tool than- Then I have thistsx
the important part is--inspect
, available on Node.js too
launch.json
in .vscode
folder :
- So you just npm run dev
and click on "attach" command in vscode debug tool and your breakpoints should works 🙂
- (Optional) you can auto-attach on npm run dev
with this vscode setting :
2 replies