diff --git a/x-pack/plugins/ml/public/application/components/annotations/annotation_flyout/index.tsx b/x-pack/plugins/ml/public/application/components/annotations/annotation_flyout/index.tsx index f4a4cea5930175..9905eefab067c7 100644 --- a/x-pack/plugins/ml/public/application/components/annotations/annotation_flyout/index.tsx +++ b/x-pack/plugins/ml/public/application/components/annotations/annotation_flyout/index.tsx @@ -36,6 +36,7 @@ import { annotation$, annotationsRefreshed, AnnotationState, + AnnotationUpdatesService, } from '../../../services/annotations_service'; import { AnnotationDescriptionList } from '../annotation_description_list'; import { DeleteAnnotationModal } from '../delete_annotation_modal'; @@ -402,7 +403,11 @@ export class AnnotationFlyoutUI extends Component { } } -export const AnnotationFlyoutContainer: FC = (props) => { +interface AnnotationFlyoutContainerProps extends CommonProps, Props { + annotationUpdatesService: AnnotationUpdatesService; +} + +export const AnnotationFlyoutContainer: FC = (props: AnnotationFlyoutContainerProps) => { const { annotationUpdatesService, ...restProps } = props; const annotationProp = useObservable(annotationUpdatesService.update$()); diff --git a/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.d.ts b/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.d.ts index 04b666b4fc6848..5eed4d971aa438 100644 --- a/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.d.ts +++ b/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.d.ts @@ -10,6 +10,7 @@ import React from 'react'; import { Annotation } from '../../../../../common/types/annotations'; import { CombinedJob } from '../../../../../common/types/anomaly_detection_jobs'; import { ChartTooltipService } from '../../../components/chart_tooltip'; +import { AnnotationUpdatesService } from '../../../services/annotations_service'; interface Props { selectedJob: CombinedJob; @@ -45,6 +46,7 @@ interface TimeseriesChartProps { zoomFromFocusLoaded: object; zoomToFocusLoaded: object; tooltipService: object; + annotationUpdatesService: AnnotationUpdatesService; } declare class TimeseriesChart extends React.Component {