Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Apr 28, 2023
1 parent 78a377b commit d8484ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mui-base/src/Option/Option.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { DefaultComponentProps, Simplify } from '@mui/types';
import { Simplify } from '@mui/types';
import { UseOptionRootSlotProps } from '../useOption';
import { PolymorphicProps, SlotComponentProps } from '../utils';

Expand Down Expand Up @@ -59,13 +59,13 @@ export type OptionProps<
RootComponentType extends React.ElementType = OptionTypeMap<OptionValue>['defaultComponent'],
> = PolymorphicProps<OptionTypeMap<OptionValue, {}, RootComponentType>, RootComponentType>;

export interface OptionType {
export type OptionType = {
<OptionValue, RootComponentType extends React.ElementType>(
props: PolymorphicProps<OptionTypeMap<OptionValue>, RootComponentType>,
): JSX.Element | null;
<OptionValue>(props: DefaultComponentProps<OptionTypeMap<OptionValue>>): JSX.Element | null;
propTypes?: any;
}
displayName?: string | undefined;
};

export type OptionOwnerState<OptionValue> = Simplify<
OptionOwnProps<OptionValue> & {
Expand Down

0 comments on commit d8484ac

Please sign in to comment.