Typescript: A batch of implicit any fixes (#17590)

* Reduce noImplicitAny errors

* Lower err count

* Static version

* Fix noImplicitAny

* Table: moved type file
This commit is contained in:
Tobias Skarhed
2019-06-15 08:25:33 +02:00
committed by Torkel Ödegaard
parent 2f00087a08
commit 8ffef57178
8 changed files with 63 additions and 28 deletions

View File

@@ -1,5 +1,7 @@
import _ from 'lodash';
import { transformers } from './transformers';
import { IQService } from 'angular';
import { Column } from 'react-virtualized';
export class TablePanelEditorCtrl {
panel: any;
@@ -12,7 +14,7 @@ export class TablePanelEditorCtrl {
columnsHelpMessage: string;
/** @ngInject */
constructor($scope, private $q, private uiSegmentSrv) {
constructor($scope: any, private $q: IQService, private uiSegmentSrv: any) {
$scope.editor = this;
this.panelCtrl = $scope.ctrl;
this.panel = this.panelCtrl.panel;
@@ -78,14 +80,14 @@ export class TablePanelEditorCtrl {
this.panelCtrl.render();
}
removeColumn(column) {
removeColumn(column: Column) {
this.panel.columns = _.without(this.panel.columns, column);
this.panelCtrl.render();
}
}
/** @ngInject */
export function tablePanelEditor($q, uiSegmentSrv) {
export function tablePanelEditor($q: IQService, uiSegmentSrv: any) {
'use strict';
return {
restrict: 'E',