znv
Version:
Parse your environment with Zod schemas
12 lines (11 loc) • 460 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.
*/
export declare const parseEnv: ParseEnv;