From 4aa139da0e040d26b3a70061dc4866997f3c1dcf Mon Sep 17 00:00:00 2001 From: Yaroslav Savaryn Date: Thu, 10 Jun 2021 18:12:30 +0300 Subject: [PATCH] fix typescript --- types/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index a4b76b5..ef50414 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -25,9 +25,10 @@ export interface DialogAction { handler? (action: any): Promise } +export type DialogActions = Record + interface DialogActionable { - actions?: object | Array | Array - handle? (action: any): Promise + actions?: Array | Array | DialogActions handler? (action: any): Promise }