UNPKG

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