diff --git a/src/plugins/index.ts b/src/plugins/index.ts index d4ba5198..bfd2e48c 100644 --- a/src/plugins/index.ts +++ b/src/plugins/index.ts @@ -1,4 +1,4 @@ export {YagrPlugin} from './yagr'; -export type {YagrWidgetData, YagrWidgetProps} from './yagr/types'; +export type {Yagr, YagrWidgetData, YagrWidgetProps} from './yagr/types'; export {IndicatorPlugin} from './indicator'; export type {IndicatorWidgetData, IndicatorWidgetProps} from './indicator/types'; diff --git a/src/plugins/yagr/types.ts b/src/plugins/yagr/types.ts index 6048f30b..d2cbd261 100644 --- a/src/plugins/yagr/types.ts +++ b/src/plugins/yagr/types.ts @@ -1,6 +1,8 @@ -import type {RawSerieData, YagrConfig} from 'yagr'; +import type {default as YagrLib, RawSerieData, YagrConfig} from 'yagr'; import type {ChartKitLang, ChartKitOnLoadData} from '../../types'; +export type Yagr = YagrLib; + export type YagrWidgetData = { data: { graphs: RawSerieData[];