From 26150d97951039a1a4bd2c9ac4f9145325154716 Mon Sep 17 00:00:00 2001 From: Aleksey Shvayka Date: Thu, 20 Apr 2017 01:33:35 +0300 Subject: [PATCH] Add `Object.getOwnPropertyDescriptors` definition --- lib/lib.es2017.object.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/lib.es2017.object.d.ts b/lib/lib.es2017.object.d.ts index 2e4e673d060e5..bfe99a6373bea 100644 --- a/lib/lib.es2017.object.d.ts +++ b/lib/lib.es2017.object.d.ts @@ -42,4 +42,10 @@ interface ObjectConstructor { * @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. */ entries(o: any): [string, any][]; + + /** + * Returns an object containing all own property descriptors 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. + */ + getOwnPropertyDescriptors(o: T): { [P in keyof T]: PropertyDescriptor }; }