diff --git a/templates/javascript/clients/algoliasearch/builds/imports.mustache b/templates/javascript/clients/algoliasearch/builds/imports.mustache index 4928b4ff81..ac69f05ff8 100644 --- a/templates/javascript/clients/algoliasearch/builds/imports.mustache +++ b/templates/javascript/clients/algoliasearch/builds/imports.mustache @@ -16,5 +16,8 @@ export * from './models'; export const apiClientVersion = searchClientVersion; +/** + * The client type. + */ export type Algoliasearch = ReturnType; diff --git a/templates/javascript/clients/algoliasearch/builds/models.mustache b/templates/javascript/clients/algoliasearch/builds/models.mustache index d4324aa852..4d28a4f554 100644 --- a/templates/javascript/clients/algoliasearch/builds/models.mustache +++ b/templates/javascript/clients/algoliasearch/builds/models.mustache @@ -17,6 +17,11 @@ export * from '{{{npmNamespace}}}/client-personalization/model'; export * from '{{{npmNamespace}}}/client-analytics/model'; export * from '{{{npmNamespace}}}/client-abtesting/model'; +export { SearchClient } from '{{{npmNamespace}}}/client-search'; +export { PersonalizationClient } from '{{{npmNamespace}}}/client-personalization'; +export { AnalyticsClient } from '{{{npmNamespace}}}/client-analytics'; +export { AbtestingClient } from '{{{npmNamespace}}}/client-abtesting'; + export { ErrorBase, PutProps, PostProps, DelProps, GetProps }; export type CommonClientOptions = { requester?: Requester; hosts?: Host[] }; diff --git a/templates/javascript/clients/api-single.mustache b/templates/javascript/clients/api-single.mustache index 290a6c0f1e..c85f769036 100644 --- a/templates/javascript/clients/api-single.mustache +++ b/templates/javascript/clients/api-single.mustache @@ -130,6 +130,9 @@ export function create{{capitalizedApiName}}({ }; } +/** + * The client type. + */ export type {{capitalizedApiName}} = ReturnType; {{/operations}}