* Creates a new config provider that will resolve configuration * when the application is booted. * * @param resolver - Function that receives the application service and returns the configuration * * @example * const mailConfig = configProvider.create(async (app) => ({ * driv
(resolver: ConfigProvider<T>['resolver'])
| 44 | * })) |
| 45 | */ |
| 46 | create<T>(resolver: ConfigProvider<T>['resolver']): ConfigProvider<T> { |
| 47 | return { |
| 48 | type: 'provider', |
| 49 | resolver, |
| 50 | } |
| 51 | }, |
| 52 | |
| 53 | /** |
| 54 | * Resolves a config provider if the provided value is a valid config provider, |
nothing calls this directly
no outgoing calls
no test coverage detected