-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Labels
Description
🐛 Wrong type
esql _query API
The param
should support either list of params or list of named params, see docs: https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql-rest#esql-rest-params
Definition
If possible provide a snippet with the fix.
+ type NamedFieldValue = {
+ [key: string]: FieldValue
+}
export interface EsqlQueryRequest extends RequestBase {
...
- params?: FieldValue[];
+ params?: FieldValue[] | NamedFieldValue []
}