Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/types/actions/block-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export type BlockElementAction =
| MultiExternalSelectAction
| OverflowAction
| DatepickerAction
| RadioButtonsAction;
| RadioButtonsAction
| CheckboxesAction;

/**
* Any action from Slack's interactive elements
Expand Down Expand Up @@ -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.
*
Expand Down