Skip to content

Commit

Permalink
fix: use more correct internalLinkComponent/externalLinkComponent type
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Jul 13, 2021
1 parent 10d5dc3 commit 281e27c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PrismicProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import * as React from "react";
import * as prismic from "@prismicio/client";
import * as prismicH from "@prismicio/helpers";

import { LinkProps } from "./PrismicLink";

export type PrismicContextValue = {
client?: prismic.Client;
linkResolver?: prismicH.LinkResolverFunction;
richTextComponents?: Record<string, string | React.ComponentType>;
internalLinkComponent?: string | React.ComponentType;
externalLinkComponent?: string | React.ComponentType;
internalLinkComponent?: string | React.ComponentType<LinkProps>;
externalLinkComponent?: string | React.ComponentType<LinkProps>;
children?: React.ReactNode;
};

Expand Down

0 comments on commit 281e27c

Please sign in to comment.