more typings work around data query and data source

This commit is contained in:
Torkel Ödegaard
2019-01-18 18:59:32 +01:00
parent 1d2902715f
commit 5d17ad1103
5 changed files with 69 additions and 19 deletions

View File

@@ -7,8 +7,26 @@ export interface DataQueryResponse {
}
export interface DataQuery {
/**
* A - Z
*/
refId: string;
/**
* true if query is disabled (ie not executed / sent to TSDB)
*/
hide?: boolean;
/**
* Unique, guid like, string used in explore mode
*/
key?: string;
/**
* For mixed data sources the selected datasource is on the query level.
* For non mixed scenarios this is undefined.
*/
datasource?: string | null;
}
export interface DataQueryOptions<TQuery extends DataQuery = DataQuery> {