Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@t3-oss/env-nextjs

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@t3-oss/env-nextjs - npm Package Compare versions

Comparing version 0.2.3-canary.edd0ea5 to 0.3.1-canary.eb363f3

4

dist/index.d.ts

@@ -19,3 +19,3 @@ import * as zod from 'zod';

[TKey in keyof TClient]: TKey extends `${TPrefix}${string}` ? TKey : never;
}[keyof TClient] | keyof TServer, string | undefined>;
}[keyof TClient] | keyof TServer, string | boolean | number | undefined>;
runtimeEnv?: never;

@@ -29,4 +29,4 @@ }

}
declare function createEnv<TServer extends Record<string, ZodType> = NonNullable<unknown>, TClient extends Record<`${ClientPrefix}${string}`, ZodType> = NonNullable<unknown>>({ runtimeEnv, ...opts }: Options<TServer, TClient>): (TClient extends Record<string, never> ? zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_15 extends object ? { [k_1 in keyof T_15]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]> extends infer T_13 ? { [k in keyof T_13]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_14 extends object ? { [k_1 in keyof T_14]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]>[k]; } : never : TServer extends Record<string, never> ? zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_18 extends object ? { [k_3 in keyof T_18]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]> extends infer T_16 ? { [k_2 in keyof T_16]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_17 extends object ? { [k_3 in keyof T_17]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]>[k_2]; } : never : (zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_21 extends object ? { [k_1 in keyof T_21]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]> extends infer T_19 ? { [k in keyof T_19]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_20 extends object ? { [k_1 in keyof T_20]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]>[k]; } : never) & (zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_24 extends object ? { [k_3 in keyof T_24]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]> extends infer T_22 ? { [k_2 in keyof T_22]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_23 extends object ? { [k_3 in keyof T_23]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]>[k_2]; } : never)) extends infer T ? { [TKey in keyof T]: (TClient extends Record<string, never> ? zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_3 extends object ? { [k_1 in keyof T_3]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]> extends infer T_1 ? { [k in keyof T_1]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_2 extends object ? { [k_1 in keyof T_2]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]>[k]; } : never : TServer extends Record<string, never> ? zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_6 extends object ? { [k_3 in keyof T_6]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]> extends infer T_4 ? { [k_2 in keyof T_4]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_5 extends object ? { [k_3 in keyof T_5]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]>[k_2]; } : never : (zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_9 extends object ? { [k_1 in keyof T_9]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]> extends infer T_7 ? { [k in keyof T_7]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TServer>, (zod.baseObjectOutputType<TServer> extends infer T_8 extends object ? { [k_1 in keyof T_8]: undefined extends zod.baseObjectOutputType<TServer>[k_1] ? never : k_1; } : never)[keyof TServer]>[k]; } : never) & (zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_12 extends object ? { [k_3 in keyof T_12]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]> extends infer T_10 ? { [k_2 in keyof T_10]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<TClient>, (zod.baseObjectOutputType<TClient> extends infer T_11 extends object ? { [k_3 in keyof T_11]: undefined extends zod.baseObjectOutputType<TClient>[k_3] ? never : k_3; } : never)[keyof TClient]>[k_2]; } : never))[TKey]; } : never;
declare function createEnv<TServer extends Record<string, ZodType> = NonNullable<unknown>, TClient extends Record<`${ClientPrefix}${string}`, ZodType> = NonNullable<unknown>>({ runtimeEnv, ...opts }: Options<TServer, TClient>): (zod.objectUtil.addQuestionMarks<{ [k_1 in keyof TServer]: TServer[k_1]["_output"]; }> extends infer T_3 extends object ? { [k in keyof T_3]: zod.objectUtil.addQuestionMarks<{ [k_1 in keyof TServer]: TServer[k_1]["_output"]; }>[k]; } : never) & (zod.objectUtil.addQuestionMarks<{ [k_2 in keyof TClient]: TClient[k_2]["_output"]; }> extends infer T_4 extends object ? { [k_1 in keyof T_4]: zod.objectUtil.addQuestionMarks<{ [k_2 in keyof TClient]: TClient[k_2]["_output"]; }>[k_1]; } : never) extends infer T ? { [P in keyof T]: ((zod.objectUtil.addQuestionMarks<{ [k_1 in keyof TServer]: TServer[k_1]["_output"]; }> extends infer T_1 extends object ? { [k in keyof T_1]: zod.objectUtil.addQuestionMarks<{ [k_1 in keyof TServer]: TServer[k_1]["_output"]; }>[k]; } : never) & (zod.objectUtil.addQuestionMarks<{ [k_2 in keyof TClient]: TClient[k_2]["_output"]; }> extends infer T_2 extends object ? { [k_1 in keyof T_2]: zod.objectUtil.addQuestionMarks<{ [k_2 in keyof TClient]: TClient[k_2]["_output"]; }>[k_1]; } : never))[P]; } : never;
export { createEnv };
{
"name": "@t3-oss/env-nextjs",
"version": "0.2.3-canary.edd0ea5",
"version": "0.3.1-canary.eb363f3",
"keywords": [

@@ -35,5 +35,6 @@ "create-t3-app",

"dependencies": {
"@t3-oss/env-core": "0.2.2"
"@t3-oss/env-core": "0.3.0"
},
"peerDependencies": {
"typescript": ">=4.7.2",
"zod": "^3.0.0"

@@ -40,0 +41,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc