Skip to content

Commit

Permalink
refactor: format code with new Prettier version
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Jul 11, 2021
1 parent 816a058 commit 0da9a47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type PolymorphicPropsWithRef<P, T extends React.ElementType> = Merge<

type PolymorphicExoticComponent<
P = {},
T extends React.ElementType = React.ElementType
T extends React.ElementType = React.ElementType,
> = Merge<
React.ExoticComponent<P & { [key: string]: unknown }>,
{
Expand All @@ -42,23 +42,23 @@ type PolymorphicExoticComponent<

export type PolymorphicForwardRefExoticComponent<
P,
T extends React.ElementType
T extends React.ElementType,
> = Merge<
React.ForwardRefExoticComponent<P & { [key: string]: unknown }>,
PolymorphicExoticComponent<P, T>
>;

export type PolymorphicMemoExoticComponent<
P,
T extends React.ElementType
T extends React.ElementType,
> = Merge<
React.MemoExoticComponent<React.ComponentType<any>>,
PolymorphicExoticComponent<P, T>
>;

export type PolymorphicLazyExoticComponent<
P,
T extends React.ElementType
T extends React.ElementType,
> = Merge<
React.LazyExoticComponent<React.ComponentType<any>>,
PolymorphicExoticComponent<P, T>
Expand Down

0 comments on commit 0da9a47

Please sign in to comment.