Skip to content

Commit 81aee5e

Browse files
committed
fix(lib/es2015): Fix definition of PromiseHandler
1 parent 64a8867 commit 81aee5e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/lib/es2015.proxy.d.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
interface ProxyHandler<T extends object> {
22
getPrototypeOf? (target: T): object | null;
3-
setPrototypeOf? (target: T, v: any): boolean;
3+
setPrototypeOf? (target: T, v: object | null): boolean;
44
isExtensible? (target: T): boolean;
55
preventExtensions? (target: T): boolean;
6-
getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;
7-
has? (target: T, p: PropertyKey): boolean;
8-
get? (target: T, p: PropertyKey, receiver: any): any;
9-
set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
10-
deleteProperty? (target: T, p: PropertyKey): boolean;
11-
defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;
12-
enumerate? (target: T): PropertyKey[];
13-
ownKeys? (target: T): PropertyKey[];
14-
apply? (target: T, thisArg: any, argArray?: any): any;
15-
construct? (target: T, argArray: any, newTarget?: any): object;
6+
getOwnPropertyDescriptor? (target: T, p: string | symbol): PropertyDescriptor | undefined;
7+
has? (target: T, p: string | symbol): boolean;
8+
get? (target: T, p: string | symbol, receiver: any): any;
9+
set? (target: T, p: string | symbol, value: any, receiver: any): boolean;
10+
deleteProperty? (target: T, p: string | symbol): boolean;
11+
defineProperty? (target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;
12+
ownKeys? (target: T): ArrayLike<string | symbol>;
13+
apply? (target: T & ((...args: any[]) => any), thisArg: any, argArray: any[]): any;
14+
construct? (target: T & (new (...args: any[]) => object), argArray: any[], newTarget?: any): object;
1615
}
1716

1817
interface ProxyConstructor {

0 commit comments

Comments
 (0)