UNPKG

yandex-dialoger

Version:

Ещё одна библиотека/фреймворк для разработки навыков Алисы.

11 lines (10 loc) 465 B
import { ReplyHandler } from './ReplyHandler'; import { Scene } from './Scene'; import { Transition } from './Transition'; import { Startable } from './Startable'; import { Ending } from './Ending'; export interface DialogParams<TSceneName extends string, TModel> { scenes: Record<Startable<TSceneName>, Scene<TModel, TSceneName> | Transition<TModel, TSceneName> | Ending<TModel>>; whatCanYouDo?: ReplyHandler<TModel>; timeout?: ReplyHandler<TModel>; }