Skip to content

Commit d4bec15

Browse files
committed
docs: add notice regarding the TS version of @nestjs/config
1 parent a753b9d commit d4bec15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/techniques/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ $ npm i --save @nestjs/config
1818

1919
> info **Hint** The `@nestjs/config` package internally uses [dotenv](https://github.com/motdotla/dotenv).
2020
21+
> warning **Note** `@nestjs/config` requires TypeScript 4.1 or later.
22+
2123
#### Getting started
2224

2325
Once the installation process is complete, we can import the `ConfigModule`. Typically, we'll import it into the root `AppModule` and control its behavior using the `.forRoot()` static method. During this step, environment variable key/value pairs are parsed and resolved. Later, we'll see several options for accessing the `ConfigService` class of the `ConfigModule` in our other feature modules.

0 commit comments

Comments
 (0)