@vk-io/scenes
Version:
Scenes for the library vk-io
33 lines (32 loc) • 784 B
TypeScript
import { IContext } from '../types';
import { SceneRepository } from '../scene-manager.types';
export interface ISceneContextOptions {
context: IContext;
sessionKey: string;
repository: SceneRepository;
}
export interface ISceneContextEnterOptions<S extends Record<string, unknown>> {
/**
* Logging into a handler without executing it
*/
silent?: boolean;
/**
* The standard state for the scene
*/
state?: S;
}
export interface ISceneContextLeaveOptions {
/**
* Logging into a handler without executing it
*/
silent?: boolean;
/**
* Canceled scene
*/
canceled?: boolean;
}
export declare enum LastAction {
NONE = "none",
ENTER = "enter",
LEAVE = "leave"
}