diff --git a/packages/mui-material/src/OverridableComponent.d.ts b/packages/mui-material/src/OverridableComponent.d.ts index d9dd7b6e4813ee..143a9c534b033c 100644 --- a/packages/mui-material/src/OverridableComponent.d.ts +++ b/packages/mui-material/src/OverridableComponent.d.ts @@ -20,8 +20,8 @@ export interface OverridableComponent { */ component: C; } & OverrideProps, - ): JSX.Element; - (props: DefaultComponentProps): JSX.Element; + ): JSX.Element | null; + (props: DefaultComponentProps): JSX.Element | null; } /** diff --git a/packages/mui-types/index.d.ts b/packages/mui-types/index.d.ts index 2ee1b5fd7bf4ad..159d5ff5839e00 100644 --- a/packages/mui-types/index.d.ts +++ b/packages/mui-types/index.d.ts @@ -104,8 +104,8 @@ export interface OverridableComponent { */ component: C; } & OverrideProps, - ): JSX.Element; - (props: DefaultComponentProps): JSX.Element; + ): JSX.Element | null; + (props: DefaultComponentProps): JSX.Element | null; propTypes?: any; }