DotenvConfigOptions interface missing new processEnv field
JstnMcBrd opened this issue · 3 comments
JstnMcBrd commented
TypeScript gives the following error when trying to use the new processEnv
option:
I believe this is because the interface for DotenvConfigOptions
in main.d.ts does not include the processEnv
field yet.
Until this is fixed, simply asserting the type is a valid workaround.
motdotla commented
Thank you. Repairing this now. The new DOTENV_KEY
option is also missing from the type file.
motdotla commented
A couple examples added here:
- https://github.com/dotenv-org/examples/tree/master/dotenv-typescript-custom-target
- https://github.com/dotenv-org/examples/tree/master/dotenv-vault-typescript-custom-target
Released as 16.3.1