Installation
npm install --save @types/dotenv-safe
Summary
This package contains type definitions for dotenv-safe (https://github.com/rolodato/dotenv-safe).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dotenv-safe.
import dotenv = require("dotenv");
export interface MissingEnvVarsError extends Error {
sample: string;
missing: string[];
}
export interface DotenvSafeOptions extends dotenv.DotenvConfigOptions {
path?: string | undefined;
example?: string | undefined;
sample?: string | undefined;
allowEmptyValues?: boolean | undefined;
}
export interface DotenvSafeConfigOutput extends dotenv.DotenvConfigOutput {
required: dotenv.DotenvParseOutput;
}
export function config(options?: DotenvSafeOptions): DotenvSafeConfigOutput;
Additional Details
Credits
These definitions were written by Stan Goldmann.