Chore: changed ExploreMode and Emitter type in ExploreStateItem

pull/25250/head
Lukas Siatka 5 years ago
parent 2fb122bda9
commit 7e0e2027fc
  1. 5
      public/app/features/explore/state/reducers.ts
  2. 4
      public/app/types/explore.ts

@ -70,7 +70,6 @@ import {
} from './actionTypes'; } from './actionTypes';
import { ResultProcessor } from '../utils/ResultProcessor'; import { ResultProcessor } from '../utils/ResultProcessor';
import { updateLocation } from '../../../core/actions'; import { updateLocation } from '../../../core/actions';
import { Emitter } from 'app/core/core';
export const DEFAULT_RANGE = { export const DEFAULT_RANGE = {
from: 'now-6h', from: 'now-6h',
@ -115,7 +114,7 @@ export const makeExploreItemState = (): ExploreItemState => ({
update: makeInitialUpdateState(), update: makeInitialUpdateState(),
latency: 0, latency: 0,
supportedModes: [], supportedModes: [],
mode: (null as unknown) as ExploreMode, mode: null,
isLive: false, isLive: false,
isPaused: false, isPaused: false,
urlReplaced: false, urlReplaced: false,
@ -124,7 +123,7 @@ export const makeExploreItemState = (): ExploreItemState => ({
graphResult: null, graphResult: null,
logsResult: null, logsResult: null,
dedupStrategy: LogsDedupStrategy.none, dedupStrategy: LogsDedupStrategy.none,
eventBridge: (null as unknown) as Emitter, eventBridge: null,
}); });
export const createEmptyQueryResponse = (): PanelData => ({ export const createEmptyQueryResponse = (): PanelData => ({

@ -74,7 +74,7 @@ export interface ExploreItemState {
/** /**
* Emitter to send events to the rest of Grafana. * Emitter to send events to the rest of Grafana.
*/ */
eventBridge: Emitter; eventBridge: Emitter | null;
/** /**
* List of timeseries to be shown in the Explore graph result viewer. * List of timeseries to be shown in the Explore graph result viewer.
*/ */
@ -165,7 +165,7 @@ export interface ExploreItemState {
latency: number; latency: number;
supportedModes: ExploreMode[]; supportedModes: ExploreMode[];
mode: ExploreMode; mode: ExploreMode | null;
/** /**
* If true, the view is in live tailing mode. * If true, the view is in live tailing mode.

Loading…
Cancel
Save