Skip to content

Commit

Permalink
feat: Add a utility type for array-matching functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-coster committed Jul 2, 2021
1 parent 8a6d604 commit e427ba2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/Utility.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export type ArrayMatchFunction<T> = (
item: T,
idx?: number,
allItems?: T[],
) => any | Promise<any>;

0 comments on commit e427ba2

Please sign in to comment.