Skip to content

Commit

Permalink
fix(types): export missing types (#283)
Browse files Browse the repository at this point in the history
Some consumers in Kibana needs this exported types. They are getting the types from the dist folder.
To avoid that I've exported those required types from the main index.ts file
  • Loading branch information
markov00 authored Aug 5, 2019
1 parent 9b67088 commit 7c475af
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export * from './specs';
export { Chart } from './components/chart';
export { TooltipType, TooltipValue, TooltipValueFormatter } from './chart_types/xy_chart/utils/interactions';
export { getAxisId, getGroupId, getSpecId, getAnnotationId } from './utils/ids';
export { SpecId, GroupId, AxisId, AnnotationId, getAxisId, getGroupId, getSpecId, getAnnotationId } from './utils/ids';
export { ScaleType } from './utils/scales/scales';
export { Position, Rendering, Rotation } from './chart_types/xy_chart/utils/specs';
export { Position, Rendering, Rotation, TickFormatter } from './chart_types/xy_chart/utils/specs';
export * from './utils/themes/theme';
export { LIGHT_THEME } from './utils/themes/light_theme';
export { DARK_THEME } from './utils/themes/dark_theme';
Expand All @@ -26,3 +26,10 @@ export {
} from './chart_types/xy_chart/utils/specs';
export { GeometryValue } from './chart_types/xy_chart/rendering/rendering';
export { AnnotationTooltipFormatter } from './chart_types/xy_chart/annotations/annotation_utils';
export { SettingSpecProps } from './specs/settings';
export {
BrushEndListener,
ElementClickListener,
ElementOverListener,
LegendItemListener,
} from './chart_types/xy_chart/store/chart_state';

0 comments on commit 7c475af

Please sign in to comment.