Skip to content

Commit

Permalink
Add | null to other overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Dec 12, 2022
1 parent edd6dc2 commit 96ea00f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mui-material/src/OverridableComponent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface OverridableComponent<M extends OverridableTypeMap> {
component: C;
} & OverrideProps<M, C>,
): JSX.Element | null;
(props: DefaultComponentProps<M>): JSX.Element;
(props: DefaultComponentProps<M>): JSX.Element | null;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export interface OverridableComponent<M extends OverridableTypeMap> {
component: C;
} & OverrideProps<M, C>,
): JSX.Element | null;
(props: DefaultComponentProps<M>): JSX.Element;
(props: DefaultComponentProps<M>): JSX.Element | null;
propTypes?: any;
}

Expand Down

0 comments on commit 96ea00f

Please sign in to comment.