UNPKG

@a1um1/lightweight-charts-react-wrapper

Version:

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

11 lines (10 loc) 511 B
import type { IPriceScaleApi, DeepPartial, PriceScaleOptions } from "lightweight-charts"; import { type ActionResult } from "./utils.js"; import type { ChartActionResult } from "./chart.js"; export declare type PriceScaleActionResult = ActionResult<PriceScaleParams> & { subject(): IPriceScaleApi; }; export interface PriceScaleParams extends DeepPartial<PriceScaleOptions> { id: string; } export declare function priceScale(target: ChartActionResult, params: PriceScaleParams): PriceScaleActionResult;