The 'value' property on ButtonAction is incorrectly typed #2133
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Milestone
@slack/bolt
version3.18.0
Your
App
and Receiver ConfigurationN/A
Node.js runtime version
v20.12.2
Steps to reproduce:
It's simple enough to prove that the value isn't always there...
value
actions
does not contain avalue
Example payload where actions array with no
value
in the object (truncated and unique identifiers changed):Expected result:
The
ButtonAction
type should indicate that thevalue
field is optionalActual result:
The
ButtonAction
type indicates that thevalue
field will always contain a stringSee the type here.
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: