Commit 0811fbd6 by Johannes Schill

fix: Add missing typing

parent e5759fa0
...@@ -9,7 +9,7 @@ import { processTimeSeries } from '@grafana/ui/src/utils'; ...@@ -9,7 +9,7 @@ import { processTimeSeries } from '@grafana/ui/src/utils';
import { Graph } from '@grafana/ui'; import { Graph } from '@grafana/ui';
// Types // Types
import { PanelProps, NullValueMode } from '@grafana/ui/src/types'; import { PanelProps, NullValueMode, TimeSeriesVMs } from '@grafana/ui/src/types';
import { Options } from './types'; import { Options } from './types';
interface Props extends PanelProps<Options> {} interface Props extends PanelProps<Options> {}
...@@ -19,7 +19,7 @@ export class GraphPanel extends PureComponent<Props> { ...@@ -19,7 +19,7 @@ export class GraphPanel extends PureComponent<Props> {
const { panelData, timeRange, width, height } = this.props; const { panelData, timeRange, width, height } = this.props;
const { showLines, showBars, showPoints } = this.props.options; const { showLines, showBars, showPoints } = this.props.options;
let vmSeries; let vmSeries: TimeSeriesVMs;
if (panelData.timeSeries) { if (panelData.timeSeries) {
vmSeries = processTimeSeries({ vmSeries = processTimeSeries({
timeSeries: panelData.timeSeries, timeSeries: panelData.timeSeries,
......
...@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react'; ...@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
import { PanelProps } from '@grafana/ui'; import { PanelProps } from '@grafana/ui';
export class Text2 extends PureComponent<PanelProps> { export class Text2 extends PureComponent<PanelProps> {
constructor(props) { constructor(props: PanelProps) {
super(props); super(props);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment