mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 01:16:31 -06:00
adding types
This commit is contained in:
parent
e6a74eb1a2
commit
9c33a9410f
@ -3,9 +3,11 @@ import { PluginMeta } from './plugin';
|
||||
import { TableData, TimeSeries } from './data';
|
||||
|
||||
export interface DataQueryResponse {
|
||||
data: TimeSeries[] | [TableData] | any;
|
||||
data: DataQueryResponseData;
|
||||
}
|
||||
|
||||
export type DataQueryResponseData = TimeSeries[] | [TableData] | any;
|
||||
|
||||
export interface DataQuery {
|
||||
/**
|
||||
* A - Z
|
||||
|
@ -4,6 +4,7 @@ import {
|
||||
RawTimeRange,
|
||||
TimeRange,
|
||||
DataQuery,
|
||||
DataQueryResponseData,
|
||||
DataSourceSelectItem,
|
||||
DataSourceApi,
|
||||
QueryHint,
|
||||
@ -322,7 +323,11 @@ export interface QueryTransaction {
|
||||
|
||||
export type RangeScanner = () => RawTimeRange;
|
||||
|
||||
export type ResultGetter = (result: any, transaction: QueryTransaction, allTransactions: QueryTransaction[]) => any;
|
||||
export type ResultGetter = (
|
||||
result: DataQueryResponseData,
|
||||
transaction: QueryTransaction,
|
||||
allTransactions: QueryTransaction[]
|
||||
) => any;
|
||||
|
||||
export interface TextMatch {
|
||||
text: string;
|
||||
|
Loading…
Reference in New Issue
Block a user