style: applied linter rules for all files

This commit is contained in:
atassis
2022-07-09 17:40:49 +08:00
parent 91d9207ba6
commit 9935b87d45
10 changed files with 35 additions and 34 deletions

View File

@@ -1,4 +1,4 @@
import { Composer, Middleware, Telegraf } from 'telegraf';
import { Composer, Middleware } from 'telegraf';
export type Filter<T extends any[], F> = T extends []
? []
@@ -14,5 +14,5 @@ export type OnlyFunctionPropertyNames<T> = {
export type ComposerMethodArgs<
T extends Composer<never>,
U extends OnlyFunctionPropertyNames<T> = OnlyFunctionPropertyNames<T>
U extends OnlyFunctionPropertyNames<T> = OnlyFunctionPropertyNames<T>,
> = Filter<Parameters<T[U]>, Middleware<never>>;