* 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)
| 281 | * This function may fail, but it will never throw. |
| 282 | */ |
| 283 | function 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 | |
| 292 | const PRISMA_CONFIG_INTERNAL_BRAND = Symbol.for('PrismaConfigInternal') |
| 293 |
no test coverage detected