You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TypeScript typedefs in index.d.ts do not include the errors key that is exported in index.js. This makes it impossible to import error types and check them in try/catch statements.
🐛 Bug Report
The TypeScript typedefs in
index.d.ts
do not include theerrors
key that is exported inindex.js
. This makes it impossible to import error types and check them in try/catch statements.To Reproduce
Steps to reproduce the behavior:
Paste your code here:
Expected behavior
I expect the errors structure to be imported so I can check
e instanceof errors.ResponseError
.Paste the results here:
Your Environment
@elastic/elasticsearch
version: >=7.0.0The text was updated successfully, but these errors were encountered: