mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 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:
4
types/omit-deep-lodash/index.d.ts
vendored
4
types/omit-deep-lodash/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user