Skip to content

Commit 71fdb1e

Browse files
committed
fix: marginally better type
1 parent b6ae5e9 commit 71fdb1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

where-filter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export default function whereFilter<T>(filter: Where<T> | FilterFunction<T>): Fi
285285
if (dotIndex !== -1) {
286286
const subValue = obj[key.substring(0, dotIndex)];
287287

288-
const subWhere = {} as any;
288+
const subWhere: Record<string, unknown> = {};
289289
const subKey = key.substring(dotIndex + 1);
290290

291291
subWhere[subKey] = where[key];

0 commit comments

Comments
 (0)