diff --git a/lib/interfaces/telegraf-options.interface.ts b/lib/interfaces/telegraf-options.interface.ts index 982319e..d482144 100644 --- a/lib/interfaces/telegraf-options.interface.ts +++ b/lib/interfaces/telegraf-options.interface.ts @@ -11,7 +11,7 @@ export interface TelegrafModuleOptions { } export interface TelegrafOptionsFactory { - createTelegrafOptions(): TelegrafModuleOptions; + createTelegrafOptions(): Promise | TelegrafModuleOptions; } export interface TelegrafModuleAsyncOptions