UNPKG

@a1um1/lightweight-charts-react-wrapper

Version:

![bundle-size](https://badgen.net/bundlephobia/minzip/lightweight-charts-react-wrapper/)

11 lines (10 loc) 705 B
import { type ForwardedRef, type ReactNode } from "react"; import type { CustomSeriesOptions, ICustomSeriesPaneView, ISeriesApi, SeriesDataItemTypeMap, SeriesMarker, SeriesPartialOptions, Time } from "lightweight-charts"; export declare type CustomSeriesProps<T extends CustomSeriesOptions = CustomSeriesOptions> = SeriesPartialOptions<T> & { view: ICustomSeriesPaneView<Time, SeriesDataItemTypeMap["Custom"], T>; data: SeriesDataItemTypeMap["Custom"][]; markers?: SeriesMarker<Time>[]; reactive?: boolean; children?: ReactNode; }; export declare const CustomSeries: <T extends CustomSeriesOptions>(props: CustomSeriesProps<T>, ref: ForwardedRef<ISeriesApi<"Custom">>) => JSX.Element;