From 66d9b696d8b6ac901021e403008cee859d26d92f Mon Sep 17 00:00:00 2001 From: Ethan Resnick Date: Mon, 14 Nov 2016 20:52:31 -0500 Subject: [PATCH] Object.keys: more precise types Applying the same logic used on Object.entries in the prior commit and in #12207 --- src/lib/es5.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 2c457a432c6b8..1252335ea2d5b 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -210,6 +210,8 @@ interface ObjectConstructor { * Returns the names of the enumerable properties and methods 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. */ + keys(o: Array): string[]; + keys(o: T): (keyof T & string)[]; keys(o: any): string[]; }