Delete types/lightweight-charts.d.ts
Browse files
types/lightweight-charts.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
declare module 'lightweight-charts' {
|
| 2 |
-
export type Time = number | string;
|
| 3 |
-
export type LineStyle = number;
|
| 4 |
-
|
| 5 |
-
export interface ChartOptions {
|
| 6 |
-
width: number;
|
| 7 |
-
height: number;
|
| 8 |
-
layout?: {
|
| 9 |
-
background?: { color?: string };
|
| 10 |
-
textColor?: string;
|
| 11 |
-
};
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
export interface CandlestickData {
|
| 15 |
-
time: Time;
|
| 16 |
-
open: number;
|
| 17 |
-
high: number;
|
| 18 |
-
low: number;
|
| 19 |
-
close: number;
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
export interface ISeriesApi<T> {
|
| 23 |
-
setData(data: CandlestickData[]): void;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
export interface IChartApi {
|
| 27 |
-
addCandlestickSeries(): ISeriesApi<'Candlestick'>;
|
| 28 |
-
remove(): void;
|
| 29 |
-
}
|
| 30 |
-
|
| 31 |
-
export function createChart(container: HTMLElement, options: ChartOptions): IChartApi;
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|