Uh oh!
There was an error while loading. Please reload this page.
fix(sveltekit): update wrapServerRouteWithSentry to respect ParamMatchers - #13390
Conversation
Lms24
commented
Sep 18, 2024
Hi @gurpreetatwal thanks for opening this PR! I'm sorry for the late review. Looks fine to me. Since we're only extending the previous type I this doesn't classify as a breaking change so we can merge it in. (heads-up: Just assigning myself to track internally that I'm reviewing it) |
Lms24
commented
Sep 18, 2024
I see this PR is still in draft - did you want to add something to still? |
gurpreetatwal
commented
Oct 8, 2024
Hi @Lms24! Apologies for the delayed response on my end, we're good to merge! I had it in draft status because I was trying to get the test suite to run on my computer but wasn't able to and hadn't yet had the time to figure out if it was a code issue or a just dev set up issues. |
…hers SvelteKit narrows the type of event.params based on ParamMatchers that are defined in the path, by making the function generic we can respect the narrowed type
Lms24
commented
Oct 9, 2024
Thanks for getting back to me! Will let CI run again on the changes and then merge it. |
SvelteKit narrows the type of event.params based on ParamMatchers that are defined in the path, by making the function generic we can respect the narrowed type
Before submitting a pull request, please take a look at our
Contributing guidelines and verify:
yarn lint) & (yarn test).Follow up to #13247