File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ declare const dotProp: {
2121 //=> 'unicorn'
2222 ```
2323 */
24- get < T = unknown > (
25- object : { [ key : string ] : unknown } ,
24+ get < T > (
25+ object : { [ key : string ] : any } ,
2626 path : string ,
2727 defaultValue ?: T
2828 ) : T ;
@@ -50,7 +50,7 @@ declare const dotProp: {
5050 //=> {foo: {bar: 'b', baz: 'x'}}
5151 ```
5252 */
53- set < T extends { [ key : string ] : unknown } > (
53+ set < T extends { [ key : string ] : any } > (
5454 object : T ,
5555 path : string ,
5656 value : unknown
@@ -68,10 +68,10 @@ declare const dotProp: {
6868 //=> true
6969 ```
7070 */
71- has ( object : { [ key : string ] : unknown } , path : string ) : boolean ;
71+ has ( object : { [ key : string ] : any } , path : string ) : boolean ;
7272
7373 /**
74- @param object Object to delete the `path` value.
74+ @param object - Object to delete the `path` value.
7575 @param path - Path of the property in the object, using `.` to separate each nested key. Use `\\.` if you have a `.` in the key.
7676
7777 @example
@@ -89,7 +89,7 @@ declare const dotProp: {
8989 //=> {foo: {bar: {y: 'x'}}}
9090 ```
9191 */
92- delete ( object : { [ key : string ] : unknown } , path : string ) : void ;
92+ delete ( object : { [ key : string ] : any } , path : string ) : void ;
9393} ;
9494
9595export = dotProp ;
You can’t perform that action at this time.
0 commit comments