Skip to content

Is there any property to differenciate this client from the "traditional" one? #74

@afharo

Description

@afharo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions