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. *