From bb63a73c9efc500f5ba79c3a979e72f5e99b1c14 Mon Sep 17 00:00:00 2001 From: lihbr Date: Tue, 30 May 2023 16:37:34 +0200 Subject: [PATCH] fix: allow client type extensions --- src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index 1417739..d7ac2af 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,6 @@ import type { - Client, ClientConfig, + CreateClient, cookie, predicate, } from "@prismicio/client"; @@ -179,7 +179,7 @@ type PrismicPluginOptionsWithClient = PrismicPluginOptionsBase & { * `usePrismic().client`. * @see Prismic client documentation {@link https://prismic.io/docs/technologies/javascript} */ - client: Client; + client: ReturnType; /** * Ensures type union is a strict or. @@ -284,7 +284,7 @@ export type PrismicPluginClient = { /** * A `@prismicio/client` instance. */ - client: Client; + client: ReturnType; /** * Query predicates from `@prismicio/client`.