fix(types): narrow tag_color to supported color literals#2513
fix(types): narrow tag_color to supported color literals#2513kang8 wants to merge 1 commit intoslackapi:mainfrom
Conversation
Replace `string` with `'red' | 'yellow' | 'green' | 'gray' | 'blue'` for `tag_color` in EntityTypedField, EntityStringField, and EntityCustomField to match the Slack API specification. Per https://docs.slack.dev/messaging/work-objects/#supported-properties-for-a-field: Can only be set when the type is string. Allows the string to be highlighted in one of the following colors: red, yellow, green, gray, blue. e.g., tag_color: "red".
|
|
Thanks for the contribution! Before we can merge this, we need @kang8 to sign the Salesforce Inc. Contributor License Agreement. |
|
Hey @kang8! 👋 Thanks so much for sending this in! Before we make this change I'm checking with how the team wants to handle We'll share an update once alignment is reached 🪬 |
Summary
tag_colortype fromstringto'red' | 'yellow' | 'green' | 'gray' | 'blue'inEntityTypedField,EntityStringField, andEntityCustomFieldstring, allows the string to be highlighted in one of the supported colors