File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ interface ObjectConstructor {
327
327
* @param o Object that contains the property.
328
328
* @param p Name of the property.
329
329
*/
330
- getOwnPropertyDescriptor ( o : any , propertyKey : PropertyKey ) : PropertyDescriptor ;
330
+ getOwnPropertyDescriptor ( o : any , propertyKey : PropertyKey ) : PropertyDescriptor | undefined ;
331
331
332
332
/**
333
333
* Adds a property to an object, or modifies attributes of an existing property.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ declare namespace Reflect {
4
4
function defineProperty ( target : object , propertyKey : PropertyKey , attributes : PropertyDescriptor ) : boolean ;
5
5
function deleteProperty ( target : object , propertyKey : PropertyKey ) : boolean ;
6
6
function get ( target : object , propertyKey : PropertyKey , receiver ?: any ) : any ;
7
- function getOwnPropertyDescriptor ( target : object , propertyKey : PropertyKey ) : PropertyDescriptor ;
7
+ function getOwnPropertyDescriptor ( target : object , propertyKey : PropertyKey ) : PropertyDescriptor | undefined ;
8
8
function getPrototypeOf ( target : object ) : object ;
9
9
function has ( target : object , propertyKey : PropertyKey ) : boolean ;
10
10
function isExtensible ( target : object ) : boolean ;
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ interface ObjectConstructor {
127
127
* @param o Object that contains the property.
128
128
* @param p Name of the property.
129
129
*/
130
- getOwnPropertyDescriptor ( o : any , p : string ) : PropertyDescriptor ;
130
+ getOwnPropertyDescriptor ( o : any , p : string ) : PropertyDescriptor | undefined ;
131
131
132
132
/**
133
133
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
You can’t perform that action at this time.
0 commit comments