Function 'pick' returns is documented to always return a value.

- See issue https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14319

Function 'pick' returns is documented to always return a value. Before it's return type was :void, I'm sending this proposal as :any would fix this issue.
Reference to dot-object documentation: https://github.com/rhalff/dot-object#pickremove-a-value-using-dot-notation
This commit is contained in:
Yves Schelpe
2017-01-28 20:11:44 +01:00
committed by GitHub
parent 14db63a765
commit 5c5ded7b08
+1 -1
View File
@@ -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.