Skip to content

Commit

Permalink
fix(types): workaround upstream Zustand types breakage
Browse files Browse the repository at this point in the history
NOTE: should probably allow both undefined and never for overload; they are not the same.
  • Loading branch information
CodyJasonBennett committed Mar 8, 2024
1 parent 071c2e8 commit d1af5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function useOGL<T = RootState>(
selector: (state: RootState) => T = (state) => state as unknown as T,
equalityFn?: <T>(state: T, newState: T) => boolean,
) {
return useStore()(selector, equalityFn)
return useStore()(selector, equalityFn!)
}

export interface ObjectMap {
Expand Down

0 comments on commit d1af5b6

Please sign in to comment.