diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index 889ad0c8b85..7d408a0eff7 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -104,14 +104,14 @@ export class DataSourceWithBackend< /** * Make a GET request to the datasource resource path */ - async getResource(path: string, params?: any): Promise> { + async getResource(path: string, params?: any): Promise { return getBackendSrv().get(`/api/datasources/${this.id}/resources/${path}`, params); } /** * Send a POST request to the datasource resource path */ - async postResource(path: string, body?: any): Promise> { + async postResource(path: string, body?: any): Promise { return getBackendSrv().post(`/api/datasources/${this.id}/resources/${path}`, { ...body }); }