-
Notifications
You must be signed in to change notification settings - Fork 188
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
Stylesheet.create does not support strict TypeScript type checking or intellisense #392
Comments
I find this is very annoying as well, in addition the browser simply ignores any invalid property, so that manual errors are not detected. However, I think its intended to be like this, since not all CSS properties are declared in |
I think I did something related to this at Flexport. @dmnd can you check flow-typed-overrides for aphrodite? |
I had the same issue with emotion, and I believe it has to do with the pseudo or attribute selectors. |
CSSProperties
type does not support strict typing. It allows any property name to be used for a style. This prevents type checking and intellisense forStylesheet.create
.It appears this is due to
CSSPropertiesLossy
in the type.Example:
https://codesandbox.io/s/aphrodite-no-type-checking-itwip?file=/src/index.ts
The text was updated successfully, but these errors were encountered: