Skip to content

Commit

Permalink
Fix slackapi#1141 state is missing in the block_action pyload type
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Oct 5, 2021
1 parent 91037be commit 6f5533d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/types/actions/block-action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PlainTextElement, Confirmation, Option } from '@slack/types';
import { StringIndexed } from '../helpers';
import { ViewOutput } from '../view';
import { ViewOutput, ViewStateValue } from '../view';

/**
* All known actions from in Slack's interactive elements
Expand Down Expand Up @@ -234,6 +234,13 @@ export interface BlockAction<ElementAction extends BasicElementAction = BlockEle
[key: string]: any;
};
view?: ViewOutput;
state?: {
values: {
[blockId: string]: {
[actionId: string]: ViewStateValue;
};
};
};
token: string;
response_url: string;
trigger_id: string;
Expand Down

0 comments on commit 6f5533d

Please sign in to comment.