-
Notifications
You must be signed in to change notification settings - Fork 399
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 #497 Add types of state.values on modal submission #879
Conversation
export interface ViewOutput { | ||
id: string; | ||
callback_id: string; | ||
team_id: string; | ||
app_installed_team_id?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While doing the tests for this pull request changes, I found this field is missing.
selected_channel?: string | null; | ||
selected_user?: string | null; | ||
selected_option?: ViewStateSelectedOption | null; | ||
selected_conversations?: string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, there is no pattern to have null for the array ones.
Codecov Report
@@ Coverage Diff @@
## main #879 +/- ##
=======================================
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.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Very nice addition!
Summary
This pull request resolves #497 by adding complete types for the elements in
view.state.values
inview_submission
payloadsRequirements (place an
x
in each[ ]
)