Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikaple authored Jan 14, 2024
1 parent 5c1a6d9 commit ee25516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,9 @@ TypedConfigModule.forRoot({
If native loaders provided by `nest-typed-config` can't meet your needs, you can implement a custom loader. This can be achieved by providing a function which returns the configuration object synchronously or asynchronously through the `load` option. For example:

```ts
TypedConfigModule.forRoot({
TypedConfigModule.forRootAsync({
schema: RootConfig,
load: () => {
load: async () => {
return {
host: '127.0.0.1',
port: 3000,
Expand Down

0 comments on commit ee25516

Please sign in to comment.