-
Notifications
You must be signed in to change notification settings - Fork 414
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
Use in typescript will report type error. #730
Comments
I have to use const Title = styled(View)<Props>`
color: ${
// @ts-ignore
( props ) => props.color
}
`; |
same error |
It's not an issue, it's a legitimate type check error: if you use props-based values, Linaria converts them to css-variables and adds those variables to the |
Today I got the same error and see that it's closed without some solution. What should I do? // @ts-ignore doesn't work |
Brothers, I also encountered this problem, how to solve |
Guys, I'm so sorry. There was an error that makes impossible to wrap a class component. |
@Anber |
well, Can tell me when it will be released |
I want to know how to resolve it right now. |
Environment
Description
TS2345: Argument of type '(props: any) => any' is not assignable to parameter of type 'StaticPlaceholder'. Property '__linaria' is missing in type '(props: any) => any' but required in type 'StyledMeta'.
Reproducible Demo
index.tsx:
The text was updated successfully, but these errors were encountered: