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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

View File

@ -25876,6 +25876,11 @@ update-notifier@^2.5.0:
semver-diff "^2.0.0"
xdg-basedir "^3.0.0"
uplot@1.6.4:
version "1.6.4"
resolved "https://registry.yarnpkg.com/uplot/-/uplot-1.6.4.tgz#016e9f66796d78c187957e710743f7ca405dfb4d"
integrity sha512-4d6JixG54HQKFDLAegzwgwf87GtEbp6pt3YlHygyLt+mJ9RHneCXYlZxr1QOhLetoSSHeeDuWP5RFMv8mdltpg==
uplot@1.6.6:
version "1.6.6"
resolved "https://registry.yarnpkg.com/uplot/-/uplot-1.6.6.tgz#81a139acd1f422bdaeedab3f273786114131ae0f"