Skip to content

Commit

Permalink
chore: updating more types to be @beta
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanl17 committed Feb 7, 2025
1 parent cee8f5c commit b93014e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/sanity/src/core/perspective/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import {type ClientPerspective, type ReleaseId} from '@sanity/client'
import {type ReleaseDocument} from '../releases/store/types'

/**
* @internal
* @beta
*/
export type SelectedPerspective = ReleaseDocument | 'published' | 'drafts'

/**
* @internal
* @beta
*/
export type PerspectiveStack = ExtractArray<ClientPerspective>

/**
* @internal
* @beta
*/
export interface PerspectiveContextValue {
/* The selected perspective name, it could be a release or Published */
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/perspective/usePerspective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {type PerspectiveContextValue} from './types'
/**
* React hook that returns the current studio perspective and perspective stack.
*
* @public
* @beta
* @returns See {@link PerspectiveContextValue}
* @example Reading the current perspective stack
* ```ts
Expand Down
5 changes: 2 additions & 3 deletions packages/sanity/src/core/releases/store/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type ReleaseType = 'asap' | 'scheduled' | 'undecided'
*/
export type ReleaseState = 'active' | 'archived' | 'published' | 'scheduled' | 'scheduling'
/**
*@internal
*@beta
*/
export type ReleaseFinalDocumentState = {
/** Document ID */
Expand All @@ -24,8 +24,7 @@ export type ReleaseFinalDocumentState = {
}

/**
* TODO: When made `beta`, update the PublishDocumentVersionEvent to use this type
* @internal
* @beta
*/
export interface ReleaseDocument extends SanityDocument {
/**
Expand Down

0 comments on commit b93014e

Please sign in to comment.