@prisma/sdk
Version:
20 lines (19 loc) • 658 B
TypeScript
import type { DataSource, GeneratorConfig } from '@prisma/generator-helper';
export interface ConfigMetaFormat {
datasources: DataSource[] | [];
generators: GeneratorConfig[] | [];
warnings: string[] | [];
}
export declare type GetConfigOptions = {
datamodel: string;
cwd?: string;
prismaPath?: string;
datamodelPath?: string;
retry?: number;
ignoreEnvVarErrors?: boolean;
};
export declare class GetConfigError extends Error {
readonly _error?: Error | undefined;
constructor(message: string, _error?: Error | undefined);
}
export declare function getConfig(options: GetConfigOptions): Promise<ConfigMetaFormat>;