Skip to content

Commit fbc8266

Browse files
author
Andy Hanson
committed
Add stricter parameter types for Object.values and Object.entries
1 parent 5e5b770 commit fbc8266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es2017.object.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface ObjectConstructor {
99
* Returns an array of values of the enumerable properties of an object
1010
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1111
*/
12-
values(o: any): any[];
12+
values(o: {}): any[];
1313

1414
/**
1515
* Returns an array of key/values of the enumerable properties of an object
@@ -21,7 +21,7 @@ interface ObjectConstructor {
2121
* Returns an array of key/values of the enumerable properties of an object
2222
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2323
*/
24-
entries(o: any): [string, any][];
24+
entries(o: {}): [string, any][];
2525

2626
/**
2727
* Returns an object containing all own property descriptors of an object

0 commit comments

Comments
 (0)