Skip to content

Commit

Permalink
Merge pull request #408 from seratch/checkboxes-action
Browse files Browse the repository at this point in the history
Add checkboxes action payload
  • Loading branch information
stevengill authored Feb 18, 2020
2 parents 30ecca7 + a7aa414 commit a2f546d
Showing 1 changed file with 11 additions and 1 deletion.
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

0 comments on commit a2f546d

Please sign in to comment.