Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1488 Incorrect types with ViewUpdateResponseAction and ViewPushResponseAction #1490

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

seratch
Copy link
Member

@seratch seratch commented Jun 17, 2022

Summary

This pull request resolves #1488

Requirements (place an x in each [ ])

@seratch seratch added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented TypeScript-specific labels Jun 17, 2022
@seratch seratch added this to the 3.11.3 milestone Jun 17, 2022
@seratch seratch self-assigned this Jun 17, 2022
@@ -62,7 +62,7 @@ export interface ViewSubmitAction {
id: string;
name: string;
};
response_urls: ViewResponseUrl[];
response_urls?: ViewResponseUrl[];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while reviewing the changes again, I found that this field needs to be optional

@@ -103,7 +103,7 @@ export interface ViewClosedAction {

export interface ViewWorkflowStepSubmitAction extends ViewSubmitAction {
trigger_id: string;
response_urls: ViewResponseUrl[];
response_urls?: ViewResponseUrl[];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@@ -174,12 +174,12 @@ export interface ViewOutput {

export interface ViewUpdateResponseAction {
response_action: 'update';
view: ViewOutput;
view: View;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these reverting changes are for #1488

@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #1490 (0921728) into main (3076285) will not change coverage.
The diff coverage is n/a.

❗ Current head 0921728 differs from pull request most recent head d014ae7. Consider uploading reports for the commit d014ae7 to get more accurate results

@@           Coverage Diff           @@
##             main    #1490   +/-   ##
=======================================
  Coverage   81.99%   81.99%           
=======================================
  Files          18       18           
  Lines        1494     1494           
  Branches      435      435           
=======================================
  Hits         1225     1225           
  Misses        172      172           
  Partials       97       97           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3076285...d014ae7. Read the comment docs.

@seratch seratch merged commit 62930f3 into slackapi:main Jun 17, 2022
@seratch seratch deleted the issue-1488-ts-type-error branch June 17, 2022 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented TypeScript-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect types with ViewUpdateResponseAction and ViewPushResponseAction
1 participant