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
I am creating a small utility package that will contain all the styled-component themes with custom structure and a provider.
I have been able to set it up with a provider and I do get the values of theme when using in an external react app using the package.
The problem is with exporting the types of the structured theme, I need to use the same styled.d.ts definition of the theme in the utility package and the external app.
I don't want to copy paste and maintain the styled.d.ts manually between the projects.
Is there a way to share the types of the theme across the packages?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating a small utility package that will contain all the styled-component themes with custom structure and a provider.
I have been able to set it up with a provider and I do get the values of theme when using in an external react app using the package.
The problem is with exporting the types of the structured theme, I need to use the same
styled.d.ts
definition of the theme in the utility package and the external app.I don't want to copy paste and maintain the styled.d.ts manually between the projects.
Is there a way to share the types of the theme across the packages?
Beta Was this translation helpful? Give feedback.
All reactions