noImplicitAny: 1670 errors (#18035)

* Sub 2000 errors

* Down to 1670 errors

* Minor fixes
This commit is contained in:
Tobias Skarhed
2019-07-11 17:05:45 +02:00
committed by Torkel Ödegaard
parent 6aa58182c7
commit e1cec1069c
34 changed files with 300 additions and 271 deletions

View File

@@ -1,6 +1,6 @@
import { toUtc, dateTime } from '@grafana/data';
const intervalMap = {
const intervalMap: any = {
Hourly: { startOf: 'hour', amount: 'hours' },
Daily: { startOf: 'day', amount: 'days' },
Weekly: { startOf: 'isoWeek', amount: 'weeks' },
@@ -9,7 +9,7 @@ const intervalMap = {
};
export class IndexPattern {
constructor(private pattern, private interval: string | null) {}
constructor(private pattern: any, private interval: string | null) {}
getIndexForToday() {
if (this.interval) {
@@ -19,7 +19,7 @@ export class IndexPattern {
}
}
getIndexList(from, to) {
getIndexList(from: any, to: any) {
if (!this.interval) {
return this.pattern;
}