-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change Array
to ReadonlyArray
in CSS type declarations
#3141
Conversation
… to change in `csstype` (issue emotion-js#3136)
🦋 Changeset detectedLatest commit: b7312b8 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 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b7312b8:
|
@Cerber-Ursi Note that according to CONTRIBUTING.md you need to make a changeset to get things released. And also we'd be grateful if you had the time to look into the build error. |
We should also have a type-level test that will showcase that both mutable and readonly arrays can be used now |
Done. Misunderstood the rules - thought somehow that it's expected to be done when preparing the release (not just for any change in the release) and that it's expected to be done by the one actually releasing; I see now that this is incorrect.
It's actually somewhat cryptic. The problem is with this code: // $ExpectError
css`
position: relative;
flexgrow: ${() => 20};
` ...and TypeScript throws the error on the interpolation, not on the
Added some fields to |
Managed to pull off the fix for build. Actually, this change seems to have slightly improved ergonomics for For the record, here's the problem:
This looks like a subtle unexpected improvement, since now the errors are more precise. But the negative part was that the old test - which had |
What:
[email protected]
changed the type of multi-valued fallback CSS properties fromarray
toreadonly array
- frenic/csstype@46694de. This merge request follows that change, retypingArrayCSSInterpolation
fromArray
toReadonlyArray
.Why:
This change is created in response to issue #3136.
Checklist: