I am encountering an error that is asking me to code the following types in the root tag:
No overload matches this call.
Overload 1 of 2, '(style: Styles<Theme, {}, "root">, options?: Pick<WithStylesOptions<Theme>, "flip" | "element" | "defaultTheme" | "name" | "media" | "meta" | "index" | "link" | "generateId" | "classNamePrefix">): (props?: any) => Record<...>', gave the following error.
Type 'string' is not assignable to type 'CSSProperties | CreateCSSProperties<{}> | PropsFunc<{}, CreateCSSProperties<{}>>'
This is new territory for me and I'm unsure how to proceed. The code can be found here: https://codesandbox.io/s/github/pedroRelvas/HowToTypeTheStyleRoot (The error is in the demo.tsx file). Could you please provide some guidance on resolving this issue?
Thank you.