@settlemint/module-common-types
TypeScript icon, indicating that this package has built-in type declarations

5.15.0 • Public • Published

Strict Config

The core NestJS ConfigModule exposes a get function that always returns a | undefined which is a pain throughout the code. This module exposes a StrictConfigService where the get function will fail if the config variable is not there, and exposes a getOptional to get optional values.

Note that the entire configuration model is in this module, which has the beneft that all application using this configuration use the same configuration and environment variables. This provides a unified development experience.

Usage

Symlink the base .env from this package in your application of module

ln -sf ../module-strict-config/.env .env

Readme

Keywords

none

Package Sidebar

Install

npm i @settlemint/module-common-types

Weekly Downloads

0

Version

5.15.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

30.8 kB

Total Files

17

Last publish

Collaborators

  • roderik
  • settlemintcircleci
  • goosecoid
  • patrickmualaba