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:
Kobi Cohen
2018-12-03 12:04:55 +02:00
parent c45cef2c6e
commit c0c4189a26
+1 -1
View File
@@ -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