UNPKG

envsafe-lite

Version:

Lightweight, type-safe environment variable parser for Node.js with zero dependencies.

14 lines (13 loc) 312 B
export interface BaseValidator<T> { _type: string; parse: (key: string, value: string | undefined) => T; } export interface StringValidatorOptions { default?: string; } export interface NumberValidatorOptions { default?: number; } export interface BoolValidatorOptions { default?: boolean; }