@prisma/config 7.1.0-dev.34 → 7.1.0-dev.35

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -47,7 +47,13 @@ declare type EnumsConfigShape = {
47
47
  external?: string[];
48
48
  };
49
49
 
50
- export declare function env<Env extends Record<string, string | undefined>>(name: keyof Env & string): string;
50
+ export declare function env(name: string): string;
51
+
52
+ export declare function env<Env>(name: EnvKey<Env> & string): string;
53
+
54
+ declare type EnvKey<Env> = keyof {
55
+ [K in keyof Env as Env[K] extends string | undefined ? K : never]: Env[K];
56
+ };
51
57
 
52
58
  declare type ExperimentalConfig = {
53
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "7.1.0-dev.34",
3
+ "version": "7.1.0-dev.35",
4
4
  "description": "Internal package used to define and read Prisma configuration files",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "devDependencies": {
21
21
  "dotenv": "17.2.3",
22
22
  "vitest": "3.2.4",
23
- "@prisma/debug": "7.1.0-dev.34",
24
- "@prisma/get-platform": "7.1.0-dev.34"
23
+ "@prisma/debug": "7.1.0-dev.35",
24
+ "@prisma/get-platform": "7.1.0-dev.35"
25
25
  },
26
26
  "files": [
27
27
  "dist"