Closed KutnerUri closed 2 years ago
Hello, v3 changed the way Properties are exposed (CSSProperties). The following should work:
import type * as CSS from 'csstype';
const props: CSS.Properties = {
height: '3px',
};
const a = props.height;
Cheers
I guess it's React.CSSProperties
in your example. I don't get any errors at my end so I'm not able to assist you.
Getting this very weird error when trying to read
height
property:For example:
any ideas?
using version
^3.0.2
, coming fromtypes/react
:18.0.7