From dcb034264e9a90926ca1927f4bb24752947677a6 Mon Sep 17 00:00:00 2001 From: Sean Zhu Date: Wed, 28 Feb 2018 17:52:24 -0800 Subject: [PATCH] Update "compact" in underscore/index.d.ts See https://github.com/DefinitelyTyped/DefinitelyTyped/blob/81b3b60696aeb6cab25c323219483f7fcf9c30ce/types/lodash/common/array.d.ts#L50 --- types/underscore/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/underscore/index.d.ts b/types/underscore/index.d.ts index 72a2c23c33..8822deca98 100644 --- a/types/underscore/index.d.ts +++ b/types/underscore/index.d.ts @@ -856,7 +856,7 @@ declare module _ { * @param array Array to compact. * @return Copy of `array` without false values. **/ - compact(array: _.List): T[]; + compact(array: _.List | null | undefined): T[] /** * Flattens a nested array (the nesting can be to any depth). If you pass shallow, the array will