Skip to content

Commit

Permalink
refactor: use generics on responseMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 12, 2021
1 parent e424213 commit 1c10b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/cache-predicate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type CachePredicateObject = {
/**
* Check if the desired response matches this predicate.
*/
responseMatch?: (res: any | undefined) => boolean;
responseMatch?: <T = any>(res: T | undefined) => boolean;
};

export function checkPredicateObject(
Expand Down

0 comments on commit 1c10b41

Please sign in to comment.