refactor(types): use exported options types (#232)

This commit is contained in:
Morbo
2021-01-23 19:51:29 +03:00
committed by GitHub
parent 0c50fca66e
commit 0b8819665a
2 changed files with 3 additions and 7 deletions

View File

@@ -16,6 +16,3 @@ export type ComposerMethodArgs<
T extends Composer<never>,
U extends OnlyFunctionPropertyNames<T> = OnlyFunctionPropertyNames<T>
> = Filter<Parameters<T[U]>, Middleware<never>>;
export type LaunchOptions = Parameters<Telegraf['launch']>[0];
export type TelegrafOptions = ConstructorParameters<typeof Telegraf>[1];