@stackbit/cms-sanity
Version:
Stackbit Sanity CMS Interface
28 lines • 831 B
TypeScript
import * as StackbitTypes from '@stackbit/types';
export declare function fetchSchemaLegacy({ studioPath }: {
studioPath: string;
}): Promise<{
models: any;
}>;
export declare function fetchSchemaV3({ studioPath }: {
studioPath: string;
}): Promise<{
projectId: any;
dataset: any;
title: any;
models: any;
}>;
export declare function fetchSchema({ studioPath }: {
studioPath: string;
}): Promise<{
models: any;
}>;
export interface FetchSchemaOptions {
studioPath: string;
repoPath: string;
nodePath?: string;
spawnRunner?: StackbitTypes.UserCommandSpawner;
logger?: StackbitTypes.Logger;
}
export declare function spawnFetchSchema({ studioPath, nodePath, repoPath, spawnRunner, logger }: FetchSchemaOptions): Promise<any>;
//# sourceMappingURL=sanity-schema-fetcher.d.ts.map