Skip to content

Commit 5e778cf

Browse files
committed
🐛 FIX: Filter types
1 parent f06eb5a commit 5e778cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/langbase/src/langbase/langbase.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,8 @@ export interface MemoryDeleteOptions {
280280
type FilterOperator = 'Eq' | 'NotEq' | 'In' | 'NotIn' | 'And' | 'Or';
281281
type FilterConnective = 'And' | 'Or';
282282
type FilterValue = string | string[];
283-
type MemoryFilters = [
284-
FilterOperator | FilterConnective,
285-
FilterValue | MemoryFilters,
286-
][];
283+
type FilterCondition = [string, FilterOperator, FilterValue];
284+
type MemoryFilters = [FilterConnective, MemoryFilters[]] | FilterCondition;
287285

288286
export interface MemoryRetrieveOptions {
289287
query: string;

0 commit comments

Comments
 (0)