typed-typings / npm-lodash

The type definition for https://github.com/lodash/lodash
MIT License
16 stars 22 forks source link

isEqualWith has wrong return type for customizer #23

Open felixfbecker opened 8 years ago

felixfbecker commented 8 years ago

From the docs:

If customizer returns undefined, comparisons are handled by the method instead.

interface IsEqualCustomizer {
  (value: any, other: any, indexOrKey?: number | string): boolean;
}

should be

interface IsEqualCustomizer {
  (value: any, other: any, indexOrKey?: number | string): boolean | void;
}