mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-25 16:11:24 +08:00
Merge pull request #15312 from ericanderson/fix/lodash-compact
Lodash compact should remove undefineds
This commit is contained in:
4
types/lodash/index.d.ts
vendored
4
types/lodash/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Lo-Dash 4.14
|
||||
// Project: http://lodash.com/
|
||||
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
|
||||
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>, Eric L Anderson <https://github.com/ericanderson>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@@ -468,7 +468,7 @@ declare namespace _ {
|
||||
* @param array The array to compact.
|
||||
* @return (Array) Returns the new array of filtered values.
|
||||
*/
|
||||
compact<T>(array?: List<T>): T[];
|
||||
compact<T>(array?: List<T | undefined>): T[];
|
||||
}
|
||||
|
||||
interface LoDashImplicitArrayWrapper<T> {
|
||||
|
||||
Reference in New Issue
Block a user