Skip to content

Commit

Permalink
fix: update types for vector and sparseVector in update and upsert co…
Browse files Browse the repository at this point in the history
…mmands
  • Loading branch information
CahidArda committed Dec 30, 2024
1 parent 56529db commit e5020c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/client/update/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ type VectorUpdatePayload = {
id: string | number;
} & (
| {
vector?: never;
vector?: number[];
sparseVector: SparseVector;
}
| {
vector: number[];
sparseVector?: never;
sparseVector?: SparseVector;
}
| {
vector: number[];
Expand Down
4 changes: 2 additions & 2 deletions src/commands/client/upsert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ type VectorPayload<TMetadata> = {
} & (
| {
vector: number[];
sparseVector?: never;
sparseVector?: SparseVector;
}
| {
vector?: never;
vector?: number[];
sparseVector: SparseVector;
}
| {
Expand Down

0 comments on commit e5020c6

Please sign in to comment.