Chore: type backendSrv.datasourceRequest (#31870)

This commit is contained in:
Josh Hunt
2021-03-10 19:52:25 +00:00
committed by GitHub
parent c40d96d0ab
commit a51cc050e2
2 changed files with 6 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ export interface BackendSrv {
* to display datasource query information. Can be skipped by adding `option.silent`
* when initializing the request.
*/
datasourceRequest(options: BackendSrvRequest): Promise<any>;
datasourceRequest<T = any>(options: BackendSrvRequest): Promise<FetchResponse<T>>;
/**
* Observable http request interface