mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: noImplictAny no errors left (#18303)
* Add types and rewrite datasourceChanged to async/await
This commit is contained in:
@@ -58,7 +58,7 @@ export class Graph extends PureComponent<GraphProps> {
|
||||
}),
|
||||
yAxisConfig => yAxisConfig.index
|
||||
);
|
||||
const flotOptions = {
|
||||
const flotOptions: any = {
|
||||
legend: {
|
||||
show: false,
|
||||
},
|
||||
|
||||
@@ -27,7 +27,7 @@ export class Input extends PureComponent<Props, State> {
|
||||
className: '',
|
||||
};
|
||||
|
||||
state = {
|
||||
state: State = {
|
||||
error: null,
|
||||
};
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ export class SetInterval extends PureComponent<Props> {
|
||||
this.propsSubject.unsubscribe();
|
||||
}
|
||||
|
||||
render() {
|
||||
render(): null {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user