Closed paoloricciuti closed 8 months ago
Latest commit: 7c1b4ba3ec147da5ed6c7b1639f102a540f94591
The changes in this PR will be included in the next version bump.
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
The change involves a correction in the type definition of the array
function within the sveltekit-search-params
library. The defaultValue
parameter for the array
function has been updated to expect an array of type T[]
instead of a single value of type T
. This modification aligns the type expectation with the intended functionality of handling default values for arrays.
File Path | Change Summary |
---|---|
src/lib/sveltekit-search-params.ts |
Updated the type of defaultValue parameter in array function from T to T[] . |
Objective | Addressed | Explanation |
---|---|---|
#44: Correct typing for the default value of an array param in ssp.array() helper |
✅ | The type has been changed from T to T[] , which matches the issue's requirement. |
In the code where types entwine,
A rabbit found a misalign.
With a hop and a fix in place,
Arrays now have their proper space. 🐇💻✨
Name | Link |
---|---|
Latest commit | 8f357c987d585107eb7495b29cf2852813960d0f |
Latest deploy log | https://app.netlify.com/sites/sveltekit-search-params/deploys/656f2cb6ab611100077631d3 |
Deploy Preview | https://deploy-preview-47--sveltekit-search-params.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 7c1b4ba3ec147da5ed6c7b1639f102a540f94591 |
Latest deploy log | https://app.netlify.com/sites/sveltekit-search-params/deploys/656f2cc78d6b70000817c02d |
Deploy Preview | https://deploy-preview-47--sveltekit-search-params.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Closes #44
Summary by CodeRabbit