From 8e7fb46eb51617b4b0fbc8a453423ec636e650f7 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 18 Apr 2019 13:28:12 -0700 Subject: [PATCH] switch to unknown (-3500 types) --- types/lodash/common/common.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/lodash/common/common.d.ts b/types/lodash/common/common.d.ts index 2d56d9f14a..72dfcfe1cf 100644 --- a/types/lodash/common/common.d.ts +++ b/types/lodash/common/common.d.ts @@ -42,7 +42,7 @@ declare module "../index" { splice(this: Exp | null | undefined>, start: number, deleteCount?: number, ...items: T[]): this; unshift(this: Exp | null | undefined>, ...items: T[]): this; } - type NotVoid = {} | null | undefined; + type NotVoid = unknown; type IterateeShorthand = PropertyName | [PropertyName, any] | PartialDeep; type ArrayIterator = (value: T, index: number, collection: T[]) => TResult; type ListIterator = (value: T, index: number, collection: List) => TResult; @@ -83,8 +83,8 @@ declare module "../index" { } // Crazy typedef needed get _.omit to work properly with Dictionary and NumericDictionary type AnyKindOfDictionary = - | Dictionary<{} | null | undefined> - | NumericDictionary<{} | null | undefined>; + | Dictionary + | NumericDictionary; interface Cancelable { cancel(): void; flush(): void;