diff --git a/src/datasource-zabbix/types.ts b/src/datasource-zabbix/types.ts index 3c4ade6..94cb681 100644 --- a/src/datasource-zabbix/types.ts +++ b/src/datasource-zabbix/types.ts @@ -17,7 +17,7 @@ export interface ZabbixMetricsQuery extends DataQuery { triggers: { minSeverity: string; acknowledged: boolean; count: number; }; queryType: string; datasourceId: number; - functions: { name: string; params: any; def: { name: string; params: any; } }[]; + functions: ZabbixMetricFunction[]; options: any; textFilter: string; mode: number; @@ -31,8 +31,11 @@ export interface ZabbixMetricsQuery extends DataQuery { itemFilter: string; } -// export { TemplateSrv } from 'grafana/app/features/templating/template_srv'; -// export { DashboardSrv } from 'grafana/app/features/dashboard/dashboard_srv'; +export interface ZabbixMetricFunction { + 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 // either. Safer not to bother trying to import them just for type hinting. @@ -46,7 +49,7 @@ export interface TemplateSrv { } export interface DashboardSrv { - dash: any + dash: any; } // Grafana types from backend code diff --git a/src/panel-triggers/types.ts b/src/panel-triggers/types.ts index 9f2b03f..05f0cbb 100644 --- a/src/panel-triggers/types.ts +++ b/src/panel-triggers/types.ts @@ -195,7 +195,7 @@ export interface RTRow { /** true if this row was produced by a pivot */ groupedByPivot?: boolean; /** any sub rows defined by the `subRowKey` prop */ - subRows?: any[]; + subRows?: boolean; } export interface RTCell extends RTRow {