mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-12-15 09:49:54 +03:00
refactor(): complex refactoring
This commit is contained in:
14
lib/interfaces/handle-parameters.interface.ts
Normal file
14
lib/interfaces/handle-parameters.interface.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ContextTransformer } from './'
|
||||
import { Type } from '@nestjs/common'
|
||||
|
||||
interface ArgumentTransformation {
|
||||
index: number
|
||||
transform: Type<ContextTransformer>
|
||||
}
|
||||
|
||||
export interface HandleParameters {
|
||||
onStart?: boolean
|
||||
command?: string
|
||||
message?: string | RegExp
|
||||
transformations?: ArgumentTransformation[]
|
||||
}
|
||||
Reference in New Issue
Block a user