diff --git a/ui/src/types/dataExplorer.ts b/ui/src/types/dataExplorer.ts index 49c6bf68d..90a2eaf6c 100644 --- a/ui/src/types/dataExplorer.ts +++ b/ui/src/types/dataExplorer.ts @@ -7,6 +7,7 @@ import { TableOptions, NoteVisibility, } from 'src/types/dashboards' +import {QueryStatuses} from './queries' // Write Data Modes export enum WriteDataMode { @@ -20,7 +21,7 @@ export interface DEState { queryID: string | null status: Status } - queryStatuses: Record + queryStatuses: QueryStatuses } export interface VisualizationOptions { diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts index 2651f416d..59361ffcf 100644 --- a/ui/src/types/index.ts +++ b/ui/src/types/index.ts @@ -38,6 +38,7 @@ import { FuncArg, Namespace, QueryStatus, + QueryStatuses, Tag, Tags, TagValues, @@ -134,6 +135,7 @@ export { TemplateBuilderProps, WriteDataMode, QueryStatus, + QueryStatuses, Host, Layout, QueryType, diff --git a/ui/src/types/queries.ts b/ui/src/types/queries.ts index 1ceb42bfc..229f4a56d 100644 --- a/ui/src/types/queries.ts +++ b/ui/src/types/queries.ts @@ -33,6 +33,7 @@ export interface QueryStatus { queryID: string status: Status } +export type QueryStatuses = Record export interface Field { value: string