Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$fetch infered type for Date is wrong #2689

Open
offizium-berndstorath opened this issue Aug 23, 2024 · 1 comment
Open

$fetch infered type for Date is wrong #2689

offizium-berndstorath opened this issue Aug 23, 2024 · 1 comment
Labels

Comments

@offizium-berndstorath
Copy link

offizium-berndstorath commented Aug 23, 2024

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

nuxt/nuxt#28674

Logs

No response

@kaaax0815

This comment was marked as off-topic.

@pi0 pi0 changed the title $fetch doesn't convert Date to string $fetch infered type for Date is wrong Sep 3, 2024
@pi0 pi0 removed the pending triage label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants