File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
clients/new-js/packages/chromadb Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ const main = async () => {
3636
3737 // Fix the HashMap type to include null and remove duplicate number
3838 typesContent = typesContent . replace (
39- / e x p o r t t y p e H a s h M a p = \{ \s * \[ k e y : s t r i n g \] : b o o l e a n \| n u m b e r \| n u m b e r \| s t r i n g ; \s * \ }; / ,
40- "export type HashMap = {\n [key: string]: boolean | number | string | null;\n};" ,
39+ / e x p o r t t y p e H a s h M a p = \{ \s * \[ k e y : s t r i n g \] : b o o l e a n \| n u m b e r \| n u m b e r \| s t r i n g \| S p a r s e V e c t o r ; \s * } ; / ,
40+ "export type HashMap = {\n [key: string]: boolean | number | string | SparseVector | null;\n};" ,
4141 ) ;
4242
4343 await writeFile ( typesPath , typesContent ) ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export type GetUserIdentityResponse = {
131131} ;
132132
133133export type HashMap = {
134- [ key : string ] : boolean | number | number | string | SparseVector ;
134+ [ key : string ] : boolean | number | string | SparseVector | null ;
135135} ;
136136
137137export type HeartbeatResponse = {
Original file line number Diff line number Diff line change 1- import { GetUserIdentityResponse , Include } from "./api" ;
1+ import { GetUserIdentityResponse , Include , SparseVector } from "./api" ;
22
33/**
44 * User identity information including tenant and database access.
@@ -11,14 +11,17 @@ export type UserIdentity = GetUserIdentityResponse;
1111 */
1212export type CollectionMetadata = Record <
1313 string ,
14- boolean | number | string | null
14+ boolean | number | string | SparseVector | null
1515> ;
1616
1717/**
1818 * Metadata that can be associated with individual records.
1919 * Values must be boolean, number, or string types.
2020 */
21- export type Metadata = Record < string , boolean | number | string | null > ;
21+ export type Metadata = Record <
22+ string ,
23+ boolean | number | string | SparseVector | null
24+ > ;
2225
2326/**
2427 * Base interface for record sets containing optional fields.
You can’t perform that action at this time.
0 commit comments