diff --git a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx index aad6b00fdc0..9f60c3440eb 100644 --- a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx +++ b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx @@ -10,12 +10,12 @@ import { BarGauge, VizRepeater } from '@grafana/ui'; // Types import { BarGaugeOptions } from './types'; -import { PanelProps } from '@grafana/ui/src/types'; +import { PanelProps, SingleStatValueInfo } from '@grafana/ui/src/types'; interface Props extends PanelProps {} export class BarGaugePanel extends PureComponent { - renderBarGauge(value, width, height) { + renderBarGauge(value: SingleStatValueInfo, width, height) { const { replaceVariables, options } = this.props; const { valueOptions } = options; @@ -24,7 +24,7 @@ export class BarGaugePanel extends PureComponent { return ( {} export class GaugePanel extends PureComponent { - renderGauge(value, width, height) { + renderGauge(value: SingleStatValueInfo, width, height) { const { replaceVariables, options } = this.props; const { valueOptions } = options; @@ -24,7 +24,7 @@ export class GaugePanel extends PureComponent { return (