mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
noImplicitAny: 1670 errors (#18035)
* Sub 2000 errors * Down to 1670 errors * Minor fixes
This commit is contained in:
committed by
Torkel Ödegaard
parent
6aa58182c7
commit
e1cec1069c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user