Skip to content

Commit

Permalink
fix: add Yagr type export (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Aug 8, 2022
1 parent 1509bcf commit a8b9475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -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';
4 changes: 3 additions & 1 deletion src/plugins/yagr/types.ts
Original file line number Diff line number Diff line change
@@ -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[];
Expand Down

0 comments on commit a8b9475

Please sign in to comment.