mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
committed by
Torkel Ödegaard
parent
2f00087a08
commit
8ffef57178
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user