@prisma/config 6.4.0-dev.43 → 6.4.0-dev.45

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,4 +1,5 @@
1
- import { PrismaConfig } from './defineConfig';
1
+ import { ParseError } from 'effect/ParseResult';
2
+ import type { PrismaConfig } from './defineConfig';
2
3
  type LoadConfigFromFileInput = {
3
4
  /**
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.
@@ -16,18 +17,23 @@ export type LoadConfigFromFileError = {
16
17
  error: Error;
17
18
  } | {
18
19
  _tag: 'ConfigFileParseError';
20
+ error: ParseError;
19
21
  } | {
20
22
  _tag: 'UnknownError';
21
23
  error: Error;
22
24
  };
23
25
  export type ConfigFromFile = {
24
26
  resolvedPath: string;
25
- config: PrismaConfig;
27
+ config: PrismaConfig<any>;
26
28
  error?: never;
27
29
  } | {
28
- resolvedPath: string | null;
30
+ resolvedPath: string;
31
+ config?: never;
32
+ error: LoadConfigFromFileError;
33
+ } | {
34
+ resolvedPath: null;
29
35
  config?: never;
30
- error?: LoadConfigFromFileError;
36
+ error?: never;
31
37
  };
32
38
  /**
33
39
  * Load a Prisma config file from the given directory.