znv
Version:
Parse your environment with Zod schemas
13 lines (12 loc) • 516 B
TypeScript
export { z } from "zod";
export * from "./parse-env.js";
export * from "./preprocessors.js";
export * from "./extra-schemas.js";
export type { DeepReadonly, DeepReadonlyArray, DeepReadonlyObject, } from "./util/type-helpers.js";
import { type ParseEnv } from "./parse-env.js";
/**
* Parses the passed environment object using the provided map of Zod schemas
* and returns the immutably-typed, parsed environment. Compatible with
* serverless and browser environments.
*/
export declare const parseEnv: ParseEnv;