Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit b362724

Browse files
committed
fix: correct filterFunction's return type
1 parent 5f39556 commit b362724

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte-query-pocketbase': patch
3+
---
4+
5+
fix: correct filterFunction's return type

src/lib/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export interface CollectionStoreOptions<
8181
value: TQueryFnDataSingular,
8282
index: number,
8383
array: TQueryFnDataSingular[]
84-
) => TQueryFnDataSingular[];
84+
) => boolean;
8585
filterFunctionThisArg?: any;
8686
}
8787

@@ -109,6 +109,6 @@ export interface InfiniteCollectionStoreOptions<
109109
value: TQueryFnDataSingular,
110110
index: number,
111111
array: TQueryFnDataSingular[]
112-
) => TQueryFnDataSingular[];
112+
) => boolean;
113113
filterFunctionThisArg?: any;
114114
}

0 commit comments

Comments
 (0)