-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Whenever you wrap something with the ThemeProvider in order to customize the theme, Typescript complains about this:
Property 'children' does not exist on type 'IntrinsicAttributes & ThemeProviderProps'
In order to solve it I had to go to ThemeProvider.d.ts and change line 34 from
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
to
export declare const ThemeProvider: React.FC<PropsWithChildren<ThemeProviderProps>>;
It looks like this is simply a TS typing issue. I would open a PR myself but unfortunately I don't have much time lately.
Metadata
Metadata
Assignees
Labels
No labels