Chore: noImplictAny no errors left (#18303)

* Add types and rewrite datasourceChanged to async/await
This commit is contained in:
Tobias Skarhed
2019-08-01 14:38:34 +02:00
committed by GitHub
parent bcf28cb7a2
commit 83da3660da
63 changed files with 285 additions and 211 deletions

View File

@@ -58,7 +58,7 @@ export class Graph extends PureComponent<GraphProps> {
}),
yAxisConfig => yAxisConfig.index
);
const flotOptions = {
const flotOptions: any = {
legend: {
show: false,
},

View File

@@ -27,7 +27,7 @@ export class Input extends PureComponent<Props, State> {
className: '',
};
state = {
state: State = {
error: null,
};

View File

@@ -76,7 +76,7 @@ export class SetInterval extends PureComponent<Props> {
this.propsSubject.unsubscribe();
}
render() {
render(): null {
return null;
}
}

View File

@@ -210,7 +210,7 @@ export abstract class DataSourceApi<
/**
* Get tag keys for adhoc filters
*/
getTagKeys?(options: any): Promise<MetricFindValue[]>;
getTagKeys?(options?: any): Promise<MetricFindValue[]>;
/**
* Get tag values for adhoc filters