We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
css={…}
cssMap()
Describe the bug
There's no type protection when consuming cssMap incorrectly, meaning TypeScript will allow code that won't compile properly.
cssMap
To Reproduce
For raw cssMap, jump into https://github.com/atlassian-labs/compiled/blob/master/packages/react/src/css-map/__tests__/index.test.tsx#L29 and remove .danger
.danger
-const Foo = () => <div css={styles.danger}>hello world</div>; +const Foo = () => <div css={styles}>hello world</div>;
Same, for the strict version:
compiled/packages/react/src/create-strict-api/__tests__/index.test.tsx
Line 162 in f093635
Expected behavior
These should both have a type error.
Screenshots
No error 😞
The text was updated successfully, but these errors were encountered:
Thanks for raising this!
Sorry, something went wrong.
No branches or pull requests
Describe the bug
There's no type protection when consuming
cssMap
incorrectly, meaning TypeScript will allow code that won't compile properly.To Reproduce
For raw
cssMap
, jump into https://github.com/atlassian-labs/compiled/blob/master/packages/react/src/css-map/__tests__/index.test.tsx#L29 and remove.danger
Same, for the strict version:
compiled/packages/react/src/create-strict-api/__tests__/index.test.tsx
Line 162 in f093635
Expected behavior
These should both have a type error.
Screenshots
No error 😞
The text was updated successfully, but these errors were encountered: