You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Admittedly I've very very new to TS, so I'm just coming to terms with all the syntax and the demands for different definitions of types. However, this seems like something that almost EVERY user of styled-components would like to do, but I can't find reference to this error anywhere.
The first demo of such a use case appears here in their docs: https://styled-components.com/docs/basics#adapting-based-on-props
Either way this issue is not specific to styled-componets. If my suggestion didn't help I would refer you to stackoverflow.com. It would help a lot if you would be so kind and link the created question and close this issue.
@types/styles-components
package and had problems.Definitions by:
inindex.d.ts
) so they can respond.Admittedly I've very very new to TS, so I'm just coming to terms with all the syntax and the demands for different definitions of types. However, this seems like something that almost EVERY user of styled-components would like to do, but I can't find reference to this error anywhere.
The first demo of such a use case appears here in their docs: https://styled-components.com/docs/basics#adapting-based-on-props
I've checked the
styled-components
typescript section and doesn't reference this usage at all: https://styled-components.com/docs/api#using-custom-propsI've done my searching and the closest I can get is this issue: #39136
But I don't really understand if this is related to generics or something else.
The text was updated successfully, but these errors were encountered: