Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Nov 15, 2019
1 parent 97fd3c8 commit 1138eb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { UIM_APP_NAME } from '../../../common/constants';
import {
createUiStatsReporter,
METRIC_TYPE,
UiStatsMetricType,
} from '../../../../../../../src/legacy/core_plugins/ui_metric/public';

class UiMetricService {
Expand All @@ -18,7 +18,7 @@ class UiMetricService {

public trackMetric = (type: 'loaded' | 'click' | 'count', eventName: string): void => {
if (!this.track) throw Error('UiMetricService not initialized.');
return this.track(type as METRIC_TYPE, eventName);
return this.track(type as UiStatsMetricType, eventName);
};
}

Expand Down

0 comments on commit 1138eb5

Please sign in to comment.