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
Hey 👋
I have one open issue to be picked up by someone, I'm looking for typescript type that will handle following case:
const stylesheet = createStyles(theme => ({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: { sm: theme.colors.oak, md: theme.colors.aloes, ':w[800]': theme.colors.fog }, // this works ok transform: [ { scale: 3 } ], shadowColor: theme.colors.oak, shadowOffset: { width: 0, height: { sm: 10, md: 20 } }, shadowOpacity: 0.3, shadowRadius: 4 } }))
but
const stylesheet = createStyles(theme => ({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: { sm: theme.colors.oak, md: theme.colors.aloes, ':w[800]': theme.colors.fog }, // this works in JS but is rejeted by TS transform: [ { scale: 3 }, { translateX: { sm: 20, md: 40 } } ], shadowColor: theme.colors.oak, shadowOffset: { width: 0, height: { sm: 10, md: 20 } }, shadowOpacity: 0.3, shadowRadius: 4 } }))
The text was updated successfully, but these errors were encountered:
Fixed with #12
Sorry, something went wrong.
No branches or pull requests
Hey 👋
I have one open issue to be picked up by someone, I'm looking for typescript type that will handle following case:
but
The text was updated successfully, but these errors were encountered: