-
Notifications
You must be signed in to change notification settings - Fork 43
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
Refactoring: No Implicit Any #290
Conversation
04d4dff
to
1b05505
Compare
@reb-dev Can you please check the following TS errors in Nested Donut? My initial thought was that we need to pass an array to |
@rokotyan Yeah so this is due to a discrepancy between the original data type (returned from d3's Before:
After:
So no need to change any existing types, it is the logic inside of function |
1b05505
to
123f4cf
Compare
123f4cf
to
7087b22
Compare
@reb-dev Thanks for the explanation, I understand the problem. Will you be able to look into it? I've tried to quickly understand data transformations that are happening there but got stuck and didn't want to spend too much time on this. We can probably override the type of partitionData.each(node => {
const n = node as unknown as ...
node.data = {
key: n.data[0],
... And I would also leave a comment in the code that we're mutating the original data. |
@reb-dev Yeah, let's do it, thanks! Merging now. |
@reb-dev Actually, you'll need to merge it :) |
Enabling
noImplicitAny
checks in tsconfig. Overall that should improve the code quality by allowing to catch potential errors while writing code.