Skip to content

Commit

Permalink
issue-#61 - Updated 'UnaryPred<T>' type to take an optional 'x', inst…
Browse files Browse the repository at this point in the history
…ead of an 'required x'.
  • Loading branch information
elycruz committed Sep 12, 2022
1 parent 37c7c2a commit 8ad5893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fjl/src/types/arity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type Monadic<A = any, B = any, Ret = any> = (a?: A, ...bs: B[]) => Ret;

export type Polyadic<A = any, B = any, C = any, RetT = any> = (a?: A, b?: B, ...cs: C[]) => RetT;

export type UnaryPred<T = any> = (x: T) => boolean;
export type UnaryPred<T = any> = (x?: T) => boolean;

export type BinaryPred<A = any, B = any> = (a?: A, b?: B) => boolean;

Expand Down

0 comments on commit 8ad5893

Please sign in to comment.