@prisma/config 6.5.0-dev.8 → 6.5.0-dev.80

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.
@@ -1,44 +0,0 @@
1
- import { ParseError } from 'effect/ParseResult';
2
- import { type PrismaConfigInternal } from './defineConfig';
3
- type LoadConfigFromFileInput = {
4
- /**
5
- * The path to the config file to load. If not provided, we will attempt to find a config file in the `configRoot` directory.
6
- */
7
- configFile?: string;
8
- /**
9
- * The directory to search for the config file in. Defaults to the current working directory.
10
- */
11
- configRoot?: string;
12
- };
13
- export type LoadConfigFromFileError = {
14
- _tag: 'ConfigFileNotFound';
15
- } | {
16
- _tag: 'TypeScriptImportFailed';
17
- error: Error;
18
- } | {
19
- _tag: 'ConfigFileParseError';
20
- error: ParseError;
21
- } | {
22
- _tag: 'UnknownError';
23
- error: Error;
24
- };
25
- export type ConfigFromFile = {
26
- resolvedPath: string;
27
- config: PrismaConfigInternal;
28
- error?: never;
29
- } | {
30
- resolvedPath: string;
31
- config?: never;
32
- error: LoadConfigFromFileError;
33
- } | {
34
- resolvedPath: null;
35
- config?: never;
36
- error?: never;
37
- };
38
- /**
39
- * Load a Prisma config file from the given directory.
40
- * This function may fail, but it will never throw.
41
- * The possible error is returned in the result object, so the caller can handle it as needed.
42
- */
43
- export declare function loadConfigFromFile({ configFile, configRoot, }: LoadConfigFromFileInput): Promise<ConfigFromFile>;
44
- export {};