fix types

This commit is contained in:
Alexander Zobnin
2020-05-28 12:10:07 +03:00
parent da6352263b
commit 88e8b689ad
2 changed files with 8 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ export interface ZabbixMetricsQuery extends DataQuery {
triggers: { minSeverity: string; acknowledged: boolean; count: number; }; triggers: { minSeverity: string; acknowledged: boolean; count: number; };
queryType: string; queryType: string;
datasourceId: number; datasourceId: number;
functions: { name: string; params: any; def: { name: string; params: any; } }[]; functions: ZabbixMetricFunction[];
options: any; options: any;
textFilter: string; textFilter: string;
mode: number; mode: number;
@@ -31,8 +31,11 @@ export interface ZabbixMetricsQuery extends DataQuery {
itemFilter: string; itemFilter: string;
} }
// export { TemplateSrv } from 'grafana/app/features/templating/template_srv'; export interface ZabbixMetricFunction {
// export { DashboardSrv } from 'grafana/app/features/dashboard/dashboard_srv'; name: string;
params: any;
def: { name: string; params: any; };
}
// The paths of these files have moved around in Grafana and they don't resolve properly // The paths of these files have moved around in Grafana and they don't resolve properly
// either. Safer not to bother trying to import them just for type hinting. // either. Safer not to bother trying to import them just for type hinting.
@@ -46,7 +49,7 @@ export interface TemplateSrv {
} }
export interface DashboardSrv { export interface DashboardSrv {
dash: any dash: any;
} }
// Grafana types from backend code // Grafana types from backend code

View File

@@ -195,7 +195,7 @@ export interface RTRow<T> {
/** true if this row was produced by a pivot */ /** true if this row was produced by a pivot */
groupedByPivot?: boolean; groupedByPivot?: boolean;
/** any sub rows defined by the `subRowKey` prop */ /** any sub rows defined by the `subRowKey` prop */
subRows?: any[]; subRows?: boolean;
} }
export interface RTCell<T> extends RTRow<T> { export interface RTCell<T> extends RTRow<T> {