Skip to content

Commit

Permalink
Merge pull request #512 from nialldbarber/add-missing-return-types
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Oct 18, 2021
2 parents f202c14 + 6bc2b7a commit a085ab4
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 a085ab4

Please sign in to comment.