Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-html / node_modules / typescript / lib / lib.es2015.proxy.d.ts
1 /*! *****************************************************************************
2 Copyright (c) Microsoft Corporation. All rights reserved.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the
5 License at http://www.apache.org/licenses/LICENSE-2.0
6
7 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10 MERCHANTABLITY OR NON-INFRINGEMENT.
11
12 See the Apache Version 2.0 License for specific language governing permissions
13 and limitations under the License.
14 ***************************************************************************** */
15
16
17
18 /// <reference no-default-lib="true"/>\r
19
20
21 interface ProxyHandler<T extends object> {\r
22     getPrototypeOf? (target: T): object | null;\r
23     setPrototypeOf? (target: T, v: any): boolean;\r
24     isExtensible? (target: T): boolean;\r
25     preventExtensions? (target: T): boolean;\r
26     getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;\r
27     has? (target: T, p: PropertyKey): boolean;\r
28     get? (target: T, p: PropertyKey, receiver: any): any;\r
29     set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;\r
30     deleteProperty? (target: T, p: PropertyKey): boolean;\r
31     defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;\r
32     ownKeys? (target: T): PropertyKey[];\r
33     apply? (target: T, thisArg: any, argArray?: any): any;\r
34     construct? (target: T, argArray: any, newTarget?: any): object;\r
35 }\r
36 \r
37 interface ProxyConstructor {\r
38     revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\r
39     new <T extends object>(target: T, handler: ProxyHandler<T>): T;\r
40 }\r
41 declare var Proxy: ProxyConstructor;\r