diff --git a/README.md b/README.md index 0b30c2f0..d63d7611 100644 --- a/README.md +++ b/README.md @@ -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,