From 4c8664d7673771c3960648d2f8317942e22fbd1c Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Mon, 12 Jun 2023 17:21:26 +0200 Subject: [PATCH] fix: add `ClientPerspective` type export --- src/types.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 33b076bf..415cc604 100644 --- a/src/types.ts +++ b/src/types.ts @@ -28,6 +28,9 @@ export interface RequestOptions { signal?: AbortSignal } +/** @public */ +export type ClientPerspective = 'previewDrafts' | 'published' | 'raw' + /** @public */ export interface ClientConfig { projectId?: string @@ -35,7 +38,7 @@ export interface ClientConfig { /** @defaultValue true */ useCdn?: boolean token?: string - perspective?: 'previewDrafts' | 'published' | 'raw' + perspective?: ClientPerspective apiHost?: string apiVersion?: string proxy?: string