I'm working on a component where I need to store an array of valid CSS properties, but the issue is that the properties are stored in camel case format in the CSSStyleDeclaration object. I require the properties in their original hyphenated form, like 'background-color' instead of 'backgroundColor'. Although I am aware of the React.CSSProperties type, it also uses camel-cased properties while allowing for unitless numeric values.
Is there a TypeScript type available to use the original hyphenated CSS property names?