From f916cda850fad9ae1c5fd0e0ec28564f5be62314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Thu, 31 Oct 2019 14:57:04 +0000 Subject: [PATCH] types: Allow sending in undefined as the object --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index a969854..fbbfd8b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -22,11 +22,11 @@ declare const dotProp: { ``` */ get( - object: {[key: string]: any}, + object: {[key: string]: any} | undefined, path: string ): T | undefined; get( - object: {[key: string]: any}, + object: {[key: string]: any} | undefined, path: string, defaultValue: T ): T;