Skip to content

Commit

Permalink
fix: export PrismicProvider props type
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Sep 16, 2021
1 parent 276f1db commit 848cd7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PrismicProvider.tsx
Expand Up @@ -70,7 +70,7 @@ export const PrismicContext = React.createContext<PrismicContextValue>({});
/**
* Props for `<PrismicProvider>`.
*/
type PrismicProviderProps = PrismicContextValue;
export type PrismicProviderProps = PrismicContextValue;

/**
* React context provider to share configuration for `@prismicio/react` components and hooks.
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
@@ -1,5 +1,8 @@
export { PrismicProvider } from "./PrismicProvider";
export type { PrismicContextValue } from "./PrismicProvider";
export type {
PrismicProviderProps,
PrismicContextValue,
} from "./PrismicProvider";

export { usePrismicContext } from "./usePrismicContext";

Expand Down

0 comments on commit 848cd7d

Please sign in to comment.