[Backport 8.x] Upgrade ts-standard (#2461)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
committed by
GitHub
parent
fcb421a54e
commit
ad3caf9e94
@ -80,7 +80,7 @@
|
|||||||
"stoppable": "1.1.0",
|
"stoppable": "1.1.0",
|
||||||
"tap": "21.0.1",
|
"tap": "21.0.1",
|
||||||
"ts-node": "10.9.2",
|
"ts-node": "10.9.2",
|
||||||
"ts-standard": "11.0.0",
|
"ts-standard": "12.0.2",
|
||||||
"typescript": "5.6.3",
|
"typescript": "5.6.3",
|
||||||
"workq": "3.0.0",
|
"workq": "3.0.0",
|
||||||
"xmlbuilder2": "3.1.1",
|
"xmlbuilder2": "3.1.1",
|
||||||
|
|||||||
@ -194,7 +194,7 @@ export default class Helpers {
|
|||||||
* @param {object} options - The client optional configuration for this request.
|
* @param {object} options - The client optional configuration for this request.
|
||||||
* @return {array} The documents that matched the request.
|
* @return {array} The documents that matched the request.
|
||||||
*/
|
*/
|
||||||
async search<TDocument = unknown> (params: T.SearchRequest, options: TransportRequestOptions = {}): Promise<Array<TDocument & {_id: Id}>> {
|
async search<TDocument = unknown> (params: T.SearchRequest, options: TransportRequestOptions = {}): Promise<Array<TDocument & { _id: Id }>> {
|
||||||
appendFilterPath('hits.hits._id,hits.hits._source', params, true)
|
appendFilterPath('hits.hits._id,hits.hits._source', params, true)
|
||||||
options.meta = true
|
options.meta = true
|
||||||
const { body: result } = await this[kClient].search<TDocument>(params, options as TransportRequestOptionsWithMeta)
|
const { body: result } = await this[kClient].search<TDocument>(params, options as TransportRequestOptionsWithMeta)
|
||||||
|
|||||||
Reference in New Issue
Block a user