UNPKG

@sanity/migrate

Version:

Tooling for running data migrations on Sanity.io projects

7 lines 498 B
import { createClient, type SanityClient } from '@sanity/client'; export declare function createContextClient(config: Parameters<typeof createClient>[0]): RestrictedClient; declare const ALLOWED_PROPERTIES: readonly ["fetch", "clone", "config", "withConfig", "getDocument", "getDocuments", "users", "projects"]; type AllowedMethods = (typeof ALLOWED_PROPERTIES)[number]; export type RestrictedClient = Pick<SanityClient, AllowedMethods>; export {}; //# sourceMappingURL=createContextClient.d.ts.map