slackapi / slackapi/bolt-js

Move block-action.ts to @slack/types

Open
#1,432 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement semver:major TypeScript-specific
Dominant language
TypeScript
Stars
2.9k
Forks
445
Avg merge
1d 3h
Merged PRs (30d)
28

Description

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 [ ])
  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • example code related
  • testing related
  • discussion
Requirements (place an x in each of the [ ])
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

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:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate block-action.ts and inspect how its types are exported from @slack/bolt and how @slack/types exposes its public types. Trace the relevant imports and package tests or build checks, then verify that consumers can import these button action types from @slack/types without depending on @slack/bolt.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.