UNPKG

react-lightweight-charts-simple

Version:

A simple react wrapper for lightweight-charts library

15 lines (14 loc) 560 B
import type { IChartApi, ISeriesApi } from 'lightweight-charts'; import { RefObject } from 'react'; export interface ChartContextValue { /** * The chart api object. */ chart?: IChartApi; /** * The chart container `<div />` element. */ containerRef: RefObject<HTMLDivElement>; } export declare const ChartContext: import("react").Context<ChartContextValue>; export declare const SeriesContext: import("react").Context<ISeriesApi<"Bar" | "Candlestick" | "Area" | "Baseline" | "Line" | "Histogram"> | undefined>;