Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing leakage on global environment variable. #178

Open
CyrilQuandalle opened this issue Aug 2, 2022 · 2 comments
Open

Typing leakage on global environment variable. #178

CyrilQuandalle opened this issue Aug 2, 2022 · 2 comments

Comments

@CyrilQuandalle
Copy link

Hi.

I have just installed the version 5.3.0 of the library, and as soon as I do an import of it the typing of any variable in process.env (ex : process.env.MYVAR) goes from any to string | undefined.

Is it intentional ? I think that a library shouldn't have that kind of side effect.

Thanks in advance for your answer

@DamonOehlman
Copy link
Owner

@CyrilQuandalle agreed - if that is the case, that is very much unwanted. Will have a look at the typings and see if I can get to the bottom of things.

@jer-sen
Copy link

jer-sen commented May 25, 2023

Same issue due to /// <reference types="node" /> in the package d.ts. I think removing node from types in your tsconfig should fix it

"types": ["node"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants