svelte-lightweight-charts
Version:
Svelte wrapper for financial lightweight charts built with HTML5 canvas
21 lines (16 loc) • 618 B
TypeScript
import { SvelteComponentTyped } from 'svelte';
import type {
DeepPartial,
IPriceScaleApi,
PriceScaleOptions,
} from 'lightweight-charts';
import type {Reference} from '../internal/utils.js';
export interface $$PROPS extends DeepPartial<PriceScaleOptions> {
id: string;
ref?: Reference<IPriceScaleApi>;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface $$EVENTS_DETAIL {
}
export type $$EVENTS = { [K in keyof $$EVENTS_DETAIL]: CustomEvent<$$EVENTS_DETAIL[K]> & { type: K } };
export default class PriceScale extends SvelteComponentTyped<$$PROPS, $$EVENTS> {}