mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-01-12 07:01:26 +03:00
17 lines
386 B
TypeScript
17 lines
386 B
TypeScript
|
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[]
|
||
|
}
|