From d008493f7c43605c2c4ab73a44c4b9ca32039c39 Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Thu, 2 May 2024 10:41:19 -0700 Subject: [PATCH] Make component prop optional --- packages/mui-material/src/OverridableComponent.d.ts | 2 +- packages/mui-types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-material/src/OverridableComponent.d.ts b/packages/mui-material/src/OverridableComponent.d.ts index 1a65de60e6c1f5..01151e02f6bb6d 100644 --- a/packages/mui-material/src/OverridableComponent.d.ts +++ b/packages/mui-material/src/OverridableComponent.d.ts @@ -18,7 +18,7 @@ export interface OverridableComponent { * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: RootComponent; + component?: RootComponent; } & OverrideProps, ): 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 64daa8cb6bb7bc..d03882a70a1e29 100644 --- a/packages/mui-types/index.d.ts +++ b/packages/mui-types/index.d.ts @@ -99,7 +99,7 @@ export interface OverridableComponent { * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: C; + component?: C; } & OverrideProps, ): JSX.Element | null; (props: DefaultComponentProps): JSX.Element | null;