Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
Ran into an issue where i wanted to use the type ThemeStyle
(h1, body2, etc) from createTypography.d.ts
to type a prop on a wrapper i made so i didn't have to re-type the long union type in my own project.
Upgraded to the latest version of material and noticed the build broke saying that it couldn't find the type ThemeStyle
. Did some digging and found this PR #19269 which renamed the ThemeStyle
type to Variant
(which makes total sense).
Per a comment in there it looks like nested modules more than one level deep are considered "private".
Would be nice if we could have access to some of those types as TS developers to make typing a little easier/more consistent.
Not sure if there is a way to figure out which types could be exported from the root or it's just a matter of going component to component and making a judgement call.
Motivation 🔦
Types are awesome, let's use them more!