UNPKG

@prisma/sdk

Version:
20 lines (19 loc) 637 B
import type { DataSource, DMMF, GeneratorConfig } from '@prisma/generator-helper'; export interface ConfigMetaFormat { datasources: DataSource[]; generators: GeneratorConfig[]; warnings: string[]; } export declare type GetDMMFOptions = { datamodel?: string; cwd?: string; prismaPath?: string; datamodelPath?: string; retry?: number; previewFeatures?: string[]; }; export declare class GetDmmfError extends Error { readonly _error?: Error | undefined; constructor(message: string, _error?: Error | undefined); } export declare function getDMMF(options: GetDMMFOptions): Promise<DMMF.Document>;