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 error when calling makeAnnotations from the example #74

Open
Soleksandr opened this issue Feb 8, 2021 · 0 comments
Open

Comments

@Soleksandr
Copy link

First of all thanks for awesome library!

I'm working with Typescript React D3 stack and this library suits very well for my needs but unfortunately even with the example from the documentation TS error is thrown: Argument of type 'Annotation<any>' is not assignable to parameter of type '(selection: Selection<SVGGElement, unknown, HTMLElement, any>, ...args: any[]) => void'

https://codesandbox.io/s/sad-visvesvaraya-e7xqz?file=/src/annotations.ts

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

No branches or pull requests

1 participant