-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Typescript error (3.4.3) #475
Comments
+1 here. Just updated my deps and grabbed 3.4.3, now a previously working code shouts:
The code uses import {createGlobalStyle} from "styled-components";
import {fontFace} from "polished";
const din = fontFace({
fontFamily: 'Din',
fontFilePath: '/assets/fonts/d-din-webfont',
});
const dinBold = fontFace({
fontFamily: 'Din',
fontFilePath: '/assets/fonts/d-din-bold-webfont',
fontWeight: 'bold',
});
const dinCondensed = fontFace({
fontFamily: 'Din Condensed',
fontFilePath: '/assets/fonts/d-dincondensed-webfont',
});
const dinCondensedBold = fontFace({
fontFamily: 'Din Condensed',
fontFilePath: '/assets/fonts/d-dincondensed-bold-webfont',
fontWeight: 'bold',
});
const GlobalStyle = createGlobalStyle`
${din}
${dinBold}
${dinCondensed}
${dinCondensedBold}
body {
margin: 0;
background-color: #383838;
color: white;
}
`;
export default GlobalStyle; |
Maybe this line breaks? |
🎉 This issue has been resolved in version 3.4.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@ivanov-v @leocavalcante Apologies, our TS test harness didn't catch this for some reason. v3.4.4 should address this, but we will await confirmation before closing. |
Now work without errors |
Thank you very much for the prompt fix. |
polished
version: 3.4.3JSS-in_CSS
library and version: styled-components 5.0Mixin/Helper/Shorthand you were using and how you were using it:
What you are seeing:
Type 'Styles' is not assignable to type 'string'.
What you expected to see:
Types must match
The text was updated successfully, but these errors were encountered: