From 2fb10c3e992cb8eebf0f336c2d59cb6baf1509ce Mon Sep 17 00:00:00 2001 From: polizz Date: Wed, 6 Dec 2017 19:26:41 -0600 Subject: [PATCH 1/3] Add missing _.matches iteratee shorthand --- types/lodash/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index 07c9e1227b..d6c21d839b 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -17100,7 +17100,7 @@ declare namespace _ { // Note: key should be string, not keyof T, because the actual object may contain extra properties that were not specified in the type. type ObjectIterator = (value: TObject[keyof TObject], key: string, collection: TObject) => TResult; type ObjectIteratee = ObjectIterator | string | [string, any] | PartialDeep; - type ObjectIterateeCustom = ObjectIterator | string | [string, any] | PartialDeep; + type ObjectIterateeCustom = ObjectIterator | string | {} | [string, any] | PartialDeep; type ObjectIteratorTypeGuard = (value: TObject[keyof TObject], key: string, collection: TObject) => value is S; type DictionaryIterator = ObjectIterator, TResult>; From c770de6b7dc91a9c5620067cfd266f1ac69fa7e0 Mon Sep 17 00:00:00 2001 From: polizz Date: Thu, 7 Dec 2017 08:07:27 -0600 Subject: [PATCH 2/3] Align with standard --- types/lodash/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index d6c21d839b..c3f942d5a0 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -17100,7 +17100,7 @@ declare namespace _ { // Note: key should be string, not keyof T, because the actual object may contain extra properties that were not specified in the type. type ObjectIterator = (value: TObject[keyof TObject], key: string, collection: TObject) => TResult; type ObjectIteratee = ObjectIterator | string | [string, any] | PartialDeep; - type ObjectIterateeCustom = ObjectIterator | string | {} | [string, any] | PartialDeep; + type ObjectIterateeCustom = ObjectIterator | string | object | [string, any] | PartialDeep; type ObjectIteratorTypeGuard = (value: TObject[keyof TObject], key: string, collection: TObject) => value is S; type DictionaryIterator = ObjectIterator, TResult>; From 6bb4108949c4693c2f6869b2363ba8643b4869f2 Mon Sep 17 00:00:00 2001 From: polizz Date: Thu, 7 Dec 2017 08:20:14 -0600 Subject: [PATCH 3/3] Add _.matches shorthand to ListIterateeCustom --- types/lodash/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index c3f942d5a0..76b0bcd47b 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -17094,7 +17094,7 @@ declare namespace _ { type ArrayIterator = (value: T, index: number, collection: T[]) => TResult; type ListIterator = (value: T, index: number, collection: List) => TResult; type ListIteratee = ListIterator | string | [string, any] | PartialDeep; - type ListIterateeCustom = ListIterator | string | [string, any] | PartialDeep; + type ListIterateeCustom = ListIterator | string | object | [string, any] | PartialDeep; type ListIteratorTypeGuard = (value: T, index: number, collection: List) => value is S; // Note: key should be string, not keyof T, because the actual object may contain extra properties that were not specified in the type.