1 | import ES5 = require("./es5");
|
2 | import ES6 = require("./es6");
|
3 | import ES7 = require("./es7");
|
4 |
|
5 | import ES2015 = require("./es2015");
|
6 | import ES2016 = require("./es2016");
|
7 | import ES2017 = require("./es2017");
|
8 | import ES2018 = require("./es2018");
|
9 | import ES2019 = require("./es2019");
|
10 |
|
11 | declare namespace ESAbstract {
|
12 |
|
13 | type PropertyKey = string | symbol;
|
14 |
|
15 |
|
16 | interface GenericDescriptor {
|
17 | "[[Configurable]]"?: boolean | undefined;
|
18 | "[[Enumerable]]"?: boolean | undefined;
|
19 | }
|
20 |
|
21 | interface AccessorDescriptor<T = unknown> extends GenericDescriptor {
|
22 | "[[Get]]"?(): T;
|
23 | "[[Set]]"?(value: T): void;
|
24 | }
|
25 |
|
26 | interface DataDescriptor<T = unknown> extends GenericDescriptor {
|
27 | "[[Writable]]"?: boolean | undefined;
|
28 | "[[Value]]"?: T | undefined;
|
29 | }
|
30 |
|
31 | type PropertyDescriptor<T = unknown> = AccessorDescriptor<T> | DataDescriptor<T>;
|
32 | }
|
33 |
|
34 | interface ESAbstract extends ES6 {
|
35 | readonly ES5: ES5;
|
36 |
|
37 | readonly ES6: ES6;
|
38 |
|
39 | readonly ES7: ES7;
|
40 |
|
41 | readonly ES2015: ES2015;
|
42 | readonly ES2016: ES2016;
|
43 | readonly ES2017: ES2017;
|
44 | readonly ES2018: ES2018;
|
45 | readonly ES2019: ES2019;
|
46 | }
|
47 |
|
48 | declare const ESAbstract: ESAbstract;
|
49 | export = ESAbstract;
|