Skip to content

Commit 32ec889

Browse files
authored
Fix ESQL helper types for 8.19 (#2899)
1 parent 3a61d9b commit 32ec889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,6 @@ export default class Helpers {
10041004

10051005
params.format = 'json'
10061006
params.columnar = false
1007-
// @ts-expect-error it's typed as ArrayBuffer but we know it will be JSON
10081007
const response: EsqlResponse = await client.esql.query(params, reqOptions)
10091008
const records: TDocument[] = toRecords(response)
10101009
const { columns } = response
@@ -1019,7 +1018,8 @@ export default class Helpers {
10191018

10201019
params.format = 'arrow'
10211020

1022-
const response = await client.esql.query(params, reqOptions)
1021+
// @ts-expect-error the return type will be ArrayBuffer when the format is set to 'arrow'
1022+
const response: ArrayBuffer = await client.esql.query(params, reqOptions)
10231023
return tableFromIPC(response)
10241024
},
10251025

0 commit comments

Comments
 (0)