From e94ae92a9634b7cbb3cc846773e8953570bd5f35 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Mon, 17 Feb 2020 19:56:04 +0900 Subject: [PATCH] Add checkboxes action payload --- src/types/actions/block-action.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/types/actions/block-action.ts b/src/types/actions/block-action.ts index 4e56b23fc..511cb67d1 100644 --- a/src/types/actions/block-action.ts +++ b/src/types/actions/block-action.ts @@ -20,7 +20,8 @@ export type BlockElementAction = | MultiExternalSelectAction | OverflowAction | DatepickerAction - | RadioButtonsAction; + | RadioButtonsAction + | CheckboxesAction; /** * Any action from Slack's interactive elements @@ -185,6 +186,15 @@ export interface RadioButtonsAction extends BasicElementAction<'radio_buttons'> confirm?: Confirmation; } +/** + * An action from a checkboxes element + */ +export interface CheckboxesAction extends BasicElementAction<'checkboxes'> { + selected_options: Option[]; + initial_options?: Option[]; + confirm?: Confirmation; +} + /** * A Slack Block Kit element action wrapped in the standard metadata. *