noImplicitAnys: Fix InfluxDB type issues #17937)

This commit is contained in:
Tobias Skarhed
2019-07-05 07:52:23 +02:00
committed by Torkel Ödegaard
parent de71875e6b
commit 418dba4b21
15 changed files with 126 additions and 98 deletions

View File

@@ -1,7 +1,7 @@
import _ from 'lodash';
import kbn from 'app/core/utils/kbn';
function renderTagCondition(tag, index) {
function renderTagCondition(tag: { operator: any; value: string; condition: any; key: string }, index: number) {
let str = '';
let operator = tag.operator;
let value = tag.value;
@@ -26,7 +26,7 @@ function renderTagCondition(tag, index) {
}
export class InfluxQueryBuilder {
constructor(private target, private database?) {}
constructor(private target: { measurement: any; tags: any; policy?: any }, private database?: string) {}
buildExploreQuery(type: string, withKey?: string, withMeasurementFilter?: string) {
let query;