Skip to content

Commit 4166eeb

Browse files
HerringtonDarkholmemhegazy
authored andcommitted
fix microsoft#12137, correct ProxyHandler signatures (microsoft#12172)
* fix microsoft#12137, correct ProxyHandler signatures * address PR review
1 parent db813d5 commit 4166eeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/es2015.proxy.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
interface ProxyHandler<T> {
2-
getPrototypeOf? (target: T): any;
2+
getPrototypeOf? (target: T): {} | null;
33
setPrototypeOf? (target: T, v: any): boolean;
44
isExtensible? (target: T): boolean;
55
preventExtensions? (target: T): boolean;
@@ -12,11 +12,11 @@ interface ProxyHandler<T> {
1212
enumerate? (target: T): PropertyKey[];
1313
ownKeys? (target: T): PropertyKey[];
1414
apply? (target: T, thisArg: any, argArray?: any): any;
15-
construct? (target: T, thisArg: any, argArray?: any): any;
15+
construct? (target: T, argArray: any, newTarget?: any): {};
1616
}
1717

1818
interface ProxyConstructor {
1919
revocable<T>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
2020
new <T>(target: T, handler: ProxyHandler<T>): T
2121
}
22-
declare var Proxy: ProxyConstructor;
22+
declare var Proxy: ProxyConstructor;

0 commit comments

Comments
 (0)