mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-08 17:19:27 +08:00
fix(dotenv): add missing "load" alias
This commit is contained in:
@@ -11,6 +11,8 @@ dotenv.config({
|
||||
encoding: 'utf8'
|
||||
});
|
||||
|
||||
dotenv.load();
|
||||
|
||||
const parsed = dotenv.parse("ENVIRONMENT=production\nDEBUG=no\n");
|
||||
const debug: string = parsed['DEBUG'];
|
||||
|
||||
|
||||
1
types/dotenv/index.d.ts
vendored
1
types/dotenv/index.d.ts
vendored
@@ -20,6 +20,7 @@ export function parse(src: string | Buffer): {[name: string]: string};
|
||||
* Example: 'KEY=value' becomes { parsed: { KEY: 'value' } }
|
||||
*/
|
||||
export function config(options?: DotenvOptions): DotenvResult;
|
||||
export const load: typeof config;
|
||||
|
||||
export interface DotenvOptions {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user