noImplicitAny: Down approx 200 errors (#18143)

* noImplicitAny playlist approx 200

* Add AngularPanelMenuItem interface

* Roughly 100 noImplicitAny
This commit is contained in:
Tobias Skarhed
2019-07-18 08:03:04 +02:00
committed by Torkel Ödegaard
parent ed099d5ca0
commit c8498461a5
48 changed files with 268 additions and 149 deletions

View File

@@ -1,5 +1,7 @@
import { FolderPageLoader } from './services/FolderPageLoader';
import locationUtil from 'app/core/utils/location_util';
import { NavModelSrv } from 'app/core/core';
import { ILocationService } from 'angular';
export default class FolderDashboardsCtrl {
navModel: any;
@@ -7,13 +9,18 @@ export default class FolderDashboardsCtrl {
uid: string;
/** @ngInject */
constructor(private backendSrv, navModelSrv, private $routeParams, $location) {
constructor(
private backendSrv: any,
navModelSrv: NavModelSrv,
private $routeParams: any,
$location: ILocationService
) {
if (this.$routeParams.uid) {
this.uid = $routeParams.uid;
const loader = new FolderPageLoader(this.backendSrv);
loader.load(this, this.uid, 'manage-folder-dashboards').then(folder => {
loader.load(this, this.uid, 'manage-folder-dashboards').then((folder: any) => {
const url = locationUtil.stripBaseFromUrl(folder.url);
if (url !== $location.path()) {