UNPKG

@blitzjs/installer

Version:

Package installation for the Blitz CLI

18 lines (17 loc) 592 B
import { Generator } from '@mrleebo/prisma-ast'; /** * Adds a generator to your schema.prisma data model. * * @param source - schema.prisma source file contents * @param generatorProps - the generator to add * @returns The modified schema.prisma source * @example Usage * ``` * addPrismaGenerator(source, { type: "generator", name: "nexusPrisma", assignments: [{type: "assignment", key: "provider", value: '"nexus-prisma"'}], }) * ``` */ export declare function addPrismaGenerator(source: string, generatorProps: Generator): Promise<string>;