In the file attributes-to-props.d.ts
the return types of attributesToProps
function is a Object
with String
items.
But in the attributesToProps
function, setStyleProp
is call to transform CSSInline
to StyleObject
.
The return of the function is an StyleObject
and not a String
.
The result of this miss-typing is an error if you would like to get an CSSProperty
.
Update attributes-to-props.d.ts
with :
export type Attributes = Record<string, string>;
export type Props = Record<string, string> & {
style: Record<string, string>;
};
Thanks for creating this issue @EoleO. Would you like to open a PR?
@EoleO please review #245
Thank you for your responsiveness
@EoleO Of course, feel free to reopen if you are still experiencing an issue.