import { MouseEvent } from 'react'; import { ChartInternalDataShape } from './data'; /** * branch between showing something and providing a spec, * or not showing it */ export type Visible = { show: true; } & T; export type Invisible = { show: false; } & Partial; export type Shown = Visible | Invisible; export interface ClickEvent { value: ChartInternalDataShape; nativeEvent: MouseEvent; }