Skip to content

Commit

Permalink
Revert everything but change to parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Hanson committed Jan 8, 2018
1 parent 8a045b7 commit 4846846
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/lib/es2017.object.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ 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<T extends object>(o: T): T[keyof T][];
values<T>(o: { [s: string]: T } | { [n: number]: T }): T[];

/**
* 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[];

/**
* 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<T>(o: { [s: string]: T } | { [n: number]: T }): [string, T][];

/**
* 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<T extends object>(o: T): [string, T[keyof T]][];
entries(o: {}): [string, any][];

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

0 comments on commit 4846846

Please sign in to comment.