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

fix: params now optional for paramless routes in edenFetch #41

Merged

Conversation

fredericoo
Copy link
Contributor

@fredericoo fredericoo commented Jan 3, 2024

Fixes #40

Note:
We might want to add "./test/**/*" to tsconfig includes, as this could’ve been caught by tsc or linting the test files. I obviously didn’t do this as part of this PR as it is beyond scope and also highlights other issues (with transform)

@@ -32,7 +32,7 @@ export namespace EdenFetch {
: {
method: Method
}) &
(IsNever<keyof Route['params']> extends true
Copy link
Contributor Author

@fredericoo fredericoo Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as Route['params'] is already never, calling keyof never resolves to string | number | symbol, not matching the clause

@SaltyAom SaltyAom merged commit b5e4f74 into elysiajs:main Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type Issue with params Property in Eden Fetch
2 participants