strict-ts-lib-v5.7 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +28 -0
  2. package/libs/decorators/index.d.ts +362 -0
  3. package/libs/decorators/legacy/index.d.ts +19 -0
  4. package/libs/dom/asynciterable/index.d.ts +41 -0
  5. package/libs/dom/index.d.ts +35994 -0
  6. package/libs/dom/iterable/index.d.ts +793 -0
  7. package/libs/es2015/collection/index.d.ts +148 -0
  8. package/libs/es2015/core/index.d.ts +647 -0
  9. package/libs/es2015/generator/index.d.ts +65 -0
  10. package/libs/es2015/index.d.ts +12 -0
  11. package/libs/es2015/iterable/index.d.ts +645 -0
  12. package/libs/es2015/promise/index.d.ts +74 -0
  13. package/libs/es2015/proxy/index.d.ts +131 -0
  14. package/libs/es2015/reflect/index.d.ts +145 -0
  15. package/libs/es2015/symbol/index.d.ts +30 -0
  16. package/libs/es2015/symbol-wellknown/index.d.ts +331 -0
  17. package/libs/es2016/array-include/index.d.ts +115 -0
  18. package/libs/es2016/full/index.d.ts +7 -0
  19. package/libs/es2016/index.d.ts +5 -0
  20. package/libs/es2016/intl/index.d.ts +15 -0
  21. package/libs/es2017/arraybuffer/index.d.ts +5 -0
  22. package/libs/es2017/date/index.d.ts +23 -0
  23. package/libs/es2017/full/index.d.ts +7 -0
  24. package/libs/es2017/index.d.ts +10 -0
  25. package/libs/es2017/intl/index.d.ts +28 -0
  26. package/libs/es2017/object/index.d.ts +115 -0
  27. package/libs/es2017/sharedmemory/index.d.ts +248 -0
  28. package/libs/es2017/string/index.d.ts +29 -0
  29. package/libs/es2017/typedarrays/index.d.ts +37 -0
  30. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  31. package/libs/es2018/asynciterable/index.d.ts +49 -0
  32. package/libs/es2018/full/index.d.ts +8 -0
  33. package/libs/es2018/index.d.ts +8 -0
  34. package/libs/es2018/intl/index.d.ts +92 -0
  35. package/libs/es2018/promise/index.d.ts +14 -0
  36. package/libs/es2018/regexp/index.d.ts +21 -0
  37. package/libs/es2019/array/index.d.ts +94 -0
  38. package/libs/es2019/full/index.d.ts +8 -0
  39. package/libs/es2019/index.d.ts +8 -0
  40. package/libs/es2019/intl/index.d.ts +7 -0
  41. package/libs/es2019/object/index.d.ts +143 -0
  42. package/libs/es2019/string/index.d.ts +21 -0
  43. package/libs/es2019/symbol/index.d.ts +8 -0
  44. package/libs/es2020/bigint/index.d.ts +904 -0
  45. package/libs/es2020/date/index.d.ts +35 -0
  46. package/libs/es2020/full/index.d.ts +8 -0
  47. package/libs/es2020/index.d.ts +11 -0
  48. package/libs/es2020/intl/index.d.ts +494 -0
  49. package/libs/es2020/number/index.d.ts +15 -0
  50. package/libs/es2020/promise/index.d.ts +37 -0
  51. package/libs/es2020/sharedmemory/index.d.ts +146 -0
  52. package/libs/es2020/string/index.d.ts +32 -0
  53. package/libs/es2020/symbol-wellknown/index.d.ts +29 -0
  54. package/libs/es2021/full/index.d.ts +8 -0
  55. package/libs/es2021/index.d.ts +7 -0
  56. package/libs/es2021/intl/index.d.ts +161 -0
  57. package/libs/es2021/promise/index.d.ts +34 -0
  58. package/libs/es2021/string/index.d.ts +20 -0
  59. package/libs/es2021/weakref/index.d.ts +62 -0
  60. package/libs/es2022/array/index.d.ts +105 -0
  61. package/libs/es2022/error/index.d.ts +59 -0
  62. package/libs/es2022/full/index.d.ts +8 -0
  63. package/libs/es2022/index.d.ts +9 -0
  64. package/libs/es2022/intl/index.d.ts +120 -0
  65. package/libs/es2022/object/index.d.ts +41 -0
  66. package/libs/es2022/regexp/index.d.ts +23 -0
  67. package/libs/es2022/string/index.d.ts +9 -0
  68. package/libs/es2023/array/index.d.ts +915 -0
  69. package/libs/es2023/collection/index.d.ts +5 -0
  70. package/libs/es2023/full/index.d.ts +8 -0
  71. package/libs/es2023/index.d.ts +6 -0
  72. package/libs/es2023/intl/index.d.ts +106 -0
  73. package/libs/es2024/arraybuffer/index.d.ts +52 -0
  74. package/libs/es2024/collection/index.d.ts +13 -0
  75. package/libs/es2024/full/index.d.ts +8 -0
  76. package/libs/es2024/index.d.ts +10 -0
  77. package/libs/es2024/object/index.d.ts +13 -0
  78. package/libs/es2024/promise/index.d.ts +19 -0
  79. package/libs/es2024/regexp/index.d.ts +9 -0
  80. package/libs/es2024/sharedmemory/index.d.ts +69 -0
  81. package/libs/es2024/string/index.d.ts +13 -0
  82. package/libs/es5/index.d.ts +5793 -0
  83. package/libs/es6/index.d.ts +7 -0
  84. package/libs/esnext/array/index.d.ts +28 -0
  85. package/libs/esnext/collection/index.d.ts +80 -0
  86. package/libs/esnext/decorators/index.d.ts +12 -0
  87. package/libs/esnext/disposable/index.d.ts +175 -0
  88. package/libs/esnext/full/index.d.ts +8 -0
  89. package/libs/esnext/index.d.ts +9 -0
  90. package/libs/esnext/intl/index.d.ts +5 -0
  91. package/libs/esnext/iterator/index.d.ts +172 -0
  92. package/libs/scripthost/index.d.ts +310 -0
  93. package/libs/webworker/asynciterable/index.d.ts +41 -0
  94. package/libs/webworker/importscripts/index.d.ts +7 -0
  95. package/libs/webworker/index.d.ts +12079 -0
  96. package/libs/webworker/iterable/index.d.ts +578 -0
  97. package/package.json +23 -0
