Skip to content

Commit

Permalink
types: Allow sending in undefined as the object
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Oct 31, 2019
1 parent 0efd03e commit f916cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -22,11 +22,11 @@ declare const dotProp: {
```
*/
get<T>(
object: {[key: string]: any},
object: {[key: string]: any} | undefined,
path: string
): T | undefined;
get<T>(
object: {[key: string]: any},
object: {[key: string]: any} | undefined,
path: string,
defaultValue: T
): T;
Expand Down

0 comments on commit f916cda

Please sign in to comment.