Skip to content

Commit

Permalink
use TransportRequestPromise for transport.request
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jul 20, 2020
1 parent a6f7ca8 commit 0e13b4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/server/elasticsearch/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
ApiResponse,
TransportRequestOptions,
TransportRequestParams,
TransportRequestPromise,
} from '@elastic/elasticsearch/lib/Transport';

/**
Expand All @@ -37,6 +38,6 @@ export type ElasticsearchClient = Omit<
request(
params: TransportRequestParams,
options?: TransportRequestOptions
): Promise<ApiResponse>;
): TransportRequestPromise<ApiResponse>;
};
};

0 comments on commit 0e13b4e

Please sign in to comment.