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(types): Fix build/typedoc errors, flatten types for d3Scale #208

Merged
merged 4 commits into from
Sep 18, 2022
Merged

Conversation

leonhma
Copy link
Contributor

@leonhma leonhma commented Aug 17, 2022

Due to some limitations with typescript (microsoft/TypeScript#33591) the this.meta.xScale = d3Scale[this.options.xAxis.type]() line kept giving type errors. As per suggested in this issue, I did some type-flattening and now there are no more errors.

leonhma and others added 3 commits August 17, 2022 12:13
- ignore type-checking for `d3Scale[this.options.xAxis.type]()`: typescript cant compare the signatures, see microsoft/TypeScript#33591
- ignore `number[]` as a return type of `ScaleContinuousNumeric.domain(<domain>)`, another typescript limitation
Copy link
Owner

@mauriciopoppe mauriciopoppe left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! I left some comments

@mauriciopoppe mauriciopoppe merged commit 5190567 into mauriciopoppe:master Sep 18, 2022
@mauriciopoppe
Copy link
Owner

sorry for leaving this PR open, it got lost in my inbox

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.

2 participants