We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe/explain the bug Using @nivo/line, when declaring
<ResponsiveLine ... pointLabel={d => Math.round((d.y / d.total) * 100) + '%'} ... />
TypeScript complains that Type '(d: any) => string' is not assignable to type 'string'.
Type '(d: any) => string' is not assignable to type 'string'.
To Reproduce Please see https://codesandbox.io/s/unruffled-architecture-b0k19 [line 204 of App.js]
Steps to reproduce the behavior:
Expected behavior The declaration file should probably be patched to allow for a function, since the code already allows it.
The text was updated successfully, but these errors were encountered:
b5464bb
No branches or pull requests
Describe/explain the bug
Using @nivo/line, when declaring
TypeScript complains that
Type '(d: any) => string' is not assignable to type 'string'.
To Reproduce
Please see https://codesandbox.io/s/unruffled-architecture-b0k19 [line 204 of App.js]
Steps to reproduce the behavior:
Expected behavior
The declaration file should probably be patched to allow for a function, since the code already allows it.
The text was updated successfully, but these errors were encountered: