UNPKG

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