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

Convert to Typescript #2

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Convert to Typescript #2

wants to merge 4 commits into from

Conversation

rjruizes
Copy link

@rjruizes rjruizes commented Oct 28, 2021

Not converted yet: getDefaultOption.js, mixin.js, and several functions in Hs.ts which are used by harness-ui.

0 errors as is, with the @ts-ignore comments.

@hardingalexh hardingalexh self-assigned this Oct 28, 2021
src/Hs.ts Outdated
charts:Charts
_mappedGetters
_mappedActions
[key: string]: any
Copy link

Choose a reason for hiding this comment

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

What is this catching? Ideally everything assigned to the object should be pre-defined or put in some other data structure

Copy link
Author

Choose a reason for hiding this comment

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

Thank you, excellent catch. I'm not sure why I had that in there.

Copy link
Author

Choose a reason for hiding this comment

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

Actually, I forgot I had the // @ts-nocheck at the top of the file, so of course there was no change when I changed it.

[key: string]: any is meant to catch this[getter] and this[action] on lines 44-54.

src/store.ts Show resolved Hide resolved
src/Hs.ts Outdated Show resolved Hide resolved
@hardingalexh hardingalexh marked this pull request as draft November 10, 2021 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants