Skip to content

Commit

Permalink
fix: add ClientPerspective type export
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Jun 12, 2023
1 parent 74a02f8 commit 4c8664d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ export interface RequestOptions {
signal?: AbortSignal
}

/** @public */
export type ClientPerspective = 'previewDrafts' | 'published' | 'raw'

/** @public */
export interface ClientConfig {
projectId?: string
dataset?: string
/** @defaultValue true */
useCdn?: boolean
token?: string
perspective?: 'previewDrafts' | 'published' | 'raw'
perspective?: ClientPerspective
apiHost?: string
apiVersion?: string
proxy?: string
Expand Down

0 comments on commit 4c8664d

Please sign in to comment.