DefinitelyTyped/types/dotenv-safe/dotenv-safe-tests.ts
Fredrik Ohlin 404d5f02d7
🤖 Merge PR #46259 [dotenv-safe] Extend DotenvConfigOutput to match dotenv-safe output by @fohlin
* Extend DotenvConfigOutput to match dotenv-safe output

The return value of dotenv-safe.config() extends dotenv.config() by adding a `required` property, which is now reflected in the type structure.

Reference https://github.com/rolodato/dotenv-safe#usage

* Apply prettier on dotenv-safe

npm run prettier -- --write 'types/dotenv-safe/**/*.ts'
2020-07-28 11:00:33 -04:00

8 lines
145 B
TypeScript

import env = require('dotenv-safe');
env.config({
allowEmptyValues: true,
path: '/foo/bar/baz.env',
sample: '/foo/bar/qux.env',
});