Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

update setting keys to deno env #1

Closed
wants to merge 1 commit into from

Conversation

slim-hmidi
Copy link

According to the new version of deno, setting a new key can't be done using : Deno.env.set(key,val) . You will get this error, with the new version of deno:

TS2339: Property 'set' does not exist on type '{ (): { [index: string]: string; }; (key: string): string | undefined; }'.

24      Deno.env.set(key, val);
              ~~~

In my PR, I update the mod.ts file to take into consideration this issue.

@crowlKats
Copy link
Owner

This is as it was before i updated a few days ago. v0.42.0 changed the behaviour of env to a map-like state (denoland/deno#4942). Most likely you havent updated yet to the latest.

@slim-hmidi slim-hmidi closed this May 3, 2020
@slim-hmidi
Copy link
Author

@crowlKats sorry, so I will update deno.

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.

2 participants