WorkflowButton block element missing required action_id property #2207
Labels
area:typescript
issues that specifically impact using the package from typescript projects
auto-triage-skip
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
pkg:types
applies to `@slack/types`
Packages:
Select all that apply:
@slack/web-api
@slack/rtm-api
@slack/webhooks
@slack/oauth
@slack/socket-mode
@slack/types
Reproducible in:
The Slack SDK version
2.14.0
Node.js runtime version
N/A; I'm running Deno:
OS info
Steps to reproduce:
Example source code:
Expected result:
deno check
passes.Actual result:
deno check
fails with an unknown property error foraction_id
even though the documented API for a workflow button specifiesaction_id
as a required field:Suspected issue
I believe the exported
WorkflowButton
type fromblock-elements.ts
is missing extending theActionable
interface.node-slack-sdk/packages/types/src/block-kit/block-elements.ts
Line 627 in 02f9b87
node-slack-sdk/packages/types/src/block-kit/extensions.ts
Lines 8 to 18 in 02f9b87
Spot-checking a handful of other interactive components (eg.
Button
,Checkboxes
,NumberInput
, etc.) show that they all extend theActionable
interface:node-slack-sdk/packages/types/src/block-kit/block-elements.ts
Line 29 in 02f9b87
node-slack-sdk/packages/types/src/block-kit/block-elements.ts
Line 92 in 02f9b87
node-slack-sdk/packages/types/src/block-kit/block-elements.ts
Line 486 in 02f9b87
The text was updated successfully, but these errors were encountered: