gt-sanity 4.0.10 → 4.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -175,10 +175,14 @@ declare type FieldMatcher = {
175
175
  }[];
176
176
  };
177
177
 
178
+ /**
179
+ * Resolves the draft for a document id, falling back to the published copy.
180
+ * Returns `undefined` when neither exists.
181
+ */
178
182
  export declare const findLatestDraft: (
179
183
  documentId: string,
180
184
  client: SanityClient,
181
- ) => Promise<SanityDocument>;
185
+ ) => Promise<SanityDocument | undefined>;
182
186
 
183
187
  declare const gt: GT;
184
188