Hi. I am using the latest verison of elasicsearch-js SDK and I noticed the docs in client.indices.create that they said we can use both underscore as well as camel casing (https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html)

That is, wait_for_active_shards or waitForActiveShards, include_type_name or includeTypeName
But, when I am using camelcase, I am getting error in typescript since they are not defined in the interface file (Screenshot below).

Thought I would let you guys know. Thanks.
Hello! Thank you for reporting, but this is a design decision, as you can鈥檛 have both camelCase and snake_case keys while you need to support required parameter as well.
There is a note about this in the typescript documentation :)
Oops. Missed to see that. Thanks for the clarification.