@prisma/config 6.5.0-integration-fix-e2e-prisma-config-2.1 → 6.5.0-integration-fix-e2e-prisma-config-2.2
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 +10 -5
- package/dist/PrismaConfig.js +187 -306
- package/dist/defaultConfig.js +12 -4
- package/dist/defaultTestConfig.js +12 -4
- package/dist/defineConfig.js +12 -4
- package/dist/index.js +15 -16
- package/dist/loadConfigFromFile.js +15 -16
- package/package.json +3 -3
package/dist/PrismaConfig.d.ts
CHANGED
|
@@ -94,21 +94,26 @@ export declare const createPrismaConfigInternalShape: () => Shape.Struct<{
|
|
|
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
|
+
/**
|
|
98
|
+
* Brand the type to make it opaque, without exposing the `Effect/Brand` type to the public API.
|
|
99
|
+
* This is done to work around the following issues:
|
|
100
|
+
* - https://github.com/microsoft/rushstack/issues/1308
|
|
101
|
+
* - https://github.com/microsoft/rushstack/issues/4034
|
|
102
|
+
* - https://github.com/microsoft/TypeScript/issues/58914
|
|
103
|
+
*/
|
|
104
|
+
__brand: Shape.SchemaClass<typeof PRISMA_CONFIG_INTERNAL_BRAND, typeof PRISMA_CONFIG_INTERNAL_BRAND, never>;
|
|
97
105
|
}>;
|
|
98
|
-
type _PrismaConfigInternal = ReturnType<typeof createPrismaConfigInternalShape>['Type'];
|
|
99
106
|
/**
|
|
100
107
|
* The configuration for the Prisma Development Kit, after it has been parsed and processed
|
|
101
108
|
* by the `defineConfig` function.
|
|
102
109
|
* Thanks to the branding, this type is opaque and cannot be constructed directly.
|
|
103
110
|
*/
|
|
104
|
-
export type PrismaConfigInternal =
|
|
105
|
-
__brand: typeof PRISMA_CONFIG_INTERNAL_BRAND;
|
|
106
|
-
};
|
|
111
|
+
export type PrismaConfigInternal = ReturnType<typeof createPrismaConfigInternalShape>['Type'];
|
|
107
112
|
/**
|
|
108
113
|
* Parse a given input object to ensure it conforms to the `PrismaConfigInternal` type Shape.
|
|
109
114
|
* This function may fail, but it will never throw.
|
|
110
115
|
*/
|
|
111
116
|
export declare function parsePrismaConfigInternalShape(input: unknown): Either.Either<PrismaConfigInternal, ParseError>;
|
|
112
|
-
type MakeArgs = Parameters<ReturnType<typeof createPrismaConfigInternalShape>['make']>[0]
|
|
117
|
+
type MakeArgs = Omit<Parameters<ReturnType<typeof createPrismaConfigInternalShape>['make']>[0], '__brand'>;
|
|
113
118
|
export declare function makePrismaConfigInternal(makeArgs: MakeArgs): PrismaConfigInternal;
|
|
114
119
|
export {};
|