Skip to content

Commit

Permalink
fix(types): let filterKey accept key: keyof any
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 26, 2024
1 parent b10ad10 commit 73ac8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/filterKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type KeyFilter<
*/
export const filterKey = (
obj: object,
key: string,
key: keyof any,
filter: KeyFilter | null | undefined
): boolean => {
return (
Expand Down

0 comments on commit 73ac8bb

Please sign in to comment.