UNPKG

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