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

t.Date() type in Elysia.js results in Date & string in Eden, causing type mismatch #912

Open
k3341095 opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@k3341095
Copy link

k3341095 commented Nov 7, 2024

What version of Elysia is running?

1.1.24

What platform is your computer?

ubuntu 22.04

What steps can reproduce the bug?

Hello,

I'm currently using Elysia.js, and I’ve run into an issue with the t.Date() type. When I define a field with t.Date(), Eden interprets this type as Date & string, making it difficult to work with due to a type mismatch.

I need some guidance on how to handle this situation or if there’s a workaround to ensure compatibility between the types in Elysia.js and Eden. Any assistance on how to resolve this type discrepancy would be greatly appreciated.

Thank you!

What is the expected behavior?

date | string

What do you see instead?

Date & string

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

@k3341095 k3341095 added the bug Something isn't working label Nov 7, 2024
SaltyAom added a commit that referenced this issue Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant