mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-23 09:49:06 +03:00
fix(module): import other modules with useClass
This commit is contained in:
@@ -6,11 +6,15 @@ export interface TelegrafModuleOptions {
|
||||
}
|
||||
|
||||
export interface TelegrafOptionsFactory {
|
||||
createOptions(): TelegrafModuleOptions
|
||||
createTelegrafOptions(): TelegrafModuleOptions
|
||||
}
|
||||
|
||||
export interface TelegrafModuleAsyncOptions
|
||||
extends Pick<ModuleMetadata, 'imports'> {
|
||||
useExisting?: Type<TelegrafOptionsFactory>
|
||||
useClass?: Type<TelegrafOptionsFactory>
|
||||
useFactory?: (
|
||||
...args: any[]
|
||||
) => Promise<TelegrafModuleOptions> | TelegrafModuleOptions
|
||||
inject?: any[]
|
||||
}
|
||||
|
Reference in New Issue
Block a user