-
Notifications
You must be signed in to change notification settings - Fork 1
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
Replace union member CSS with any to speed up type checking massively. #1
base: canary
Are you sure you want to change the base?
Conversation
packages/react/types/css-util.d.ts
Outdated
@@ -95,9 +95,9 @@ export type CSS< | |||
[K: string]: ( | |||
| number | |||
| string | |||
| CSS<Media, Theme, ThemeMap, Utils> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this mean that we lose type completion on nested css objects/properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have an example where that would apply? I think line 30's member should handle most properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably adopt the standard publishing practices for open source repos for this repo. Typically you would land a PR that contains changes. Then make a separate PR that updates the package version. And only once that has landed, publish a new version. That way we actually adhere to semver and are not unnecessarily publishing packages with changes that are "in-flight" |
5b1b1d2
to
41e14d1
Compare
See stitchesjs#1038 (comment)