From c28c45f4d91c08247819d4903e9d8b1c90bf03b2 Mon Sep 17 00:00:00 2001 From: Lukas Siatka Date: Tue, 2 Jun 2020 15:23:34 +0200 Subject: [PATCH] Chore: updates ExploreItemState type --- public/app/types/explore.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/public/app/types/explore.ts b/public/app/types/explore.ts index 3640c6875de..07f4654af87 100644 --- a/public/app/types/explore.ts +++ b/public/app/types/explore.ts @@ -66,7 +66,7 @@ export interface ExploreItemState { /** * True if the datasource is loading. `null` if the loading has not started yet. */ - datasourceLoading?: boolean; + datasourceLoading: boolean | null; /** * True if there is no datasource to be selected. */ @@ -74,11 +74,11 @@ export interface ExploreItemState { /** * Emitter to send events to the rest of Grafana. */ - eventBridge?: Emitter; + eventBridge: Emitter; /** * List of timeseries to be shown in the Explore graph result viewer. */ - graphResult?: GraphSeriesXY[]; + graphResult: GraphSeriesXY[] | null; /** * History of recent queries. Datasource-specific and initialized via localStorage. */ @@ -101,7 +101,7 @@ export interface ExploreItemState { /** * Log query result to be displayed in the logs result viewer. */ - logsResult?: LogsModel; + logsResult: LogsModel | null; /** * Time range for this Explore. Managed by the time picker and used by all query runs. @@ -112,7 +112,7 @@ export interface ExploreItemState { /** * True if scanning for more results is active. */ - scanning?: boolean; + scanning: boolean; /** * Current scanning range to be shown to the user while scanning is active. */ @@ -130,7 +130,7 @@ export interface ExploreItemState { /** * Table model that combines all query table results into a single table. */ - tableResult?: DataFrame; + tableResult: DataFrame | null; /** * React keys for rendering of QueryRows @@ -140,7 +140,7 @@ export interface ExploreItemState { /** * Current logs deduplication strategy */ - dedupStrategy?: LogsDedupStrategy; + dedupStrategy: LogsDedupStrategy; /** * Currently hidden log series