Inability to import your official types e.g. IndexRequest
, SearchResponse
etc.
#2612
Labels
IndexRequest
, SearchResponse
etc.
#2612
Question
Background
We operate a project that uses Typescript, Lambda and Elasticsearch. We've been using your
elasticsearch
package for some time, and recently I have been working to upgrade our local version to your latest -8.17.0
from8.15.1
.The problem
We have declarations like the following that no longer work (Typescript throws a compiler error):
The above used to be fine with
tsc
, but now it throws an error:Any reason this works in
8.15.1
but not in8.17.0
? Can we still import types or no?Things tried
@types/elasticsearch
, this works to bring in types, but that package is missingIndexRequest
among other types and at least theSearchResponse
type is incompatible with the official@elastic/elasticsearch
exported API.The text was updated successfully, but these errors were encountered: