mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-30 04:18:51 +03:00
style: applied linter rules for all files
This commit is contained in:
@@ -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>>;
|
||||
|
Reference in New Issue
Block a user