Skip to content

Commit

Permalink
Update types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
stas-demydiuk committed Feb 3, 2024
1 parent 9207d86 commit b0a2406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sankey/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface SankeyDataProps<N extends DefaultNode, L extends DefaultLink> {

export type SankeyLayerId = 'links' | 'nodes' | 'labels' | 'legends'

export type SankeyMouseHandler = <N extends DefaultNode, L extends DefaultLink>(
export type SankeyMouseHandler<N extends DefaultNode, L extends DefaultLink> = (
data: SankeyNodeDatum<N, L> | SankeyLinkDatum<N, L>,
event: MouseEvent
) => void
Expand Down

0 comments on commit b0a2406

Please sign in to comment.