refactor(): complex refactoring

This commit is contained in:
Aleksandr Bukhalo
2020-01-12 02:41:27 +03:00
parent 2617c19af9
commit b67b859810
19 changed files with 44 additions and 59 deletions

3
lib/decorators/index.ts Normal file
View File

@@ -0,0 +1,3 @@
export * from './pipe-context.decorator'
export * from './telegram-action-handler.decorator'
export * from './telegram-catch.decorator'

View File

@@ -1,6 +1,6 @@
import { Type } from '@nestjs/common'
import { ContextTransformer } from '../ContextTransformer'
import { addHandlerToStore } from './TelegramActionHandler'
import { ContextTransformer } from '../interfaces'
import { addHandlerToStore } from './'
export const PipeContext = <T>(transform: Type<ContextTransformer<T>>) => (
target: Object,

View File

@@ -1,4 +1,4 @@
import { HandleParameters } from '../HandleParameters'
import { HandleParameters } from '../interfaces'
type Decorator = (
params: HandleParameters,

View File

@@ -1,5 +1,5 @@
import { Type } from '@nestjs/common'
import { TelegramErrorHandler } from '../interfaces/TelegramErrorHandler'
import { TelegramErrorHandler } from '../interfaces'
type Decorator = (error: any) => ClassDecorator