From ecf23545762815ca211dc1e2ebe07acb8afb63d9 Mon Sep 17 00:00:00 2001 From: Adrien Gibrat Date: Wed, 21 Mar 2018 23:26:02 +0100 Subject: [PATCH] Fix Object.keys definiton typei --- lib/lib.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib.d.ts b/lib/lib.d.ts index 25d5a28dc9c39..de8238ea5a90b 100644 --- a/lib/lib.d.ts +++ b/lib/lib.d.ts @@ -248,7 +248,7 @@ 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: {}): string[]; + keys(o: T): (keyof T)[]; } /**