MCPcopy
hub / github.com/prisma/prisma / getGenerator

Function getGenerator

packages/internals/src/get-generators/getGenerators.ts:333–336  ·  view source on GitHub ↗
(options: GetGeneratorOptions)

Source from the content-addressed store, hash-verified

331 * @param printDownloadProgress `boolean` to print download progress or not
332 */
333export async function getGenerator(options: GetGeneratorOptions): Promise<Generator> {
334 const generators = await getGenerators(options)
335 return generators[0]
336}
337
338export function skipIndex<T = any>(arr: T[], index: number): T[] {
339 return [...arr.slice(0, index), ...arr.slice(index + 1)]

Callers 2

generator.test.tsFile · 0.90
generator.test.tsFile · 0.90

Calls 1

getGeneratorsFunction · 0.85

Tested by

no test coverage detected