Skip to content

[bug]: TS missing type union? #1611

Description

@Rolleander

Description

The type SearchClientNodeHelpers does not seem to be used in the searchclient typing.
As a result, the generateSecuredApiKey method and others are not available in the client typing.

I had to use this workaround:

import { Algoliasearch, algoliasearch, type SearchClientNodeHelpers } from "algoliasearch";

type NodeAlgoliaClient = Algoliasearch & SearchClientNodeHelpers;

let algolia = algoliasearch(appId, apiKey) as NodeAlgoliaClient;
algolia.generateSecuredApiKey({...});

Client

Search

Version

5.55.0

Relevant log output

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions