mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
updating isMatchWithCustomizer type to accept two more arguments: object and source per lodash docs https://lodash.com/docs/4.17.11#isMatchWith [add tests]
This commit is contained in:
@@ -4205,7 +4205,7 @@ fp.now(); // $ExpectType number
|
||||
|
||||
// _.isMatchWith
|
||||
{
|
||||
const testIsMatchCustiomizerFn = (value: any, other: any, indexOrKey: number|string|symbol) => true;
|
||||
const testIsMatchCustiomizerFn = (value: any, other: any, indexOrKey: number|string|symbol, object: object, source: object) => true;
|
||||
|
||||
_.isMatchWith({}, {}, testIsMatchCustiomizerFn); // $ExpectType boolean
|
||||
_({}).isMatchWith({}, testIsMatchCustiomizerFn); // $ExpectType boolean
|
||||
|
||||
Reference in New Issue
Block a user