[ ] ๐ Documentation (updates to the documentation, readme, or JSdoc annotations)
[ ] ๐ Bug fix (a non-breaking change that fixes an issue)
[ ] ๐ Enhancement (improving an existing functionality like performance)
[ ] โจ New feature (a non-breaking change that adds functionality)
[ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
[ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Not sure when it was introduced, but at some point there was a regression in the types for $fetch when a method is omitted. Previously, the get method was selected, but now a union of all possible endpoints is provided.
๐ Linked issue
โ Type of change
๐ Description
Not sure when it was introduced, but at some point there was a regression in the types for
$fetch
when a method is omitted. Previously, theget
method was selected, but now a union of all possible endpoints is provided.This is the remaining issue blocking types in https://github.com/nuxt/nuxt/pull/27702.
This PR adds a type test - I plan to update when the fix is found.cc: @pi0
๐ Checklist