Skip to content

Conversation

FourwingsY
Copy link
Contributor

fixes #188

The code below now does not show type errors.

const Colors = {
  text: '#000',
  highlight: '#25f'
}
const typo_body = {
  fontSize: 14,
  fontWeight: 500
}

const ButtonWithMixedInterpolation = styled.button`
  ${typo_body};
  color: ${Colors.highlight};
`;

@brijeshb42 brijeshb42 merged commit 9989784 into mui:master Dec 27, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type errors when interpolating into tagged template literal
3 participants