@visactor/react-vchart
Version:
The react version of VChart 4.x
10 lines (9 loc) • 371 B
TypeScript
import React from 'react';
import type { IStage } from '@visactor/vrender-core';
declare const StageContext: React.Context<IStage>;
export declare function withStage<T>(Component: React.ComponentType<T & {
stage: IStage;
}>): React.ForwardRefExoticComponent<React.PropsWithoutRef<T & {
stage?: IStage;
}> & React.RefAttributes<any>>;
export default StageContext;