Skip to content

Commit

Permalink
fix: allow client type extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed May 30, 2023
1 parent d680ecb commit bb63a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {
Client,
ClientConfig,
CreateClient,
cookie,
predicate,
} from "@prismicio/client";
Expand Down Expand Up @@ -179,7 +179,7 @@ type PrismicPluginOptionsWithClient = PrismicPluginOptionsBase & {
* `usePrismic().client`.
* @see Prismic client documentation {@link https://prismic.io/docs/technologies/javascript}
*/
client: Client;
client: ReturnType<CreateClient>;

/**
* Ensures type union is a strict or.
Expand Down Expand Up @@ -284,7 +284,7 @@ export type PrismicPluginClient = {
/**
* A `@prismicio/client` instance.
*/
client: Client;
client: ReturnType<CreateClient>;

/**
* Query predicates from `@prismicio/client`.
Expand Down

0 comments on commit bb63a73

Please sign in to comment.