nitro
nitro copied to clipboard
`$fetch` infered type for `Date` is wrong
Environment
Node v20.15.0
Reproduction
https://github.com/offizium-berndstorath/nitro-repro https://stackblitz.com/~/github.com/offizium-berndstorath/nitro-repro?file=server/utils/test.ts
Describe the bug
If you return a Date from a api route the type doesn't get converted to string. But only if its inside an array
Additional context
https://github.com/nuxt/nuxt/issues/28674
Logs
No response
@danielroe @pi0 any update?
Lets track with https://github.com/nitrojs/nitro/issues/2758