From d0d0827e96464338af457849e085a4982ae0982e Mon Sep 17 00:00:00 2001 From: Vasil Rangelov Date: Tue, 22 Oct 2019 14:44:05 +0300 Subject: [PATCH] Narrowed the return type of Object.keys() This allows further operations to be limited to those specific keys more easily. --- src/lib/es5.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 8c11be587a10f..c9a20a7b28465 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -238,7 +238,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: object): string[]; + keys(o: T): Array; } /**