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

fix(types): changed NodeJS.ProcessEnv type to Record in node-config-provider #4319

Merged
merged 2 commits into from
Jan 25, 2023

Conversation

froggydood
Copy link
Contributor

node-config-provider

Description

Changed the NodeJS.ProcessEnv type (in the node-config-provider package), to a Record<string, string | undefined> type. This removes the dependency on @types/node for the node-config-provider. This means that when the types are compiled there is no reliance on it and it can be therefore used in more non-node environments, for example cloudflare worker environments, without any type mismatches or errrors.

Testing

Changed the type of envVarGetter variable in the fromEnv.spec.ts file, to match the new type file. Because its only a type change, there is only minimal test changes.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@froggydood
Copy link
Contributor Author

Created issue #4329

@yenfryherrerafeliz yenfryherrerafeliz self-assigned this Jan 24, 2023
@kuhe kuhe merged commit 872fe07 into aws:main Jan 25, 2023
@froggydood froggydood deleted the fix-types-for-non-node-envs branch January 26, 2023 14:51
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants