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
// get health reportconsthealth=awaitelasticsearchClient.healthReport();// attempt to access `status` gives "Property 'status' does not exist on type 'HealthReportResponse'.ts(2339)"console.log(health.status)
Expected behavior
health.status should be of type: 'green' | 'unknown' | 'yellow' | 'red' | undefined
Your Environment
node version: 8.16.1
@elastic/elasticsearchversion: 8.9.0
os: Mac
The text was updated successfully, but these errors were encountered:
@nitinl-cogapp I transferred this to the elasticsearch-specification repo, where we maintain the spec that all clients use to generate type definitions and API signatures. I've opened #2228 to fix this. When it merges, we'll be able to ship this improvement in the next client release.
🐛 Bug Report
TypeScript definition for
HealthReportResponse
is missing the optionalstatus
key.To Reproduce
Steps to reproduce the behavior:
Paste your code here:
Expected behavior
health.status
should be of type:'green' | 'unknown' | 'yellow' | 'red' | undefined
Your Environment
@elastic/elasticsearch
version: 8.9.0The text was updated successfully, but these errors were encountered: