mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Dotenv load deprecated since v7.0.0 (#34287)
This commit is contained in:
committed by
Ron Buckton
parent
53b73abbb3
commit
07fb19f5dc
@@ -3,7 +3,7 @@ import dotenv = require("dotenv");
|
||||
const env = dotenv.config();
|
||||
const dbUrl: string | null = env.error || !env.parsed ? null : env.parsed["BASIC"];
|
||||
|
||||
dotenv.load({
|
||||
dotenv.config({
|
||||
path: ".env-example",
|
||||
encoding: "utf8",
|
||||
debug: true
|
||||
|
||||
Vendored
+1
@@ -62,4 +62,5 @@ export interface DotenvConfigOutput {
|
||||
*
|
||||
*/
|
||||
export function config(options?: DotenvConfigOptions): DotenvConfigOutput;
|
||||
/** @deprecated since v7.0.0 Use config instead. */
|
||||
export const load: typeof config;
|
||||
|
||||
Reference in New Issue
Block a user