Skip to content

Commit

Permalink
fix: restore default link component types
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Nov 23, 2021
1 parent 3f44c69 commit 9d6f366
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/PrismicLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,13 @@ const defaultExternalComponent = "a";
* link is internal or external.
*/
export const PrismicLink = <
InternalComponent extends string | React.ComponentType<LinkProps>,
ExternalComponent extends string | React.ComponentType<LinkProps>,
LinkResolverFunction extends prismicH.LinkResolverFunction,
InternalComponent extends
| string
| React.ComponentType<LinkProps> = typeof defaultInternalComponent,
ExternalComponent extends
| string
| React.ComponentType<LinkProps> = typeof defaultExternalComponent,
LinkResolverFunction extends prismicH.LinkResolverFunction = prismicH.LinkResolverFunction,
>(
props: PrismicLinkProps<
InternalComponent,
Expand Down

0 comments on commit 9d6f366

Please sign in to comment.