Skip to content

Commit

Permalink
fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
yariksav committed Jun 10, 2021
1 parent 0e986c1 commit 4aa139d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ export interface DialogAction {
handler? (action: any): Promise<any>
}

export type DialogActions = Record<string, DialogAction>

interface DialogActionable {
actions?: object | Array<string|DialogAction> | Array<DialogAction>
handle? (action: any): Promise<any>
actions?: Array<string|DialogAction> | Array<DialogAction> | DialogActions
handler? (action: any): Promise<any>
}

Expand Down

0 comments on commit 4aa139d

Please sign in to comment.