Skip to content

Typescript error when calling makeAnnotations from the example #74

@Soleksandr

Description

@Soleksandr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions