From 275a4b9730275e62f041f2f110519f72f1288847 Mon Sep 17 00:00:00 2001 From: Ash Date: Fri, 21 Jun 2024 12:40:05 +0100 Subject: [PATCH] feat(types): add `_version` field to `SanityDocument` and `SanityDocumentLike` --- packages/@sanity/types/src/documents/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@sanity/types/src/documents/types.ts b/packages/@sanity/types/src/documents/types.ts index 50a87fba5a4..c6ba8e53235 100644 --- a/packages/@sanity/types/src/documents/types.ts +++ b/packages/@sanity/types/src/documents/types.ts @@ -5,6 +5,7 @@ export interface SanityDocument { _createdAt: string _updatedAt: string _rev: string + _version?: Record [key: string]: unknown } @@ -21,6 +22,7 @@ export interface SanityDocumentLike { _createdAt?: string _updatedAt?: string _rev?: string + _version?: Record [key: string]: unknown }