From 5c5ded7b08c85f752ad158b2a6facb88740cadf0 Mon Sep 17 00:00:00 2001 From: Yves Schelpe Date: Sat, 28 Jan 2017 20:11:44 +0100 Subject: [PATCH] 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 --- dot-object/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot-object/index.d.ts b/dot-object/index.d.ts index 176e1c0daf..cda1ec384c 100644 --- a/dot-object/index.d.ts +++ b/dot-object/index.d.ts @@ -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.