We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a685ac4 commit eabee0aCopy full SHA for eabee0a
src/lib/es5.d.ts
@@ -238,7 +238,7 @@ interface ObjectConstructor {
238
* Returns the names of the enumerable string properties and methods of an object.
239
* @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.
240
*/
241
- keys(o: object): string[];
+ keys<T extends object>(o: T): Array<Extract<keyof T, string>>;
242
}
243
244
/**
0 commit comments