Skip to content

Commit

Permalink
Added missing return types to defaultEqualityCheck & areArgumentsShal…
Browse files Browse the repository at this point in the history
…lowlyEqual
  • Loading branch information
nialldbarber committed Oct 18, 2021
1 parent f202c14 commit 6bc2b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export type {
ParametricSelector
} from './types'

export const defaultEqualityCheck: EqualityFn = (a, b) => {
export const defaultEqualityCheck: EqualityFn = (a, b): boolean => {
return a === b
}

function areArgumentsShallowlyEqual(
equalityCheck: EqualityFn,
prev: unknown[] | IArguments | null,
next: unknown[] | IArguments | null
) {
): boolean {
if (prev === null || next === null || prev.length !== next.length) {
return false
}
Expand Down

0 comments on commit 6bc2b7a

Please sign in to comment.