We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
What you were expecting: I expect LayoutProps['error'] error prop to have type Error | undefined
Error | undefined
export interface LayoutProps extends CoreLayoutProps, Omit<HtmlHTMLAttributes<HTMLDivElement>, 'title'> { appBar?: ComponentType<AppBarProps>; classes?: any; className?: string; error?: ComponentType<{ error?: Error; errorInfo?: React.ErrorInfo; title?: string | ReactElement<any>; }>; menu?: ComponentType<MenuProps>; notification?: ComponentType; sidebar?: ComponentType<{ children: JSX.Element; }>; theme?: ThemeOptions; }
What happened instead:
react-admin/packages/ra-ui-materialui/src/layout/Layout.tsx
Line 189 in 8219644
Related code: As we can see from render for error, error prop has type Error | undefined | null
Error | undefined | null
Line 99 in 8219644
Environment
The text was updated successfully, but these errors were encountered:
Reproduced, thanks for the report
Sorry, something went wrong.
[TypeScript] Fix Error prop types
92ff269
Closes #6507
11b3b84
Closes marmelab#6507
fzaninotto
Successfully merging a pull request may close this issue.
What you were expecting:
I expect LayoutProps['error'] error prop to have type
Error | undefined
What happened instead:
react-admin/packages/ra-ui-materialui/src/layout/Layout.tsx
Line 189 in 8219644
Related code:
As we can see from render for error, error prop has type
Error | undefined | null
react-admin/packages/ra-ui-materialui/src/layout/Layout.tsx
Line 99 in 8219644
Environment
The text was updated successfully, but these errors were encountered: