Closed
Description
I was taking a look at what it would take to get @types/react
to use csstype
instead of its own internal definition for CSSProperties
. So far I've run into the following issues:
-
CSSProperties
uses numeric literals forfontWeight
:fontWeight?: CSSWideKeyword | "normal" | "bold" | "bolder" | "lighter" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
whereas
csstype
uses all string literals:type FontWeightProperty = All | "900" | "bold" | "bolder" | "lighter" | "100" | "200" | "normal" | "400" | "500" | "600" | "700" | "800" | "300";
Could this be changed to use numeric literals?
-
SVG properties such as
fillOpacity
,strokeOpacity
andstrokeWidth
appear to be missing.
Metadata
Metadata
Assignees
Labels
No labels