When using Typescript in a React App, the ThemeProvider FC does not support children to be passed.

A custom workaround I made is:
constCustomThemeProvider: React.FC<ThemeProviderProps&{children: ReactNode}>=({ children, ...props})=>{return<ThemeProvider{...props}>{children}</ThemeProvider>;};But it would be handy to include the children in the ThemeProviderProps:
exporttypeThemeProviderProps={theme?: ThemecolorMode?: ColorModeWithAutodayScheme?: stringnightScheme?: stringpreventSSRMismatch?: booleanchildren?: React.ReactNode}
When using Typescript in a React App, the ThemeProvider FC does not support children to be passed.

A custom workaround I made is:
But it would be handy to include the children in the ThemeProviderProps: