-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
allow to type Params
of RequestHandler
#3989
allow to type Params
of RequestHandler
#3989
Conversation
🦋 Changeset detectedLatest commit: 44ad923 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
If we add this, I feel like we should make this a breaking change and switch the order of generics. Feels strange to me to have the input generic be the second generic, but maybe that's just me |
I was also thinking about this, but didn't want to introduce a breaking change. I'll update it |
this PR would need to be rebased |
2893759
to
b45336e
Compare
done |
agree that input should go first, though i'll note that if we manage to pull off #647 we'll have to revert this breaking change with another. i don't think that's a reason not to do it though |
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpx changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0Currently it is not possible to type
Params
of aRequestHandler
handler function