mirror of
				https://github.com/Maks1mS/nestjs-telegraf.git
				synced 2025-10-31 14:01:22 +03:00 
			
		
		
		
	refactor(telegraf.module.ts): remove configure method
This commit is contained in:
		| @@ -1,7 +1,5 @@ | |||||||
| import { | import { | ||||||
|   MiddlewareConsumer, |  | ||||||
|   Module, |   Module, | ||||||
|   NestModule, |  | ||||||
|   DynamicModule, |   DynamicModule, | ||||||
|   Provider, |   Provider, | ||||||
| } from '@nestjs/common' | } from '@nestjs/common' | ||||||
| @@ -15,11 +13,7 @@ import { TokenInjectionToken } from './TokenInjectionToken' | |||||||
| import { TelegramClient } from './TelegramClient' | import { TelegramClient } from './TelegramClient' | ||||||
|  |  | ||||||
| @Module({}) | @Module({}) | ||||||
| export class TelegrafModule implements NestModule { | export class TelegrafModule { | ||||||
|   public configure(consumer: MiddlewareConsumer) { |  | ||||||
|     // pass |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   static fromFactory(options: TelegrafModuleAsyncOptions): DynamicModule { |   static fromFactory(options: TelegrafModuleAsyncOptions): DynamicModule { | ||||||
|     return { |     return { | ||||||
|       module: TelegrafModule, |       module: TelegrafModule, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user