unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.89k stars 496 forks source link

fix(types): infer types correctly when method is omitted #2551

Closed danielroe closed 3 months ago

danielroe commented 3 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

Related: https://github.com/unjs/nitro/pull/2550

This fixes the types for $fetch when a method is omitted.

๐Ÿ“ Checklist