Skip to content

Commit ec1f018

Browse files
committed
fix: allow transformDocument to return a partial document
1 parent 37fddbe commit ec1f018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export type ExportOptions = {
162162
* @param doc - The document to transform
163163
* @returns The transformed document
164164
*/
165-
transformDocument?: (doc: SanityDocument) => SanityDocument
165+
transformDocument?: (doc: SanityDocument) => Partial<SanityDocument>
166166

167167
/**
168168
* Optional progress callback that will be called periodically during the export.

0 commit comments

Comments
 (0)