Skip to content

Commit 5aa510c

Browse files
committed
Added Object.getOwnPropertyDescriptors definition to src and generated the built
1 parent 4c54323 commit 5aa510c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/lib.es2017.object.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,10 @@ interface ObjectConstructor {
4242
* @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.
4343
*/
4444
entries(o: any): [string, any][];
45+
46+
/**
47+
* Returns an object containing all own property descriptors of an object
48+
* @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.
49+
*/
50+
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
4551
}

src/lib/es2017.object.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ interface ObjectConstructor {
2222
* @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.
2323
*/
2424
entries(o: any): [string, any][];
25+
26+
/**
27+
* Returns an object containing all own property descriptors of an object
28+
* @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.
29+
*/
30+
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
2531
}

0 commit comments

Comments
 (0)