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 10, 2025
1 parent 2742aa9 commit 6443dbe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/sanity/src/core/perspective/usePerspective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import {PerspectiveContext} from 'sanity/_singletons'
import {type PerspectiveContextValue} from './types'

/**
* @beta
* @hidden
* @internal
*/
export function usePerspective(): PerspectiveContextValue {
const context = useContext(PerspectiveContext)
Expand Down
19 changes: 15 additions & 4 deletions packages/sanity/src/core/releases/store/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,26 @@ import {RELEASE_DOCUMENT_TYPE} from './constants'
import {type MetadataWrapper} from './createReleaseMetadataAggregator'
import {type ReleasesReducerAction, type ReleasesReducerState} from './reducer'

/** @internal */
/**
* @beta
*/
export type ReleaseType = 'asap' | 'scheduled' | 'undecided'

/**
*@internal
* @beta
*/
export type ReleaseState = 'active' | 'archived' | 'published' | 'scheduled' | 'scheduling'
export type ReleaseState =
| 'active'
| 'archiving'
| 'unarchiving'
| 'archived'
| 'published'
| 'publishing'
| 'scheduled'
| 'scheduling'

/**
*@beta
* @beta
*/
export type ReleaseFinalDocumentState = {
/** Document ID */
Expand Down

0 comments on commit 6443dbe

Please sign in to comment.