zod-config
Version:
Load configuration variables from multiple sources with flexible adapters, ensuring type safety with Zod.
12 lines (9 loc) • 409 B
TypeScript
import { B as BaseAdapterProps, b as SyncAdapter } from './types-6327f0b9.js';
import 'zod/v3';
import 'zod/v4/core';
type EnvAdapterProps = BaseAdapterProps & {
customEnv?: Record<string, any>;
nestingSeparator?: string;
};
declare const envAdapter: ({ customEnv, regex, silent, keyMatching, transform, nestingSeparator, }?: EnvAdapterProps) => SyncAdapter;
export { EnvAdapterProps, envAdapter };