We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a685ac4 commit c6e31a3Copy full SHA for c6e31a3
lib/lib.es5.d.ts
@@ -258,7 +258,7 @@ interface ObjectConstructor {
258
* Returns the names of the enumerable string properties and methods of an object.
259
* @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.
260
*/
261
- keys(o: object): string[];
+ keys<T extends object>(o: T): Array<Extract<keyof T, string>>;
262
}
263
264
/**
0 commit comments