Skip to content

Commit

Permalink
Correct types for event callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Sep 30, 2024
1 parent 7b52350 commit e246222
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export interface SunburstChartGenericInstance<ChainableInstance> {
tooltipContent(): TooltipFn;
tooltipContent(fn: TooltipFn): ChainableInstance;

onClick(cb: ((node: Node) => void) | null): ChainableInstance;
onRightClick(cb: ((node: Node) => void) | null): ChainableInstance;
onHover(cb: ((node: Node | null) => void) | null): ChainableInstance;
onClick(cb: ((node: Node, event: MouseEvent) => void) | null): ChainableInstance;
onRightClick(cb: ((node: Node, event: MouseEvent) => void) | null): ChainableInstance;
onHover(cb: ((node: Node | null, event: MouseEvent) => void) | null): ChainableInstance;

focusOnNode(): Node | null;
focusOnNode(node: Node | null): ChainableInstance;
Expand Down

0 comments on commit e246222

Please sign in to comment.