Skip to content

Commit

Permalink
[ML] Update type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Nov 12, 2020
1 parent b5166e6 commit 528a8de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -402,7 +403,11 @@ export class AnnotationFlyoutUI extends Component<CommonProps & Props> {
}
}

export const AnnotationFlyoutContainer: FC<any> = (props) => {
interface AnnotationFlyoutContainerProps extends CommonProps, Props {
annotationUpdatesService: AnnotationUpdatesService;
}

export const AnnotationFlyoutContainer: FC<any> = (props: AnnotationFlyoutContainerProps) => {
const { annotationUpdatesService, ...restProps } = props;
const annotationProp = useObservable<AnnotationState>(annotationUpdatesService.update$());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -45,6 +46,7 @@ interface TimeseriesChartProps {
zoomFromFocusLoaded: object;
zoomToFocusLoaded: object;
tooltipService: object;
annotationUpdatesService: AnnotationUpdatesService;
}

declare class TimeseriesChart extends React.Component<Props, any> {
Expand Down

0 comments on commit 528a8de

Please sign in to comment.