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 for fontWeight:
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 and strokeWidth appear to be missing.
I was taking a look at what it would take to get
@types/reactto usecsstypeinstead of its own internal definition forCSSProperties. So far I've run into the following issues:CSSPropertiesuses numeric literals forfontWeight:whereas
csstypeuses all string literals:Could this be changed to use numeric literals?
SVG properties such as
fillOpacity,strokeOpacityandstrokeWidthappear to be missing.