Skip to content

Commit

Permalink
Add stricter parameter types for Object.values and Object.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Hanson committed Dec 7, 2017
1 parent 5e5b770 commit fbc8266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/es2017.object.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface ObjectConstructor {
* Returns an array of values of the enumerable properties of an object
* @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.
*/
values(o: any): any[];
values(o: {}): any[];

/**
* Returns an array of key/values of the enumerable properties of an object
Expand All @@ -21,7 +21,7 @@ interface ObjectConstructor {
* Returns an array of key/values of the enumerable properties of an object
* @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.
*/
entries(o: any): [string, any][];
entries(o: {}): [string, any][];

/**
* Returns an object containing all own property descriptors of an object
Expand Down

0 comments on commit fbc8266

Please sign in to comment.