mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #14320 from aredfox/patch-1
Function 'pick' returns is documented to always return a value.
This commit is contained in:
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Dot-Object v1.4.2
|
||||
// Type definitions for Dot-Object v1.5
|
||||
// Project: https://github.com/rhalff/dot-object
|
||||
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -109,7 +109,7 @@ declare namespace DotObject {
|
||||
* @param {Object} obj
|
||||
* @param {Boolean} remove
|
||||
*/
|
||||
pick(path: string, obj: any, remove?: boolean): void;
|
||||
pick(path: string, obj: any, remove?: boolean): any;
|
||||
/**
|
||||
*
|
||||
* Remove value from an object using dot notation.
|
||||
|
||||
Reference in New Issue
Block a user