Type 'RefObject<unknown>' is not assignable to type 'LegacyRef<HTMLDivElement> | undefined'.
Type 'RefObject<unknown>' is not assignable to type 'RefObject<HTMLDivElement>'.
Type 'unknown' is not assignable to type 'HTMLDivElement'. TS2322
46 | render() {
47 |
> 48 | return (<div className="funnel__chart" ref={this.chartRef}></div>);
| ^
49 | }
50 | }
51 |
I just used with typescript it fails
I created a declaration file index.d.ts inside types/d3-funnel But I get an error declare module 'd3-funnel'