-
Notifications
You must be signed in to change notification settings - Fork 678
Closed
Labels
area:typescriptissues that specifically impact using the package from typescript projectsissues that specifically impact using the package from typescript projectsauto-triage-skipgood first issuepkg:typesapplies to `@slack/types`applies to `@slack/types`semver:minor
Milestone
Description
This issue comes out of #1227 and has one example of the suggestion to export certain union types as their own standalone type in the draft PR #1228 (in this commit specifically).
Seems like a no brainer! We should export - and reuse - different kinds of union types we use internally. This is more of a refactoring task and so could be a good first issue to pick up. This commit shows off the proposed solution well. It is particularly applicable to the elements array on Blocks, which can contain a certain subset of different Block Elements.
Technically the refactor could be a patch version bump and exporting the new types would be a minor version bump. As such, this could go out in a patch or minor new release in the 2.x line of types.
Metadata
Metadata
Assignees
Labels
area:typescriptissues that specifically impact using the package from typescript projectsissues that specifically impact using the package from typescript projectsauto-triage-skipgood first issuepkg:typesapplies to `@slack/types`applies to `@slack/types`semver:minor