UNPKG

@visactor/react-vchart

Version:

The react version of VChart 4.x

12 lines (11 loc) 452 B
import React from 'react'; import type { IVChart } from '@visactor/vchart'; export interface ChartContextType { chart?: IVChart; isChildrenUpdated?: boolean; } declare const ChartContext: React.Context<ChartContextType>; export declare function withChartInstance<T>(Component: React.ComponentType<T & { chart?: IVChart; }>): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>; export default ChartContext;