Skip to content

Commit

Permalink
Addresses type safety DopplerHQ#30
Browse files Browse the repository at this point in the history
  • Loading branch information
nadilas committed Jun 11, 2022
1 parent b1f6e17 commit 270224d
Show file tree
Hide file tree
Showing 5 changed files with 9,484 additions and 44 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,16 @@ secrets.populateEnv();
Or use the `loadSecrets` method from the generated module (ES modules also supported):
```js
const { loadSecrets } = require("../lib/secrets");
```ts
const { loadSecrets, Convert, Configuration } = require("../lib/secrets");
const secrets = loadSecrets();
// Optionally export type safe object
const { populateEnv, ...config } = secrets;
export const configuration = Convert.toConfiguration(config);
// Optionally merge secrets into environment variables
secrets.populateEnv();
secrets.populateEnv(); // or populateEnv()
```
## Getting Started
Expand Down
Loading

0 comments on commit 270224d

Please sign in to comment.