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

Typescript migration of client/actions and some more components #785

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mickmister
Copy link
Contributor

Summary

Ticket Link

@mickmister mickmister changed the title Typescript migration of client/actions and some components Typescript migration of client/actions and some more components Jun 3, 2024
@mickmister mickmister marked this pull request as ready for review July 10, 2024 06:39
@hanzei hanzei added the 2: Dev Review Requires review by a core committer label Jul 10, 2024

const mapDispatchToProps = (dispatch: Dispatch) => ({
actions: bindActionCreators({getLabelOptions}, dispatch),
}) as unknown as Actions;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this correct to use unknown here?

isClearable={true}
placeholder={'Select...'}
noOptionsMessage={() => noOptionsMessage}
closeMenuOnSelect={!this.props.isMulti}
hideSelectedOptions={this.props.isMulti}
onChange={this.onChange}
onChange={this.onChange as any}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to add a proper type here and on line 134 ?

@hanzei hanzei added Work In Progress Not yet ready for review and removed 2: Dev Review Requires review by a core committer labels Jul 31, 2024
@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants