From 35991bfe87b036a105e0609a9061fde58aee73d4 Mon Sep 17 00:00:00 2001 From: calvintwr Date: Fri, 22 Sep 2023 01:30:58 +0800 Subject: [PATCH] export IncludeEnum as it is required by #get and #query (#1167) ## Description of changes The `IncludeEnum` enum is not exported, cause lint errors when using `.get` or `.query`, as follows: ```js const result = await collection.query({ queryTexts: [query], // THIS LINE WILL PRODUCE LINT ERROR as it needs IncludeEnum.Distances etc. include: ['distances', 'documents', 'metadatas'], nResults: 2, }) ``` ## Test plan Nil ## Documentation Changes Nil --- clients/js/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/js/src/index.ts b/clients/js/src/index.ts index 192f39c9477..97c119dfcb1 100644 --- a/clients/js/src/index.ts +++ b/clients/js/src/index.ts @@ -5,3 +5,4 @@ export { OpenAIEmbeddingFunction } from './embeddings/OpenAIEmbeddingFunction'; export { CohereEmbeddingFunction } from './embeddings/CohereEmbeddingFunction'; export { WebAIEmbeddingFunction } from './embeddings/WebAIEmbeddingFunction'; export { TransformersEmbeddingFunction } from './embeddings/TransformersEmbeddingFunction'; +export { IncludeEnum } from './types'; \ No newline at end of file