nestjs-telegraf/lib/interfaces/handle-parameters.interface.ts
2020-01-12 02:41:27 +03:00

15 lines
321 B
TypeScript

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[]
}