Skip to content

Commit

Permalink
make defaultEqualityFn optional
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour authored Sep 18, 2023
1 parent deba6ed commit 40065b0
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

0 comments on commit 40065b0

Please sign in to comment.