@a1um1/lightweight-charts-react-wrapper
Version:

11 lines (10 loc) • 705 B
TypeScript
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;