🤖 Merge PR #50157 Add rest operator and array type handling for omit-deep-lodash by @ideffix

* Add rest operator and array type handling for omit-deep-lodash

* Update version

* Revert "Update version"

This reverts commit 50ef98f9f8e229d36c5cc5d277fe4a3a1ce8973d.
This commit is contained in:
Bartosz Kopciuch
2020-12-21 07:50:16 +01:00
committed by GitHub
parent 60b77d431c
commit 751f9d434a
2 changed files with 5 additions and 1 deletions

View File

@@ -1,8 +1,10 @@
// Type definitions for omit-deep-lodash 1.1
// Project: https://github.com/odynvolk/omit-deep-lodash
// Definitions by: Daniel Chong <https://github.com/dZefa>
// Bartosz Kopciuch <https://github.com/ideffix>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function omitDeep(input: object, props: string): object;
declare function omitDeep(input: object, ...props: string[]): object;
declare function omitDeep(input: object, props: string[]): object;
export = omitDeep;

View File

@@ -2,3 +2,5 @@ import omitDeep = require('omit-deep-lodash');
const newObjectFromArray: object = omitDeep([], 'test');
const newObjectFromObject: object = omitDeep({}, 'test');
const newObjectWithRestProps: object = omitDeep({}, 'test1', 'test2');
const newObjectWithArrayProps: object = omitDeep({}, ['test1', 'test2']);