Fix #720 ack(options) does not compile in TypeScript#878
Merged
seratch merged 1 commit intoslackapi:mainfrom Apr 14, 2021
Merged
Fix #720 ack(options) does not compile in TypeScript#878seratch merged 1 commit intoslackapi:mainfrom
seratch merged 1 commit intoslackapi:mainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #878 +/- ##
=======================================
Coverage 66.08% 66.08%
=======================================
Files 13 13
Lines 1200 1200
Branches 353 353
=======================================
Hits 793 793
Misses 338 338
Partials 69 69
Continue to review full report at Codecov.
|
seratch
commented
Apr 14, 2021
| } | ||
|
|
||
| public options<Source extends OptionsSource = OptionsSource>( | ||
| public options<Source extends OptionsSource = 'block_suggestion'>( |
Contributor
Author
There was a problem hiding this comment.
This is the only change in the main code.
mwbrooks
approved these changes
Apr 14, 2021
Member
mwbrooks
left a comment
There was a problem hiding this comment.
Nice to see this land. I remembering running into this issue the first time I wanted to use ack with options.
This was referenced May 17, 2021
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request resolves #720
Most developers (perhaps 100%) handle only block_suggestion requests in
app.optionslisteners. Thus, this pull request set the default Source toblock_suggestionto ensure better developer experience in TypeScript.If a developer would like to handle either
interactive_message(user actions on attachments) ordialog_suggestion(the ones in legacy dialogs), the developer can have an explicit type parameter as below:Requirements (place an
xin each[ ])