Skip to content

Commit 5e5fbc7

Browse files
committed
Fix types
1 parent 4a6457b commit 5e5fbc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugins/data_enhanced/server/search/es_search_strategy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import { first } from 'rxjs/operators';
88
import { SearchResponse } from 'elasticsearch';
99
import { Observable } from 'rxjs';
10+
import { TransportRequestPromise } from '@elastic/elasticsearch/lib/Transport';
1011
import { SharedGlobalConfig, RequestHandlerContext, Logger } from '../../../../../src/core/server';
1112
import {
1213
getTotalLoaded,
@@ -72,7 +73,7 @@ export const enhancedEsSearchStrategyProvider = (
7273
request: IEnhancedEsSearchRequest,
7374
options?: ISearchOptions
7475
): Promise<IEsSearchResponse> {
75-
let promise;
76+
let promise: TransportRequestPromise<any>;
7677
const esClient = context.core.elasticsearch.client.asCurrentUser;
7778
const uiSettingsClient = await context.core.uiSettings.client;
7879

0 commit comments

Comments
 (0)