slackapi / bolt-js

A framework to build Slack apps using JavaScript
https://slack.dev/bolt-js
MIT License
2.74k stars 394 forks source link

Move block-action.ts to @slack/types #1432

Open benasher44 opened 2 years ago

benasher44 commented 2 years ago

Description

The types in block-action.ts are super useful for just interacting with the Slack API in other packages, like @slack/web-api. We pull in @slack/bolt just to use these types. It would be great if these types could be moved to @slack/types to avoid having to pull in all of @slack/bolt just to use them.

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])


Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version: 3.11.0

node version: 16.x

OS version(s): Ubuntu 20.04

Steps to reproduce:

  1. npm i @slack/types
  2. import various button action types :)

Expected result:

Leverage the awesome button action types

Actual result:

Have to get them from @slack/bolt instead

Attachments:

I picked the funny image option:

seratch commented 2 years ago

Hi @benasher44 , thanks for taking the time to share this feedback! Indeed, this should be valuable for many developers! We will work on this sometime soon.

filmaj commented 1 month ago

FYI I've included/linked this issue in https://github.com/slackapi/node-slack-sdk/issues/1395