Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Jun 21, 2021
1 parent 19869e8 commit e7e4243
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/components/src/ui/context/polymorphic-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,11 @@ export type PolymorphicComponent<
IsPolymorphic extends boolean
> = {
< TT extends React.ElementType >(
props: PolymorphicComponentProps<
O,
TT,
IsPolymorphic extends true ? true : false
> &
props: PolymorphicComponentProps< O, TT, IsPolymorphic > &
( IsPolymorphic extends true ? { as: TT } : { as: never } )
): JSX.Element | null;
(
props: PolymorphicComponentProps<
O,
T,
IsPolymorphic extends true ? true : false
>
props: PolymorphicComponentProps< O, T, IsPolymorphic >
): JSX.Element | null;
displayName?: string;
/**
Expand Down

0 comments on commit e7e4243

Please sign in to comment.