1 | import { ConfigModule } from '..';
|
2 | import { ConfigFactory } from '../interfaces';
|
3 | import { ConfigObject } from '../types';
|
4 |
|
5 |
|
6 |
|
7 | export interface ConfigFactoryKeyHost<T = unknown> {
|
8 | KEY: string;
|
9 | asProvider(): {
|
10 | imports: [ReturnType<typeof ConfigModule.forFeature>];
|
11 | useFactory: (config: T) => T;
|
12 | inject: [string];
|
13 | };
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare function registerAs<TConfig extends ConfigObject, TFactory extends ConfigFactory = ConfigFactory<TConfig>>(token: string, configFactory: TFactory): TFactory & ConfigFactoryKeyHost<ReturnType<TFactory>>;
|