Skip to content

Commit

Permalink
feat: add PredicateFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadam committed Dec 6, 2022
1 parent 50fd073 commit 71170f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export type Primitive = string | number | boolean;

export type Dictionary<T, K extends string | number | symbol = string> = {
[key in K]: T;
[key in K]?: T;
};

export type PredicateFunction = (...args: any[]) => boolean;

0 comments on commit 71170f7

Please sign in to comment.