@@ -0,0 +1,331 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2015.symbol" />
4
+
5
+ interface SymbolConstructor {
6
+ /**
7
+ * A method that determines if a constructor object recognizes an object as one of the
8
+ * constructor’s instances. Called by the semantics of the instanceof operator.
9
+ */
10
+ readonly hasInstance: unique symbol;
11
+
12
+ /**
13
+ * A Boolean value that if true indicates that an object should flatten to its array elements
14
+ * by Array.prototype.concat.
15
+ */
16
+ readonly isConcatSpreadable: unique symbol;
17
+
18
+ /**
19
+ * A regular expression method that matches the regular expression against a string. Called
20
+ * by the String.prototype.match method.
21
+ */
22
+ readonly match: unique symbol;
23
+
24
+ /**
25
+ * A regular expression method that replaces matched substrings of a string. Called by the
26
+ * String.prototype.replace method.
27
+ */
28
+ readonly replace: unique symbol;
29
+
30
+ /**
31
+ * A regular expression method that returns the index within a string that matches the
32
+ * regular expression. Called by the String.prototype.search method.
33
+ */
34
+ readonly search: unique symbol;
35
+
36
+ /**
37
+ * A function valued property that is the constructor function that is used to create
38
+ * derived objects.
39
+ */
40
+ readonly species: unique symbol;
41
+
42
+ /**
43
+ * A regular expression method that splits a string at the indices that match the regular
44
+ * expression. Called by the String.prototype.split method.
45
+ */
46
+ readonly split: unique symbol;
47
+
48
+ /**
49
+ * A method that converts an object to a corresponding primitive value.
50
+ * Called by the ToPrimitive abstract operation.
51
+ */
52
+ readonly toPrimitive: unique symbol;
53
+
54
+ /**
55
+ * A String value that is used in the creation of the default string description of an object.
56
+ * Called by the built-in method Object.prototype.toString.
57
+ */
58
+ readonly toStringTag: unique symbol;
59
+
60
+ /**
61
+ * An Object whose truthy properties are properties that are excluded from the 'with'
62
+ * environment bindings of the associated objects.
63
+ */
64
+ readonly unscopables: unique symbol;
65
+ }
66
+
67
+ interface Symbol {
68
+ /**
69
+ * Converts a Symbol object to a symbol.
70
+ */
71
+ [Symbol.toPrimitive](hint: string): symbol;
72
+
73
+ readonly [Symbol.toStringTag]: string;
74
+ }
75
+
76
+ interface Array<T> {
77
+ /**
78
+ * Is an object whose properties have the value 'true'
79
+ * when they will be absent when used in a 'with' statement.
80
+ */
81
+ readonly [Symbol.unscopables]: {
82
+ readonly [K in keyof (readonly any[])]?: boolean;
83
+ };
84
+ }
85
+
86
+ interface ReadonlyArray<T> {
87
+ /**
88
+ * Is an object whose properties have the value 'true'
89
+ * when they will be absent when used in a 'with' statement.
90
+ */
91
+ readonly [Symbol.unscopables]: {
92
+ readonly [K in keyof (readonly any[])]?: boolean;
93
+ };
94
+ }
95
+
96
+ interface Date {
97
+ /**
98
+ * Converts a Date object to a string.
99
+ */
100
+ [Symbol.toPrimitive](hint: 'default'): string;
101
+ /**
102
+ * Converts a Date object to a string.
103
+ */
104
+ [Symbol.toPrimitive](hint: 'string'): string;
105
+ /**
106
+ * Converts a Date object to a number.
107
+ */
108
+ [Symbol.toPrimitive](hint: 'number'): number;
109
+ /**
110
+ * Converts a Date object to a string or number.
111
+ *
112
+ * @param hint The strings "number", "string", or "default" to specify what primitive to return.
113
+ *
114
+ * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
115
+ * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
116
+ */
117
+ [Symbol.toPrimitive](hint: string): string | number;
118
+ }
119
+
120
+ interface Map<K, V> {
121
+ readonly [Symbol.toStringTag]: string;
122
+ }
123
+
124
+ interface WeakMap<K extends WeakKey, V> {
125
+ readonly [Symbol.toStringTag]: string;
126
+ }
127
+
128
+ interface Set<T> {
129
+ readonly [Symbol.toStringTag]: string;
130
+ }
131
+
132
+ interface WeakSet<T extends WeakKey> {
133
+ readonly [Symbol.toStringTag]: string;
134
+ }
135
+
136
+ interface JSON {
137
+ readonly [Symbol.toStringTag]: string;
138
+ }
139
+
140
+ interface Function {
141
+ /**
142
+ * Determines whether the given value inherits from this function if this function was used
143
+ * as a constructor function.
144
+ *
145
+ * A constructor function can control which objects are recognized as its instances by
146
+ * 'instanceof' by overriding this method.
147
+ */
148
+ [Symbol.hasInstance](value: unknown): boolean;
149
+ }
150
+
151
+ interface GeneratorFunction {
152
+ readonly [Symbol.toStringTag]: string;
153
+ }
154
+
155
+ interface Math {
156
+ readonly [Symbol.toStringTag]: string;
157
+ }
158
+
159
+ interface Promise<T> {
160
+ readonly [Symbol.toStringTag]: string;
161
+ }
162
+
163
+ interface PromiseConstructor {
164
+ readonly [Symbol.species]: PromiseConstructor;
165
+ }
166
+
167
+ interface RegExp {
168
+ /**
169
+ * Matches a string with this regular expression, and returns an array containing the results of
170
+ * that search.
171
+ * @param string A string to search within.
172
+ */
173
+ [Symbol.match](string: string): RegExpMatchArray | null;
174
+
175
+ /**
176
+ * Replaces text in a string, using this regular expression.
177
+ * @param string A String object or string literal whose contents matching against
178
+ * this regular expression will be replaced
179
+ * @param replaceValue A String object or string literal containing the text to replace for every
180
+ * successful match of this regular expression.
181
+ */
182
+ [Symbol.replace](string: string, replaceValue: string): string;
183
+
184
+ /**
185
+ * Replaces text in a string, using this regular expression.
186
+ * @param string A String object or string literal whose contents matching against
187
+ * this regular expression will be replaced
188
+ * @param replacer A function that returns the replacement text.
189
+ */
190
+ [Symbol.replace](
191
+ string: string,
192
+ replacer: (substring: string, ...args: readonly unknown[]) => string,
193
+ ): string;
194
+
195
+ /**
196
+ * Finds the position beginning first substring match in a regular expression search
197
+ * using this regular expression.
198
+ *
199
+ * @param string The string to search within.
200
+ */
201
+ [Symbol.search](string: string): number;
202
+
203
+ /**
204
+ * Returns an array of substrings that were delimited by strings in the original input that
205
+ * match against this regular expression.
206
+ *
207
+ * If the regular expression contains capturing parentheses, then each time this
208
+ * regular expression matches, the results (including any undefined results) of the
209
+ * capturing parentheses are spliced.
210
+ *
211
+ * @param string string value to split
212
+ * @param limit if not undefined, the output array is truncated so that it contains no more
213
+ * than 'limit' elements.
214
+ */
215
+ [Symbol.split](string: string, limit?: number): string[];
216
+ }
217
+
218
+ interface RegExpConstructor {
219
+ readonly [Symbol.species]: RegExpConstructor;
220
+ }
221
+
222
+ interface String {
223
+ /**
224
+ * Matches a string or an object that supports being matched against, and returns an array
225
+ * containing the results of that search, or null if no matches are found.
226
+ * @param matcher An object that supports being matched against.
227
+ */
228
+ match(matcher: {
229
+ [Symbol.match](string: string): RegExpMatchArray | null;
230
+ }): RegExpMatchArray | null;
231
+
232
+ /**
233
+ * Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
234
+ * @param searchValue An object that supports searching for and replacing matches within a string.
235
+ * @param replaceValue The replacement text.
236
+ */
237
+ replace(
238
+ searchValue: {
239
+ [Symbol.replace](string: string, replaceValue: string): string;
240
+ },
241
+ replaceValue: string,
242
+ ): string;
243
+
244
+ /**
245
+ * Replaces text in a string, using an object that supports replacement within a string.
246
+ * @param searchValue A object can search for and replace matches within a string.
247
+ * @param replacer A function that returns the replacement text.
248
+ */
249
+ replace(
250
+ searchValue: {
251
+ [Symbol.replace](
252
+ string: string,
253
+ replacer: (substring: string, ...args: readonly unknown[]) => string,
254
+ ): string;
255
+ },
256
+ replacer: (substring: string, ...args: readonly unknown[]) => string,
257
+ ): string;
258
+
259
+ /**
260
+ * Finds the first substring match in a regular expression search.
261
+ * @param searcher An object which supports searching within a string.
262
+ */
263
+ search(searcher: { [Symbol.search](string: string): number }): number;
264
+
265
+ /**
266
+ * Split a string into substrings using the specified separator and return them as an array.
267
+ * @param splitter An object that can split a string.
268
+ * @param limit A value used to limit the number of elements returned in the array.
269
+ */
270
+ split(
271
+ splitter: { [Symbol.split](string: string, limit?: number): string[] },
272
+ limit?: number,
273
+ ): string[];
274
+ }
275
+
276
+ interface ArrayBuffer {
277
+ readonly [Symbol.toStringTag]: string;
278
+ }
279
+
280
+ interface DataView<TArrayBuffer extends ArrayBufferLike> {
281
+ readonly [Symbol.toStringTag]: string;
282
+ }
283
+
284
+ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
285
+ readonly [Symbol.toStringTag]: 'Int8Array';
286
+ }
287
+
288
+ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
289
+ readonly [Symbol.toStringTag]: 'Uint8Array';
290
+ }
291
+
292
+ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
293
+ readonly [Symbol.toStringTag]: 'Uint8ClampedArray';
294
+ }
295
+
296
+ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
297
+ readonly [Symbol.toStringTag]: 'Int16Array';
298
+ }
299
+
300
+ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
301
+ readonly [Symbol.toStringTag]: 'Uint16Array';
302
+ }
303
+
304
+ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
305
+ readonly [Symbol.toStringTag]: 'Int32Array';
306
+ }
307
+
308
+ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
309
+ readonly [Symbol.toStringTag]: 'Uint32Array';
310
+ }
311
+
312
+ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
313
+ readonly [Symbol.toStringTag]: 'Float32Array';
314
+ }
315
+
316
+ interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
317
+ readonly [Symbol.toStringTag]: 'Float64Array';
318
+ }
319
+
320
+ interface ArrayConstructor {
321
+ readonly [Symbol.species]: ArrayConstructor;
322
+ }
323
+ interface MapConstructor {
324
+ readonly [Symbol.species]: MapConstructor;
325
+ }
326
+ interface SetConstructor {
327
+ readonly [Symbol.species]: SetConstructor;
328
+ }
329
+ interface ArrayBufferConstructor {
330
+ readonly [Symbol.species]: ArrayBufferConstructor;
331
+ }
@@ -0,0 +1,115 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ interface Array<T> {
4
+ /**
5
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
6
+ * @param searchElement The element to search for.
7
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
8
+ */
9
+ includes(
10
+ searchElement: T | (import('ts-type-forge').WidenLiteral<T> & {}),
11
+ fromIndex?: number,
12
+ ): searchElement is T;
13
+ }
14
+
15
+ interface ReadonlyArray<T> {
16
+ /**
17
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
18
+ * @param searchElement The element to search for.
19
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
20
+ */
21
+ includes(
22
+ searchElement: T | (import('ts-type-forge').WidenLiteral<T> & {}),
23
+ fromIndex?: number,
24
+ ): searchElement is T;
25
+ }
26
+
27
+ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
28
+ /**
29
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
30
+ * @param searchElement The element to search for.
31
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
32
+ */
33
+ includes(
34
+ searchElement: import('ts-type-forge').Int8,
35
+ fromIndex?: number,
36
+ ): boolean;
37
+ }
38
+
39
+ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
40
+ /**
41
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
42
+ * @param searchElement The element to search for.
43
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
44
+ */
45
+ includes(
46
+ searchElement: import('ts-type-forge').Uint8,
47
+ fromIndex?: number,
48
+ ): boolean;
49
+ }
50
+
51
+ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
52
+ /**
53
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
54
+ * @param searchElement The element to search for.
55
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
56
+ */
57
+ includes(
58
+ searchElement: import('ts-type-forge').Uint8,
59
+ fromIndex?: number,
60
+ ): boolean;
61
+ }
62
+
63
+ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
64
+ /**
65
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
66
+ * @param searchElement The element to search for.
67
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
68
+ */
69
+ includes(searchElement: number, fromIndex?: number): boolean;
70
+ }
71
+
72
+ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
73
+ /**
74
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
75
+ * @param searchElement The element to search for.
76
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
77
+ */
78
+ includes(searchElement: number, fromIndex?: number): boolean;
79
+ }
80
+
81
+ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
82
+ /**
83
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
84
+ * @param searchElement The element to search for.
85
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
86
+ */
87
+ includes(searchElement: number, fromIndex?: number): boolean;
88
+ }
89
+
90
+ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
91
+ /**
92
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
93
+ * @param searchElement The element to search for.
94
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
95
+ */
96
+ includes(searchElement: number, fromIndex?: number): boolean;
97
+ }
98
+
99
+ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
100
+ /**
101
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
102
+ * @param searchElement The element to search for.
103
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
104
+ */
105
+ includes(searchElement: number, fromIndex?: number): boolean;
106
+ }
107
+
108
+ interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
109
+ /**
110
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
111
+ * @param searchElement The element to search for.
112
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
113
+ */
114
+ includes(searchElement: number, fromIndex?: number): boolean;
115
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2016" />
4
+ /// <reference lib="dom" />
5
+ /// <reference lib="webworker.importscripts" />
6
+ /// <reference lib="scripthost" />
7
+ /// <reference lib="dom.iterable" />
@@ -0,0 +1,5 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2015" />
4
+ /// <reference lib="es2016.array.include" />
5
+ /// <reference lib="es2016.intl" />
@@ -0,0 +1,15 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ declare namespace Intl {
4
+ /**
5
+ * The `Intl.getCanonicalLocales()` method returns an array containing
6
+ * the canonical locale names. Duplicates will be omitted and elements
7
+ * will be validated as structurally valid language tags.
8
+ *
9
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
10
+ *
11
+ * @param locale A list of String values for which to get the canonical locale names
12
+ * @returns An array containing the canonical and validated locale names.
13
+ */
14
+ function getCanonicalLocales(locale?: string | readonly string[]): string[];
15
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ interface ArrayBufferConstructor {
4
+ new (): ArrayBuffer;
5
+ }
@@ -0,0 +1,23 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ interface DateConstructor {
4
+ /**
5
+ * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
6
+ * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
7
+ * @param monthIndex The month as a number between 0 and 11 (January to December).
8
+ * @param date The date as a number between 1 and 31.
9
+ * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
10
+ * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
11
+ * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
12
+ * @param ms A number from 0 to 999 that specifies the milliseconds.
13
+ */
14
+ UTC(
15
+ year: number,
16
+ monthIndex?: import('ts-type-forge').MonthIndexEnum,
17
+ date?: import('ts-type-forge').DateEnum,
18
+ hours?: import('ts-type-forge').HoursEnum,
19
+ minutes?: import('ts-type-forge').MinutesEnum,
20
+ seconds?: import('ts-type-forge').SecondsEnum,
21
+ ms?: import('ts-type-forge').MillisecondsEnum,
22
+ ): number;
23
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2017" />
4
+ /// <reference lib="dom" />
5
+ /// <reference lib="webworker.importscripts" />
6
+ /// <reference lib="scripthost" />
7
+ /// <reference lib="dom.iterable" />
@@ -0,0 +1,10 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2016" />
4
+ /// <reference lib="es2017.arraybuffer" />
5
+ /// <reference lib="es2017.date" />
6
+ /// <reference lib="es2017.intl" />
7
+ /// <reference lib="es2017.object" />
8
+ /// <reference lib="es2017.sharedmemory" />
9
+ /// <reference lib="es2017.string" />
10
+ /// <reference lib="es2017.typedarrays" />
@@ -0,0 +1,28 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ declare namespace Intl {
4
+ interface DateTimeFormatPartTypesRegistry {
5
+ readonly day: unknown;
6
+ readonly dayPeriod: unknown;
7
+ readonly era: unknown;
8
+ readonly hour: unknown;
9
+ readonly literal: unknown;
10
+ readonly minute: unknown;
11
+ readonly month: unknown;
12
+ readonly second: unknown;
13
+ readonly timeZoneName: unknown;
14
+ readonly weekday: unknown;
15
+ readonly year: unknown;
16
+ }
17
+
18
+ type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
19
+
20
+ interface DateTimeFormatPart {
21
+ readonly type: DateTimeFormatPartTypes;
22
+ readonly value: string;
23
+ }
24
+
25
+ interface DateTimeFormat {
26
+ formatToParts(date?: Date | number): DateTimeFormatPart[];
27
+ }
28
+ }
@@ -0,0 +1,115 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ declare namespace StrictLibInternals {
4
+ /**
5
+ * Opens a union of string literals so that it still accepts — and
6
+ * completes to — the literals, without rejecting the excess keys a
7
+ * wider object may carry.
8
+ *
9
+ * Adds nothing when `K` already contains `string`: `string | (string & {})`
10
+ * *is* `string`, so the arm would only leave a confusing artifact in
11
+ * every type computed from it.
12
+ *
13
+ * @internal
14
+ */
15
+ type WithOpenString<K> = string extends K ? K : K | (string & {});
16
+
17
+ /** @internal */
18
+ type ToObjectKeys<R extends import('ts-type-forge').UnknownRecord> =
19
+ WithOpenString<ToStr<keyof R>>;
20
+
21
+ /** @internal */
22
+ type ToStr<A> = A extends string ? A : A extends number ? `${A}` : never;
23
+
24
+ /** @internal */
25
+ type PickByValue<R, V> = Pick<
26
+ R,
27
+ {
28
+ [K in keyof R]: R[K] extends V ? K : never;
29
+ }[keyof R]
30
+ >;
31
+
32
+ /** @internal */
33
+ type ToObjectEntries<R extends import('ts-type-forge').UnknownRecord> =
34
+ R extends R
35
+ ? (
36
+ | (string extends ToStr<keyof R>
37
+ ? never
38
+ : readonly [
39
+ string & {},
40
+ import('ts-type-forge').WidenLiteral<
41
+ import('ts-type-forge').ValueOf<R>
42
+ >,
43
+ ])
44
+ | {
45
+ [K in keyof R]: readonly [
46
+ ToStr<keyof PickByValue<R, R[K]>>,
47
+ R[K],
48
+ ];
49
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
50
+ }[import('ts-type-forge').RelaxedExclude<keyof R, symbol>]
51
+ )[]
52
+ : never;
53
+ }
54
+
55
+ interface ObjectConstructor {
56
+ /**
57
+ * Returns an array of values of the enumerable own properties of an object
58
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
59
+ */
60
+ values<T>(o: { readonly [s: string]: T } | ArrayLike<T>): T[];
61
+
62
+ /**
63
+ * Returns an array of values of the enumerable own properties of an object
64
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
65
+ */
66
+ values(o: {}): unknown[];
67
+
68
+ /**
69
+ * Returns an array of key/values of the enumerable own properties of an object
70
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
71
+ *
72
+ * ```ts
73
+ * const obj = {
74
+ * x: 1,
75
+ * y: 2,
76
+ * z: 2,
77
+ * 3: 4,
78
+ * } as const;
79
+ *
80
+ * const entries = Object.entries(obj); // (['3', 4] | ['x', 1] | ['y' | 'z', 2] | [string, unknown])[]
81
+ * ```
82
+ *
83
+ */
84
+ entries<const R extends import('ts-type-forge').UnknownRecord>(
85
+ object: R,
86
+ ): StrictLibInternals.ToObjectEntries<R>;
87
+
88
+ /**
89
+ * Returns an array of key/values of the enumerable own properties of an
90
+ * object
91
+ *
92
+ * @param o Object that contains the properties and methods. This can be an
93
+ * object that you created or an existing Document Object Model (DOM)
94
+ * object.
95
+ */
96
+ entries<T>(
97
+ o: { readonly [s: string]: T } | ArrayLike<T>,
98
+ ): (readonly [string, T])[];
99
+
100
+ /**
101
+ * Returns an array of key/values of the enumerable own properties of an object
102
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
103
+ */
104
+ entries(o: {}): (readonly [string, unknown])[];
105
+
106
+ /**
107
+ * Returns an object containing all own property descriptors of an object
108
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
109
+ */
110
+ getOwnPropertyDescriptors<T>(o: T): {
111
+ [P in keyof T]: TypedPropertyDescriptor<T[P]>;
112
+ } & {
113
+ [x: string]: PropertyDescriptor;
114
+ };
115
+ }