@visactor/openinula-vchart
Version:
The openinula version of VChart 4.x
12 lines (11 loc) • 440 B
TypeScript
import React from 'openinula';
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: typeof React.Component): React.ExoticComponent<React.PropsOmitRef<T>> & React.Attributes & {
ref?: React.Ref<any>;
};
export default ChartContext;