noImplicitAny: Reduce errors to 3800-ish (#17781)

* Reduce noImplicitAny errors to 3900-ish

* Fix lots of errors

* Add interface
This commit is contained in:
Tobias Skarhed
2019-06-27 13:21:04 +02:00
committed by Torkel Ödegaard
parent 013a1abb6f
commit 3045daedbd
29 changed files with 302 additions and 238 deletions

View File

@@ -1,5 +1,6 @@
import React, { PureComponent } from 'react';
import _ from 'lodash';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import classnames from 'classnames';
@@ -58,7 +59,7 @@ interface State {
* Renders a highlighted field.
* When hovering, a stats icon is shown.
*/
const FieldHighlight = onClick => props => {
const FieldHighlight = (onClick: any) => (props: any) => {
return (
<span className={props.className} style={props.style}>
{props.children}
@@ -86,7 +87,7 @@ const getLogRowWithContextStyles = (theme: GrafanaTheme, state: State) => {
row: css`
z-index: 1;
outline: 9999px solid
${tinycolor(outlineColor)
${tinycolor(outlineColor as tinycolor.ColorInput)
.setAlpha(0.7)
.toRgbString()};
`,
@@ -103,7 +104,7 @@ const getLogRowWithContextStyles = (theme: GrafanaTheme, state: State) => {
export class LogRow extends PureComponent<Props, State> {
mouseMessageTimer: NodeJS.Timer;
state = {
state: any = {
fieldCount: 0,
fieldLabel: null,
fieldStats: null,