Skip to content

Commit

Permalink
Fix further type error
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Dec 22, 2020
1 parent b83c309 commit c9ccff1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
import { i18n } from '@kbn/i18n';
import React from 'react';
import { AlertTypeModel } from '../../../../triggers_actions_ui/public';
import { LOG_DOCUMENT_COUNT_ALERT_TYPE_ID } from '../../../common/alerting/logs/log_threshold/types';
import {
LOG_DOCUMENT_COUNT_ALERT_TYPE_ID,
PartialAlertParams,
} from '../../../common/alerting/logs/log_threshold/types';
import { validateExpression } from './validation';

export function getAlertType(): AlertTypeModel {
export function getAlertType(): AlertTypeModel<PartialAlertParams> {
return {
id: LOG_DOCUMENT_COUNT_ALERT_TYPE_ID,
description: i18n.translate('xpack.infra.logs.alertFlyout.alertDescription', {
Expand Down

0 comments on commit c9ccff1

Please sign in to comment.