Fix type error

This commit is contained in:
Nathan Bierema 2023-02-16 11:25:57 -05:00
parent df449bb297
commit 2412361401

View File

@ -384,7 +384,7 @@ export default function (DOMNode: HTMLElement, options: Partial<Options> = {}) {
.style('fill-opacity', 0) .style('fill-opacity', 0)
.text((d) => d.data.name) .text((d) => d.data.name)
.on('click', (_, datum) => { .on('click', (_, datum) => {
onClickText(datum); onClickText(datum as unknown as HierarchyPointNode<Node>);
}); });
const nodeEnterAndUpdate = nodeEnter.merge(node); const nodeEnterAndUpdate = nodeEnter.merge(node);