Skip to content

Commit

Permalink
feat(types): add _version field to SanityDocument and `SanityDocu…
Browse files Browse the repository at this point in the history
…mentLike`
  • Loading branch information
juice49 committed Jun 24, 2024
1 parent 2d0fdf9 commit 275a4b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@sanity/types/src/documents/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface SanityDocument {
_createdAt: string
_updatedAt: string
_rev: string
_version?: Record<string, never>
[key: string]: unknown
}

Expand All @@ -21,6 +22,7 @@ export interface SanityDocumentLike {
_createdAt?: string
_updatedAt?: string
_rev?: string
_version?: Record<string, never>
[key: string]: unknown
}

Expand Down

0 comments on commit 275a4b9

Please sign in to comment.