I was wondering what would be the best way to differentiate this client and the traditional one.
At the moment, I'm relying on instanceof, but that implies importing the class everywhere a typeguard is required.
Is there any property we can check to make the distinction?
Would the name help? As in setting it as elasticsearch-serverless-js?
|
name: 'elasticsearch-js', |
Although that seems configurable and maybe not 100% working solution.