slackapi / deno-slack-sdk

SDK for building Run on Slack apps using Deno
https://api.slack.com/automation
MIT License
158 stars 27 forks source link

[FEATURE] Alias slack types #356

Open WilliamBergamin opened 2 weeks ago

WilliamBergamin commented 2 weeks ago

Description of the problem being solved

Slack-specific types (rich-text, channels, usergroups) found in Schame.slack.types are not easily discoverable. This is partly caused by them being separated from primitives (string, boolean, etc.) found in Schema.types

Alternative solutions

Aliasing Schame.slack.types to Schema.types.slack could improve discoverability of Slack-specific types (rich-text, channels, usergroups). The goal would be to make Slack-specific types "sub-types" of the Schema.types primitives (string, boolean, etc.). This would make the developers autocomplete recommend Slack-specific types in Schema.types

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.