From 2b48bce92a3d4ddb6ccc1521b495c8d905f01cab Mon Sep 17 00:00:00 2001 From: Morbo Date: Sat, 23 Jan 2021 19:51:46 +0300 Subject: [PATCH] [Fix] Async options factory (#233) --- lib/interfaces/telegraf-options.interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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