Skip to content

Commit

Permalink
Fix issue with RenderAsComponent type
Browse files Browse the repository at this point in the history
  • Loading branch information
davepwsmith authored Apr 10, 2021
1 parent fc544b8 commit 7ac0b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ type RenderAsComponentProps<

export type OmitKeys<T, U> = Pick<T, Exclude<keyof T, U>>;

export type RenderAsComponent = string | React.ComponentType<never>;
export type RenderAsComponent = React.ElementType;

export type ElementProps<
TProps,
Expand Down

0 comments on commit 7ac0b51

Please sign in to comment.