Skip to content

Commit

Permalink
fix(jsr): fix jsr preconditions failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bengry committed Jun 1, 2024
1 parent f98ea05 commit 7c89d1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/functions/isEqual/isEqual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ import { createEqualityComparator } from './_internal/createEqualityComparator';
* isEqual({ a: 1 }, { a: 2 }); // false
* isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true
* isEqual(new Set([1, 2, 3]), new Set([3, 2, 1])); // true
* ```
*/
export const isEqual = createCustomEqual();
export const isEqual: IsEqual = createCustomEqual();

/**
* Create a custom equality comparison method.
Expand All @@ -42,3 +43,5 @@ function createCustomEqual() {

return createIsEqual({ comparator, equals });
}

type IsEqual = <T1, T2>(value1: T1, value2: T2) => boolean;

0 comments on commit 7c89d1d

Please sign in to comment.