@puregram/scenes
Version:
Simple implementation of middleware-based scene management for puregram
11 lines (10 loc) • 331 B
TypeScript
import { Context } from 'puregram';
import { SceneContext } from './contexts';
export declare type Middleware<T> = (context: T, next: Function) => unknown;
export interface SessionContext {
[key: string]: any;
}
export interface ContextInterface<T = {}> extends Context {
scene: SceneContext & T;
[key: string]: any;
}