diff --git a/packages/sankey/src/types.ts b/packages/sankey/src/types.ts index 8f4d69102..12425046d 100644 --- a/packages/sankey/src/types.ts +++ b/packages/sankey/src/types.ts @@ -88,7 +88,7 @@ export interface SankeyDataProps { export type SankeyLayerId = 'links' | 'nodes' | 'labels' | 'legends' -export type SankeyMouseHandler = ( +export type SankeyMouseHandler = ( data: SankeyNodeDatum | SankeyLinkDatum, event: MouseEvent ) => void