Skip to content

Commit 6026f1d

Browse files
authoredMar 13, 2025··
chore(core): tag getDocumentVariantType as @public (#8916)
1 parent 79c62d0 commit 6026f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/sanity/src/core/util/getDocumentVariantType.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {isDraftId, isVersionId} from './draftUtils'
55
* Draft documents are prefixed with `drafts.`.
66
* Version documents are prefixed with `versions.<versionName>`
77
* The rest are considered published documents.
8-
* @beta
8+
* @public
99
*/
1010
export type DocumentVariantType = 'draft' | 'version' | 'published'
1111

@@ -14,7 +14,7 @@ export type DocumentVariantType = 'draft' | 'version' | 'published'
1414
* If it's a document that starts with `version.` it's a `version` document.
1515
* If it's a document that starts with `drafts.` it's a `draft` document.
1616
* Otherwise, it's a `published` document.
17-
* @beta
17+
* @public
1818
* */
1919
export function getDocumentVariantType(documentId: string): DocumentVariantType {
2020
if (isDraftId(documentId)) return 'draft'

0 commit comments

Comments
 (0)
Please sign in to comment.