@prisma/config 6.5.0-integration-fix-e2e-prisma-config.1 → 6.5.0-integration-fix-e2e-prisma-config-2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PrismaConfig.d.ts +12 -7
- package/dist/PrismaConfig.js +22301 -48
- package/dist/defaultConfig.js +22172 -5
- package/dist/defaultTestConfig.js +22172 -5
- package/dist/defineConfig.js +22372 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.js +22668 -11
- package/dist/loadConfigFromFile.d.ts +2 -1
- package/dist/loadConfigFromFile.js +22542 -22
- package/package.json +4 -4
package/dist/PrismaConfig.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Schema as Shape } from 'effect';
|
|
2
|
-
import type { Either } from 'effect/Either';
|
|
1
|
+
import { Either, Schema as Shape } from 'effect';
|
|
3
2
|
import type { ParseError } from 'effect/ParseResult';
|
|
4
3
|
declare const PrismaSchemaConfigShape: Shape.Union<[Shape.Struct<{
|
|
5
4
|
/**
|
|
@@ -60,8 +59,9 @@ export type PrismaConfig = ReturnType<typeof createPrismaConfigShape>['Type'];
|
|
|
60
59
|
* Parse a given input object to ensure it conforms to the `PrismaConfig` type Shape.
|
|
61
60
|
* This function may fail, but it will never throw.
|
|
62
61
|
*/
|
|
63
|
-
export declare function parsePrismaConfigShape(input: unknown): Either<PrismaConfig, ParseError>;
|
|
64
|
-
|
|
62
|
+
export declare function parsePrismaConfigShape(input: unknown): Either.Either<PrismaConfig, ParseError>;
|
|
63
|
+
declare const PRISMA_CONFIG_INTERNAL_BRAND: unique symbol;
|
|
64
|
+
export declare const createPrismaConfigInternalShape: () => Shape.Struct<{
|
|
65
65
|
/**
|
|
66
66
|
* Whether features with an unstable API are enabled.
|
|
67
67
|
*/
|
|
@@ -94,16 +94,21 @@ export declare const createPrismaConfigInternalShape: () => Shape.brand<Shape.St
|
|
|
94
94
|
* It's set to `null` if no config file was found and only default config is applied.
|
|
95
95
|
*/
|
|
96
96
|
loadedFromFile: Shape.NullOr<typeof Shape.String>;
|
|
97
|
-
}
|
|
97
|
+
}>;
|
|
98
|
+
type _PrismaConfigInternal = ReturnType<typeof createPrismaConfigInternalShape>['Type'];
|
|
98
99
|
/**
|
|
99
100
|
* The configuration for the Prisma Development Kit, after it has been parsed and processed
|
|
100
101
|
* by the `defineConfig` function.
|
|
101
102
|
* Thanks to the branding, this type is opaque and cannot be constructed directly.
|
|
102
103
|
*/
|
|
103
|
-
export type PrismaConfigInternal =
|
|
104
|
+
export type PrismaConfigInternal = _PrismaConfigInternal & {
|
|
105
|
+
__brand: typeof PRISMA_CONFIG_INTERNAL_BRAND;
|
|
106
|
+
};
|
|
104
107
|
/**
|
|
105
108
|
* Parse a given input object to ensure it conforms to the `PrismaConfigInternal` type Shape.
|
|
106
109
|
* This function may fail, but it will never throw.
|
|
107
110
|
*/
|
|
108
|
-
export declare function parsePrismaConfigInternalShape(input: unknown): Either<PrismaConfigInternal, ParseError>;
|
|
111
|
+
export declare function parsePrismaConfigInternalShape(input: unknown): Either.Either<PrismaConfigInternal, ParseError>;
|
|
112
|
+
type MakeArgs = Parameters<ReturnType<typeof createPrismaConfigInternalShape>['make']>[0];
|
|
113
|
+
export declare function makePrismaConfigInternal(makeArgs: MakeArgs): PrismaConfigInternal;
|
|
109
114
|
export {};
|