From fae52c157d4ef3d2cdf1f3cc8f12d57eccf7ac2e Mon Sep 17 00:00:00 2001 From: Dima <35235492+Dima-Dim@users.noreply.github.com> Date: Mon, 4 May 2020 22:28:58 +0300 Subject: [PATCH] Update return type Object.keys(o) Object.keys(o) does not return an array of strings, but an array of keys o. --- src/lib/es2015.core.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es2015.core.d.ts b/src/lib/es2015.core.d.ts index 1487891d5241c..18817ae25d806 100644 --- a/src/lib/es2015.core.d.ts +++ b/src/lib/es2015.core.d.ts @@ -302,7 +302,7 @@ interface ObjectConstructor { * Returns the names of the enumerable string 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: {}): string[]; + keys(o: {}): (keyof typeof o)[]; /** * Returns true if the values are the same value, false otherwise.