nestjs-telegraf/lib/interfaces/telegraf-options.interface.ts

17 lines
386 B
TypeScript
Raw Normal View History

2020-01-12 01:15:32 +03:00
import { ModuleMetadata, Type } from '@nestjs/common/interfaces'
export interface TelegrafModuleOptions {
token: string
sitePublicUrl?: string
}
export interface TelegrafOptionsFactory {
createOptions(): TelegrafModuleOptions
}
export interface TelegrafModuleAsyncOptions
extends Pick<ModuleMetadata, 'imports'> {
useClass?: Type<TelegrafOptionsFactory>
inject?: any[]
}