From 9af2953e04bce795b45dfc164e528a1ebac5a4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Tue, 31 Mar 2020 03:20:35 +0200 Subject: [PATCH] [dot-object] update `object`type (#42845) * [dot-object] update `object`type * Update index.d.ts * Update index.d.ts --- types/dot-object/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/dot-object/index.d.ts b/types/dot-object/index.d.ts index ef119a3424..787f50be1e 100644 --- a/types/dot-object/index.d.ts +++ b/types/dot-object/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Dot-Object 1.7 +// Type definitions for Dot-Object 2.1 // Project: https://github.com/rhalff/dot-object // Definitions by: Niko Kovačič // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -99,7 +99,7 @@ declare namespace DotObject { * @param {Object} obj * @param {Object} mods */ - object(obj: any, mods?: ModifierFunctionWrapper | Array): void; + object(obj: object, mods?: ModifierFunctionWrapper | Array): object; /** * * Pick a value from an object using dot notation.