Skip to content

Commit 888e264

Browse files
authored
Merge pull request #15694 from astegmaier/patch-1
getOwnPropertyDescriptor return should allow undefined
2 parents 5143a3c + ccec13a commit 888e264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/es2015.proxy.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ interface ProxyHandler<T extends object> {
33
setPrototypeOf? (target: T, v: any): boolean;
44
isExtensible? (target: T): boolean;
55
preventExtensions? (target: T): boolean;
6-
getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor;
6+
getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;
77
has? (target: T, p: PropertyKey): boolean;
88
get? (target: T, p: PropertyKey, receiver: any): any;
99
set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;

0 commit comments

Comments
 (0)