Skip to content

Commit c6e31a3

Browse files
committed
Use correct array type for Object.keys
1 parent a685ac4 commit c6e31a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lib.es5.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ interface ObjectConstructor {
258258
* Returns the names of the enumerable string properties and methods of an object.
259259
* @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.
260260
*/
261-
keys(o: object): string[];
261+
keys<T extends object>(o: T): Array<Extract<keyof T, string>>;
262262
}
263263

264264
/**

0 commit comments

Comments
 (0)