MCPcopy
hub / github.com/prisma/prisma / parsePrismaConfigShape

Function parsePrismaConfigShape

packages/config/src/PrismaConfig.ts:283–290  ·  view source on GitHub ↗

* Parse a given input object to ensure it conforms to the `PrismaConfig` type Shape. * This function may fail, but it will never throw.

(input: unknown)

Source from the content-addressed store, hash-verified

281 * This function may fail, but it will never throw.
282 */
283function parsePrismaConfigShape(input: unknown): Either.Either<PrismaConfig, Error> {
284 return pipe(
285 Shape.decodeUnknownEither(PrismaConfigShape, {})(input, {
286 onExcessProperty: 'error',
287 }),
288 Either.flatMap(validateExperimentalFeatures),
289 )
290}
291
292const PRISMA_CONFIG_INTERNAL_BRAND = Symbol.for('PrismaConfigInternal')
293

Callers 1

parseDefaultExportFunction · 0.85

Calls 1

pipeFunction · 0.50

Tested by

no test coverage detected