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;