Skip to content

Commit

Permalink
make defaultEqualityFn optional (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour authored Oct 2, 2023
1 parent 8b242ce commit 368478b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traditional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ export type UseBoundStoreWithEqualityFn<
type CreateWithEqualityFn = {
<T, Mos extends [StoreMutatorIdentifier, unknown][] = []>(
initializer: StateCreator<T, [], Mos>,
defaultEqualityFn: <U>(a: U, b: U) => boolean
defaultEqualityFn?: <U>(a: U, b: U) => boolean
): UseBoundStoreWithEqualityFn<Mutate<StoreApi<T>, Mos>>
<T>(): <Mos extends [StoreMutatorIdentifier, unknown][] = []>(
initializer: StateCreator<T, [], Mos>,
defaultEqualityFn: <U>(a: U, b: U) => boolean
defaultEqualityFn?: <U>(a: U, b: U) => boolean
) => UseBoundStoreWithEqualityFn<Mutate<StoreApi<T>, Mos>>
}

Expand Down

1 comment on commit 368478b

@vercel
Copy link

@vercel vercel bot commented on 368478b Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.