mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
noImplicitAny: Reduce errors to 3800-ish (#17781)
* Reduce noImplicitAny errors to 3900-ish * Fix lots of errors * Add interface
This commit is contained in:
committed by
Torkel Ödegaard
parent
013a1abb6f
commit
3045daedbd
@@ -1,6 +1,7 @@
|
||||
// Libraries
|
||||
import _ from 'lodash';
|
||||
import $ from 'jquery';
|
||||
// @ts-ignore
|
||||
import Drop from 'tether-drop';
|
||||
|
||||
// Utils and servies
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import { route } from 'angular';
|
||||
|
||||
interface RegisterRoutesHandler {
|
||||
($routeProvider): any;
|
||||
($routeProvider: route.IRouteProvider): any;
|
||||
}
|
||||
|
||||
const handlers: RegisterRoutesHandler[] = [];
|
||||
|
||||
export function applyRouteRegistrationHandlers($routeProvider) {
|
||||
export function applyRouteRegistrationHandlers($routeProvider: route.IRouteProvider) {
|
||||
for (const handler of handlers) {
|
||||
handler($routeProvider);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user