UNPKG

8.25 kBTypeScriptView Raw
1import ES2016 = require('./es2016');
2
3interface ES2017 {
4 readonly 'Abstract Equality Comparison': typeof import('./2017/AbstractEqualityComparison');
5 readonly 'Abstract Relational Comparison': typeof import('./2017/AbstractRelationalComparison');
6 readonly 'Strict Equality Comparison': typeof import('./2017/StrictEqualityComparison');
7 readonly AdvanceStringIndex: typeof import('./2017/AdvanceStringIndex');
8 readonly ArrayCreate: typeof import('./2017/ArrayCreate');
9 readonly ArraySetLength: typeof import('./2017/ArraySetLength');
10 readonly ArraySpeciesCreate: typeof import('./2017/ArraySpeciesCreate');
11 readonly Call: typeof import('./2017/Call');
12 readonly CanonicalNumericIndexString: typeof import('./2017/CanonicalNumericIndexString');
13 readonly CompletePropertyDescriptor: typeof import('./2017/CompletePropertyDescriptor');
14 readonly CreateDataProperty: typeof import('./2017/CreateDataProperty');
15 readonly CreateDataPropertyOrThrow: typeof import('./2017/CreateDataPropertyOrThrow');
16 readonly CreateHTML: typeof import('./2017/CreateHTML');
17 readonly CreateIterResultObject: typeof import('./2017/CreateIterResultObject');
18 readonly CreateListFromArrayLike: typeof import('./2017/CreateListFromArrayLike');
19 readonly CreateMethodProperty: typeof import('./2017/CreateMethodProperty');
20 readonly DateFromTime: typeof import('./2017/DateFromTime');
21 readonly Day: typeof import('./2017/Day');
22 readonly DayFromYear: typeof import('./2017/DayFromYear');
23 readonly DaysInYear: typeof import('./2017/DaysInYear');
24 readonly DayWithinYear: typeof import('./2017/DayWithinYear');
25 readonly DefinePropertyOrThrow: typeof import('./2017/DefinePropertyOrThrow');
26 readonly DeletePropertyOrThrow: typeof import('./2017/DeletePropertyOrThrow');
27 readonly EnumerableOwnProperties: typeof import('./2017/EnumerableOwnProperties');
28 readonly FromPropertyDescriptor: typeof import('./2017/FromPropertyDescriptor');
29 readonly Get: typeof import('./2017/Get');
30 readonly GetIterator: typeof import('./2017/GetIterator');
31 readonly GetMethod: typeof import('./2017/GetMethod');
32 readonly GetOwnPropertyKeys: typeof import('./2017/GetOwnPropertyKeys');
33 readonly GetPrototypeFromConstructor: typeof import('./2017/GetPrototypeFromConstructor');
34 readonly GetSubstitution: typeof import('./2017/GetSubstitution');
35 readonly GetV: typeof import('./2017/GetV');
36 readonly HasOwnProperty: typeof import('./2017/HasOwnProperty');
37 readonly HasProperty: typeof import('./2017/HasProperty');
38 readonly HourFromTime: typeof import('./2017/HourFromTime');
39 readonly InLeapYear: typeof import('./2017/InLeapYear');
40 readonly InstanceofOperator: typeof import('./2017/InstanceofOperator');
41 readonly Invoke: typeof import('./2017/Invoke');
42 readonly IsAccessorDescriptor: typeof import('./2017/IsAccessorDescriptor');
43 readonly IsArray: typeof import('./2017/IsArray');
44 readonly IsCallable: typeof import('./2017/IsCallable');
45 readonly IsConcatSpreadable: typeof import('./2017/IsConcatSpreadable');
46 readonly IsConstructor: typeof import('./2017/IsConstructor');
47 readonly IsDataDescriptor: typeof import('./2017/IsDataDescriptor');
48 readonly IsExtensible: typeof import('./2017/IsExtensible');
49 readonly IsGenericDescriptor: typeof import('./2017/IsGenericDescriptor');
50 readonly IsInteger: typeof import('./2017/IsInteger');
51 readonly IsPromise: typeof import('./2017/IsPromise');
52 readonly IsPropertyDescriptor: typeof import('./2017/IsPropertyDescriptor');
53 readonly IsPropertyKey: typeof import('./2017/IsPropertyKey');
54 readonly IsRegExp: typeof import('./2017/IsRegExp');
55 readonly IterableToList: typeof import('./2017/IterableToList');
56 readonly IteratorClose: typeof import('./2017/IteratorClose');
57 readonly IteratorComplete: typeof import('./2017/IteratorComplete');
58 readonly IteratorNext: typeof import('./2017/IteratorNext');
59 readonly IteratorStep: typeof import('./2017/IteratorStep');
60 readonly IteratorValue: typeof import('./2017/IteratorValue');
61 readonly MakeDate: typeof import('./2017/MakeDate');
62 readonly MakeDay: typeof import('./2017/MakeDay');
63 readonly MakeTime: typeof import('./2017/MakeTime');
64 readonly MinFromTime: typeof import('./2017/MinFromTime');
65 readonly modulo: typeof import('./2017/modulo');
66 readonly MonthFromTime: typeof import('./2017/MonthFromTime');
67 readonly msFromTime: typeof import('./2017/msFromTime');
68 readonly ObjectCreate: typeof import('./2017/ObjectCreate');
69 readonly OrdinaryDefineOwnProperty: typeof import('./2017/OrdinaryDefineOwnProperty');
70 readonly OrdinaryGetOwnProperty: typeof import('./2017/OrdinaryGetOwnProperty');
71 readonly OrdinaryGetPrototypeOf: typeof import('./2017/OrdinaryGetPrototypeOf');
72 readonly OrdinaryHasInstance: typeof import('./2017/OrdinaryHasInstance');
73 readonly OrdinaryHasProperty: typeof import('./2017/OrdinaryHasProperty');
74 readonly OrdinarySetPrototypeOf: typeof import('./2017/OrdinarySetPrototypeOf');
75 readonly RegExpExec: typeof import('./2017/RegExpExec');
76 readonly RequireObjectCoercible: typeof import('./2017/RequireObjectCoercible');
77 readonly SameValue: typeof import('./2017/SameValue');
78 readonly SameValueNonNumber: typeof import('./2017/SameValueNonNumber');
79 readonly SameValueZero: typeof import('./2017/SameValueZero');
80 readonly SecFromTime: typeof import('./2017/SecFromTime');
81 readonly Set: typeof import('./2017/Set');
82 readonly SetFunctionName: typeof import('./2017/SetFunctionName');
83 readonly SetIntegrityLevel: typeof import('./2017/SetIntegrityLevel');
84 readonly SpeciesConstructor: typeof import('./2017/SpeciesConstructor');
85 readonly SymbolDescriptiveString: typeof import('./2017/SymbolDescriptiveString');
86 readonly TestIntegrityLevel: typeof import('./2017/TestIntegrityLevel');
87 readonly thisBooleanValue: typeof import('./2017/thisBooleanValue');
88 readonly thisNumberValue: typeof import('./2017/thisNumberValue');
89 readonly thisStringValue: typeof import('./2017/thisStringValue');
90 readonly thisTimeValue: typeof import('./2017/thisTimeValue');
91 readonly TimeClip: typeof import('./2017/TimeClip');
92 readonly TimeFromYear: typeof import('./2017/TimeFromYear');
93 readonly TimeWithinDay: typeof import('./2017/TimeWithinDay');
94 readonly ToBoolean: typeof import('./2017/ToBoolean');
95 readonly ToDateString: typeof import('./2017/ToDateString');
96 readonly ToIndex: typeof import('./2017/ToIndex');
97 readonly ToInt16: typeof import('./2017/ToInt16');
98 readonly ToInt32: typeof import('./2017/ToInt32');
99 readonly ToInt8: typeof import('./2017/ToInt8');
100 readonly ToInteger: typeof import('./2017/ToInteger');
101 readonly ToLength: typeof import('./2017/ToLength');
102 readonly ToNumber: typeof import('./2017/ToNumber');
103 readonly ToObject: typeof import('./2017/ToObject');
104 readonly ToPrimitive: typeof import('./2017/ToPrimitive');
105 readonly ToPropertyDescriptor: typeof import('./2017/ToPropertyDescriptor');
106 readonly ToPropertyKey: typeof import('./2017/ToPropertyKey');
107 readonly ToString: typeof import('./2017/ToString');
108 readonly ToUint16: typeof import('./2017/ToUint16');
109 readonly ToUint32: typeof import('./2017/ToUint32');
110 readonly ToUint8: typeof import('./2017/ToUint8');
111 readonly ToUint8Clamp: typeof import('./2017/ToUint8Clamp');
112 readonly Type: typeof import('./2017/Type');
113 readonly ValidateAndApplyPropertyDescriptor: typeof import('./2017/ValidateAndApplyPropertyDescriptor');
114 readonly WeekDay: typeof import('./2017/WeekDay');
115 readonly YearFromTime: typeof import('./2017/YearFromTime');
116}
117
118declare namespace ES2017 {
119 // Re-export types from previous versions
120 // - ES2015:
121 type PropertyKey = ES2016.PropertyKey;
122
123 // - ES5:
124 type GenericDescriptor = ES2016.GenericDescriptor;
125 type AccessorDescriptor<T = unknown> = ES2016.AccessorDescriptor<T>;
126 type DataDescriptor<T = unknown> = ES2016.DataDescriptor<T>;
127 type PropertyDescriptor<T = unknown> = ES2016.PropertyDescriptor<T>;
128}
129
130declare const ES2017: ES2017;
131export = ES2017;