Skip to content

Commit

Permalink
Add default value to the generic parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Apr 29, 2023
1 parent c0827c4 commit 7c71aee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/mui-base/src/Option/Option.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ export type OptionProps<
> = PolymorphicProps<OptionTypeMap<OptionValue, {}, RootComponentType>, RootComponentType>;

export interface OptionType {
<OptionValue, RootComponentType extends React.ElementType>(
<
OptionValue,
RootComponentType extends React.ElementType = OptionTypeMap<OptionValue>['defaultComponent'],
>(
props: PolymorphicProps<OptionTypeMap<OptionValue>, RootComponentType>,
): JSX.Element | null;
propTypes?: any;
Expand Down

0 comments on commit 7c71aee

Please sign in to comment.