strict-ts-lib-v5.5 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 (91) hide show
  1. package/README.md +28 -0
  2. package/libs/decorators/index.d.ts +364 -0
  3. package/libs/decorators/legacy/index.d.ts +19 -0
  4. package/libs/dom/asynciterable/index.d.ts +21 -0
  5. package/libs/dom/index.d.ts +35518 -0
  6. package/libs/dom/iterable/index.d.ts +755 -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 +524 -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/date/index.d.ts +23 -0
  22. package/libs/es2017/full/index.d.ts +7 -0
  23. package/libs/es2017/index.d.ts +9 -0
  24. package/libs/es2017/intl/index.d.ts +28 -0
  25. package/libs/es2017/object/index.d.ts +115 -0
  26. package/libs/es2017/sharedmemory/index.d.ts +244 -0
  27. package/libs/es2017/string/index.d.ts +29 -0
  28. package/libs/es2017/typedarrays/index.d.ts +37 -0
  29. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  30. package/libs/es2018/asynciterable/index.d.ts +31 -0
  31. package/libs/es2018/full/index.d.ts +8 -0
  32. package/libs/es2018/index.d.ts +8 -0
  33. package/libs/es2018/intl/index.d.ts +92 -0
  34. package/libs/es2018/promise/index.d.ts +14 -0
  35. package/libs/es2018/regexp/index.d.ts +21 -0
  36. package/libs/es2019/array/index.d.ts +94 -0
  37. package/libs/es2019/full/index.d.ts +8 -0
  38. package/libs/es2019/index.d.ts +8 -0
  39. package/libs/es2019/intl/index.d.ts +7 -0
  40. package/libs/es2019/object/index.d.ts +143 -0
  41. package/libs/es2019/string/index.d.ts +21 -0
  42. package/libs/es2019/symbol/index.d.ts +8 -0
  43. package/libs/es2020/bigint/index.d.ts +838 -0
  44. package/libs/es2020/date/index.d.ts +35 -0
  45. package/libs/es2020/full/index.d.ts +8 -0
  46. package/libs/es2020/index.d.ts +11 -0
  47. package/libs/es2020/intl/index.d.ts +494 -0
  48. package/libs/es2020/number/index.d.ts +15 -0
  49. package/libs/es2020/promise/index.d.ts +37 -0
  50. package/libs/es2020/sharedmemory/index.d.ts +119 -0
  51. package/libs/es2020/string/index.d.ts +30 -0
  52. package/libs/es2020/symbol-wellknown/index.d.ts +21 -0
  53. package/libs/es2021/full/index.d.ts +8 -0
  54. package/libs/es2021/index.d.ts +7 -0
  55. package/libs/es2021/intl/index.d.ts +161 -0
  56. package/libs/es2021/promise/index.d.ts +34 -0
  57. package/libs/es2021/string/index.d.ts +20 -0
  58. package/libs/es2021/weakref/index.d.ts +60 -0
  59. package/libs/es2022/array/index.d.ts +105 -0
  60. package/libs/es2022/error/index.d.ts +57 -0
  61. package/libs/es2022/full/index.d.ts +8 -0
  62. package/libs/es2022/index.d.ts +10 -0
  63. package/libs/es2022/intl/index.d.ts +112 -0
  64. package/libs/es2022/object/index.d.ts +41 -0
  65. package/libs/es2022/regexp/index.d.ts +23 -0
  66. package/libs/es2022/sharedmemory/index.d.ts +37 -0
  67. package/libs/es2022/string/index.d.ts +9 -0
  68. package/libs/es2023/array/index.d.ts +906 -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/es5/index.d.ts +5771 -0
  74. package/libs/es6/index.d.ts +7 -0
  75. package/libs/esnext/array/index.d.ts +28 -0
  76. package/libs/esnext/collection/index.d.ts +90 -0
  77. package/libs/esnext/decorators/index.d.ts +12 -0
  78. package/libs/esnext/disposable/index.d.ts +169 -0
  79. package/libs/esnext/full/index.d.ts +8 -0
  80. package/libs/esnext/index.d.ts +12 -0
  81. package/libs/esnext/intl/index.d.ts +5 -0
  82. package/libs/esnext/object/index.d.ts +13 -0
  83. package/libs/esnext/promise/index.d.ts +19 -0
  84. package/libs/esnext/regexp/index.d.ts +9 -0
  85. package/libs/esnext/string/index.d.ts +13 -0
  86. package/libs/scripthost/index.d.ts +310 -0
  87. package/libs/webworker/asynciterable/index.d.ts +21 -0
  88. package/libs/webworker/importscripts/index.d.ts +7 -0
  89. package/libs/webworker/index.d.ts +11772 -0
  90. package/libs/webworker/iterable/index.d.ts +548 -0
  91. package/package.json +23 -0
@@ -0,0 +1,647 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ interface Array<T> {
4
+ /**
5
+ * Returns the value of the first element in the array where predicate is true, and undefined
6
+ * otherwise.
7
+ * @param predicate find calls predicate once for each element of the array, in ascending
8
+ * order, until it finds one where predicate returns true. If such an element is found, find
9
+ * immediately returns that element value. Otherwise, find returns undefined.
10
+ * @param thisArg If provided, it will be used as the this value for each invocation of
11
+ * predicate. If it is not provided, undefined is used instead.
12
+ */
13
+ find<S extends T>(
14
+ predicate: (value: T, index: number, obj: readonly T[]) => value is S,
15
+ thisArg?: unknown,
16
+ ): S | undefined;
17
+ find(
18
+ predicate: (value: T, index: number, obj: readonly T[]) => boolean,
19
+ thisArg?: unknown,
20
+ ): T | undefined;
21
+
22
+ /**
23
+ * Returns the index of the first element in the array where predicate is true, and -1
24
+ * otherwise.
25
+ * @param predicate find calls predicate once for each element of the array, in ascending
26
+ * order, until it finds one where predicate returns true. If such an element is found,
27
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
28
+ * @param thisArg If provided, it will be used as the this value for each invocation of
29
+ * predicate. If it is not provided, undefined is used instead.
30
+ */
31
+ findIndex(
32
+ predicate: (value: T, index: number, obj: readonly T[]) => boolean,
33
+ thisArg?: unknown,
34
+ ): number;
35
+
36
+ /**
37
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
38
+ * @param value value to fill array section with
39
+ * @param start index to start filling the array at. If start is negative, it is treated as
40
+ * length+start where length is the length of the array.
41
+ * @param end index to stop filling the array at. If end is negative, it is treated as
42
+ * length+end.
43
+ */
44
+ fill(value: T, start?: number, end?: number): this;
45
+
46
+ /**
47
+ * Returns the this object after copying a section of the array identified by start and end
48
+ * to the same array starting at position target
49
+ * @param target If target is negative, it is treated as length+target where length is the
50
+ * length of the array.
51
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
52
+ * is treated as length+end.
53
+ * @param end If not specified, length of the this object is used as its default value.
54
+ */
55
+ copyWithin(target: number, start: number, end?: number): this;
56
+
57
+ toLocaleString(
58
+ locales: string | readonly string[],
59
+ options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions,
60
+ ): string;
61
+ }
62
+
63
+ interface ArrayConstructor {
64
+ /**
65
+ * Creates an array from an array-like object.
66
+ * @param arrayLike An array-like object to convert to an array.
67
+ */
68
+ from<T>(arrayLike: ArrayLike<T>): T[];
69
+
70
+ /**
71
+ * Creates an array from an iterable object.
72
+ * @param arrayLike An array-like object to convert to an array.
73
+ * @param mapfn A mapping function to call on every element of the array.
74
+ * @param thisArg Value of 'this' used to invoke the mapfn.
75
+ */
76
+ from<T, U>(
77
+ arrayLike: ArrayLike<T>,
78
+ mapfn: (v: T, k: number) => U,
79
+ thisArg?: unknown,
80
+ ): U[];
81
+
82
+ /**
83
+ * Returns a new array from a set of elements.
84
+ * @param items A set of elements to include in the new array object.
85
+ */
86
+ of<T>(...items: readonly T[]): T[];
87
+ }
88
+
89
+ interface DateConstructor {
90
+ new (value: number | string | Date): Date;
91
+ }
92
+
93
+ interface Function {
94
+ /**
95
+ * Returns the name of the function. Function names are read-only and can not be changed.
96
+ */
97
+ readonly name: string;
98
+ }
99
+
100
+ interface Math {
101
+ /**
102
+ * Returns the number of leading zero bits in the 32-bit binary representation of a number.
103
+ * @param x A numeric expression.
104
+ */
105
+ clz32(x: number): import('ts-type-forge').UintRange<0, 33>;
106
+
107
+ /**
108
+ * Returns the result of 32-bit multiplication of two numbers.
109
+ * @param x First number
110
+ * @param y Second number
111
+ */
112
+ imul(x: number, y: number): number;
113
+
114
+ /**
115
+ * Returns the sign of the x, indicating whether x is positive, negative or zero.
116
+ * @param x The numeric expression to test
117
+ */
118
+ sign(x: number): number;
119
+
120
+ /**
121
+ * Returns the base 10 logarithm of a number.
122
+ * @param x A numeric expression.
123
+ */
124
+ log10(x: number): number;
125
+
126
+ /**
127
+ * Returns the base 2 logarithm of a number.
128
+ * @param x A numeric expression.
129
+ */
130
+ log2(x: number): number;
131
+
132
+ /**
133
+ * Returns the natural logarithm of 1 + x.
134
+ * @param x A numeric expression.
135
+ */
136
+ log1p(x: number): number;
137
+
138
+ /**
139
+ * Returns the result of (e^x - 1), which is an implementation-dependent approximation to
140
+ * subtracting 1 from the exponential function of x (e raised to the power of x, where e
141
+ * is the base of the natural logarithms).
142
+ * @param x A numeric expression.
143
+ */
144
+ expm1(x: number): number;
145
+
146
+ /**
147
+ * Returns the hyperbolic cosine of a number.
148
+ * @param x A numeric expression that contains an angle measured in radians.
149
+ */
150
+ cosh(x: number): number;
151
+
152
+ /**
153
+ * Returns the hyperbolic sine of a number.
154
+ * @param x A numeric expression that contains an angle measured in radians.
155
+ */
156
+ sinh(x: number): number;
157
+
158
+ /**
159
+ * Returns the hyperbolic tangent of a number.
160
+ * @param x A numeric expression that contains an angle measured in radians.
161
+ */
162
+ tanh(x: number): number;
163
+
164
+ /**
165
+ * Returns the inverse hyperbolic cosine of a number.
166
+ * @param x A numeric expression that contains an angle measured in radians.
167
+ */
168
+ acosh(x: number): number;
169
+
170
+ /**
171
+ * Returns the inverse hyperbolic sine of a number.
172
+ * @param x A numeric expression that contains an angle measured in radians.
173
+ */
174
+ asinh(x: number): number;
175
+
176
+ /**
177
+ * Returns the inverse hyperbolic tangent of a number.
178
+ * @param x A numeric expression that contains an angle measured in radians.
179
+ */
180
+ atanh(x: number): number;
181
+
182
+ /**
183
+ * Returns the square root of the sum of squares of its arguments.
184
+ * @param values Values to compute the square root for.
185
+ * If no arguments are passed, the result is +0.
186
+ * If there is only one argument, the result is the absolute value.
187
+ * If any argument is +Infinity or -Infinity, the result is +Infinity.
188
+ * If any argument is NaN, the result is NaN.
189
+ * If all arguments are either +0 or −0, the result is +0.
190
+ */
191
+ hypot(...values: readonly number[]): number;
192
+
193
+ /**
194
+ * Returns the integral part of the a numeric expression, x, removing any fractional digits.
195
+ * If x is already an integer, the result is x.
196
+ * @param x A numeric expression.
197
+ */
198
+ trunc(x: number): number;
199
+
200
+ /**
201
+ * Returns the nearest single precision float representation of a number.
202
+ * @param x A numeric expression.
203
+ */
204
+ fround(x: number): number;
205
+
206
+ /**
207
+ * Returns an implementation-dependent approximation to the cube root of number.
208
+ * @param x A numeric expression.
209
+ */
210
+ cbrt(x: number): number;
211
+ }
212
+
213
+ interface NumberConstructor {
214
+ /**
215
+ * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
216
+ * that is representable as a Number value, which is approximately:
217
+ * 2.2204460492503130808472633361816 x 10‍−‍16.
218
+ */
219
+ readonly EPSILON: number;
220
+
221
+ /**
222
+ * Returns true if passed value is finite.
223
+ * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
224
+ * number. Only finite values of the type number, result in true.
225
+ * @param number A numeric value.
226
+ */
227
+ isFinite(number: number): boolean;
228
+
229
+ /**
230
+ * Returns true if the value passed is an integer, false otherwise.
231
+ * @param number A numeric value.
232
+ */
233
+ isInteger(number: number): boolean;
234
+
235
+ /**
236
+ * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
237
+ * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
238
+ * to a number. Only values of the type number, that are also NaN, result in true.
239
+ * @param number A numeric value.
240
+ */
241
+ isNaN(number: number): boolean;
242
+
243
+ /**
244
+ * Returns true if the value passed is a safe integer.
245
+ * @param number A numeric value.
246
+ */
247
+ isSafeInteger(number: number): boolean;
248
+
249
+ /**
250
+ * The value of the largest integer n such that n and n + 1 are both exactly representable as
251
+ * a Number value.
252
+ * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
253
+ */
254
+ readonly MAX_SAFE_INTEGER: number;
255
+
256
+ /**
257
+ * The value of the smallest integer n such that n and n − 1 are both exactly representable as
258
+ * a Number value.
259
+ * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
260
+ */
261
+ readonly MIN_SAFE_INTEGER: number;
262
+
263
+ /**
264
+ * Converts a string to a floating-point number.
265
+ * @param string A string that contains a floating-point number.
266
+ */
267
+ parseFloat(string: string): number;
268
+
269
+ /**
270
+ * Converts A string to an integer.
271
+ * @param string A string to convert into a number.
272
+ * @param radix A value between 2 and 36 that specifies the base of the number in `string`.
273
+ * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
274
+ * All other strings are considered decimal.
275
+ */
276
+ parseInt(
277
+ string: string,
278
+ radix?: import('ts-type-forge').UintRange<2, 37>,
279
+ ): number;
280
+ }
281
+
282
+ interface ObjectConstructor {
283
+ /**
284
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
285
+ * target object. Returns the target object.
286
+ * @param target The target object to copy to.
287
+ * @param source The source object from which to copy properties.
288
+ */
289
+ assign<T extends {}, U>(target: T, source: U): T & U;
290
+
291
+ /**
292
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
293
+ * target object. Returns the target object.
294
+ * @param target The target object to copy to.
295
+ * @param source1 The first source object from which to copy properties.
296
+ * @param source2 The second source object from which to copy properties.
297
+ */
298
+ assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
299
+
300
+ /**
301
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
302
+ * target object. Returns the target object.
303
+ * @param target The target object to copy to.
304
+ * @param source1 The first source object from which to copy properties.
305
+ * @param source2 The second source object from which to copy properties.
306
+ * @param source3 The third source object from which to copy properties.
307
+ */
308
+ assign<T extends {}, U, V, W>(
309
+ target: T,
310
+ source1: U,
311
+ source2: V,
312
+ source3: W,
313
+ ): T & U & V & W;
314
+
315
+ /**
316
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
317
+ * target object. Returns the target object.
318
+ * @param target The target object to copy to.
319
+ * @param sources One or more source objects from which to copy properties
320
+ */
321
+ assign(target: object, ...sources: readonly unknown[]): unknown;
322
+
323
+ /**
324
+ * Returns an array of all symbol properties found directly on object o.
325
+ * @param o Object to retrieve the symbols from.
326
+ */
327
+ getOwnPropertySymbols(o: unknown): symbol[];
328
+
329
+ /**
330
+ * Returns the names of the enumerable string properties and methods of an object.
331
+ * @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.
332
+ */
333
+ // keys(o: {}): string[];
334
+
335
+ /**
336
+ * Returns true if the values are the same value, false otherwise.
337
+ * @param value1 The first value.
338
+ * @param value2 The second value.
339
+ */
340
+ is(value1: unknown, value2: unknown): boolean;
341
+
342
+ /**
343
+ * Sets the prototype of a specified object o to object proto or null. Returns the object o.
344
+ * @param o The object to change its prototype.
345
+ * @param proto The value of the new prototype or null.
346
+ */
347
+ setPrototypeOf(o: unknown, proto: object | null): unknown;
348
+ }
349
+
350
+ interface ReadonlyArray<T> {
351
+ /**
352
+ * Returns the value of the first element in the array where predicate is true, and undefined
353
+ * otherwise.
354
+ * @param predicate find calls predicate once for each element of the array, in ascending
355
+ * order, until it finds one where predicate returns true. If such an element is found, find
356
+ * immediately returns that element value. Otherwise, find returns undefined.
357
+ * @param thisArg If provided, it will be used as the this value for each invocation of
358
+ * predicate. If it is not provided, undefined is used instead.
359
+ */
360
+ find<S extends T>(
361
+ predicate: (value: T, index: number, obj: readonly T[]) => value is S,
362
+ thisArg?: unknown,
363
+ ): S | undefined;
364
+ find(
365
+ predicate: (value: T, index: number, obj: readonly T[]) => boolean,
366
+ thisArg?: unknown,
367
+ ): T | undefined;
368
+
369
+ /**
370
+ * Returns the index of the first element in the array where predicate is true, and -1
371
+ * otherwise.
372
+ * @param predicate find calls predicate once for each element of the array, in ascending
373
+ * order, until it finds one where predicate returns true. If such an element is found,
374
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
375
+ * @param thisArg If provided, it will be used as the this value for each invocation of
376
+ * predicate. If it is not provided, undefined is used instead.
377
+ */
378
+ findIndex(
379
+ predicate: (value: T, index: number, obj: readonly T[]) => boolean,
380
+ thisArg?: unknown,
381
+ ): number;
382
+
383
+ toLocaleString(
384
+ locales: string | readonly string[],
385
+ options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions,
386
+ ): string;
387
+ }
388
+
389
+ interface RegExp {
390
+ /**
391
+ * Returns a string indicating the flags of the regular expression in question. This field is read-only.
392
+ * The characters in this string are sequenced and concatenated in the following order:
393
+ *
394
+ * - "g" for global
395
+ * - "i" for ignoreCase
396
+ * - "m" for multiline
397
+ * - "u" for unicode
398
+ * - "y" for sticky
399
+ *
400
+ * If no flags are set, the value is the empty string.
401
+ */
402
+ readonly flags: string;
403
+
404
+ /**
405
+ * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
406
+ * expression. Default is false. Read-only.
407
+ */
408
+ readonly sticky: boolean;
409
+
410
+ /**
411
+ * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
412
+ * expression. Default is false. Read-only.
413
+ */
414
+ readonly unicode: boolean;
415
+ }
416
+
417
+ interface RegExpConstructor {
418
+ new (pattern: RegExp | string, flags?: string): RegExp;
419
+ (pattern: RegExp | string, flags?: string): RegExp;
420
+ }
421
+
422
+ interface String {
423
+ /**
424
+ * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
425
+ * value of the UTF-16 encoded code point starting at the string element at position pos in
426
+ * the String resulting from converting this object to a String.
427
+ * If there is no element at that position, the result is undefined.
428
+ * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
429
+ */
430
+ codePointAt(pos: number): number | undefined;
431
+
432
+ /**
433
+ * Returns true if searchString appears as a substring of the result of converting this
434
+ * object to a String, at one or more positions that are
435
+ * greater than or equal to position; otherwise, returns false.
436
+ * @param searchString search string
437
+ * @param position If position is undefined, 0 is assumed, so as to search all of the String.
438
+ */
439
+ includes(searchString: string, position?: number): boolean;
440
+
441
+ /**
442
+ * Returns true if the sequence of elements of searchString converted to a String is the
443
+ * same as the corresponding elements of this object (converted to a String) starting at
444
+ * endPosition – length(this). Otherwise returns false.
445
+ */
446
+ endsWith(searchString: string, endPosition?: number): boolean;
447
+
448
+ /**
449
+ * Returns the String value result of normalizing the string into the normalization form
450
+ * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
451
+ * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
452
+ * is "NFC"
453
+ */
454
+ normalize(form: 'NFC' | 'NFD' | 'NFKC' | 'NFKD'): string;
455
+
456
+ /**
457
+ * Returns the String value result of normalizing the string into the normalization form
458
+ * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
459
+ * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
460
+ * is "NFC"
461
+ */
462
+ normalize(form?: string): string;
463
+
464
+ /**
465
+ * Returns a String value that is made from count copies appended together. If count is 0,
466
+ * the empty string is returned.
467
+ * @param count number of copies to append
468
+ */
469
+ repeat(count: number): string;
470
+
471
+ /**
472
+ * Returns true if the sequence of elements of searchString converted to a String is the
473
+ * same as the corresponding elements of this object (converted to a String) starting at
474
+ * position. Otherwise returns false.
475
+ */
476
+ startsWith(searchString: string, position?: number): boolean;
477
+
478
+ /**
479
+ * Returns an `<a>` HTML anchor element and sets the name attribute to the text value
480
+ * @deprecated A legacy feature for browser compatibility
481
+ * @param name
482
+ */
483
+ anchor(name: string): string;
484
+
485
+ /**
486
+ * Returns a `<big>` HTML element
487
+ * @deprecated A legacy feature for browser compatibility
488
+ */
489
+ big(): string;
490
+
491
+ /**
492
+ * Returns a `<blink>` HTML element
493
+ * @deprecated A legacy feature for browser compatibility
494
+ */
495
+ blink(): string;
496
+
497
+ /**
498
+ * Returns a `<b>` HTML element
499
+ * @deprecated A legacy feature for browser compatibility
500
+ */
501
+ bold(): string;
502
+
503
+ /**
504
+ * Returns a `<tt>` HTML element
505
+ * @deprecated A legacy feature for browser compatibility
506
+ */
507
+ fixed(): string;
508
+
509
+ /**
510
+ * Returns a `<font>` HTML element and sets the color attribute value
511
+ * @deprecated A legacy feature for browser compatibility
512
+ */
513
+ fontcolor(color: string): string;
514
+
515
+ /**
516
+ * Returns a `<font>` HTML element and sets the size attribute value
517
+ * @deprecated A legacy feature for browser compatibility
518
+ */
519
+ fontsize(size: number): string;
520
+
521
+ /**
522
+ * Returns a `<font>` HTML element and sets the size attribute value
523
+ * @deprecated A legacy feature for browser compatibility
524
+ */
525
+ fontsize(size: string): string;
526
+
527
+ /**
528
+ * Returns an `<i>` HTML element
529
+ * @deprecated A legacy feature for browser compatibility
530
+ */
531
+ italics(): string;
532
+
533
+ /**
534
+ * Returns an `<a>` HTML element and sets the href attribute value
535
+ * @deprecated A legacy feature for browser compatibility
536
+ */
537
+ link(url: string): string;
538
+
539
+ /**
540
+ * Returns a `<small>` HTML element
541
+ * @deprecated A legacy feature for browser compatibility
542
+ */
543
+ small(): string;
544
+
545
+ /**
546
+ * Returns a `<strike>` HTML element
547
+ * @deprecated A legacy feature for browser compatibility
548
+ */
549
+ strike(): string;
550
+
551
+ /**
552
+ * Returns a `<sub>` HTML element
553
+ * @deprecated A legacy feature for browser compatibility
554
+ */
555
+ sub(): string;
556
+
557
+ /**
558
+ * Returns a `<sup>` HTML element
559
+ * @deprecated A legacy feature for browser compatibility
560
+ */
561
+ sup(): string;
562
+ }
563
+
564
+ interface StringConstructor {
565
+ /**
566
+ * Return the String value whose elements are, in order, the elements in the List elements.
567
+ * If length is 0, the empty string is returned.
568
+ */
569
+ fromCodePoint(...codePoints: readonly number[]): string;
570
+
571
+ /**
572
+ * String.raw is usually used as a tag function of a Tagged Template String. When called as
573
+ * such, the first argument will be a well formed template call site object and the rest
574
+ * parameter will contain the substitution values. It can also be called directly, for example,
575
+ * to interleave strings and values from your own tag function, and in this case the only thing
576
+ * it needs from the first argument is the raw property.
577
+ * @param template A well-formed template string call site representation.
578
+ * @param substitutions A set of substitution values.
579
+ */
580
+ raw(
581
+ template: { readonly raw: readonly string[] | ArrayLike<string> },
582
+ ...substitutions: readonly unknown[]
583
+ ): string;
584
+ }
585
+
586
+ interface Int8Array {
587
+ toLocaleString(
588
+ locales: string | readonly string[],
589
+ options?: Intl.NumberFormatOptions,
590
+ ): string;
591
+ }
592
+
593
+ interface Uint8Array {
594
+ toLocaleString(
595
+ locales: string | readonly string[],
596
+ options?: Intl.NumberFormatOptions,
597
+ ): string;
598
+ }
599
+
600
+ interface Uint8ClampedArray {
601
+ toLocaleString(
602
+ locales: string | readonly string[],
603
+ options?: Intl.NumberFormatOptions,
604
+ ): string;
605
+ }
606
+
607
+ interface Int16Array {
608
+ toLocaleString(
609
+ locales: string | readonly string[],
610
+ options?: Intl.NumberFormatOptions,
611
+ ): string;
612
+ }
613
+
614
+ interface Uint16Array {
615
+ toLocaleString(
616
+ locales: string | readonly string[],
617
+ options?: Intl.NumberFormatOptions,
618
+ ): string;
619
+ }
620
+
621
+ interface Int32Array {
622
+ toLocaleString(
623
+ locales: string | readonly string[],
624
+ options?: Intl.NumberFormatOptions,
625
+ ): string;
626
+ }
627
+
628
+ interface Uint32Array {
629
+ toLocaleString(
630
+ locales: string | readonly string[],
631
+ options?: Intl.NumberFormatOptions,
632
+ ): string;
633
+ }
634
+
635
+ interface Float32Array {
636
+ toLocaleString(
637
+ locales: string | readonly string[],
638
+ options?: Intl.NumberFormatOptions,
639
+ ): string;
640
+ }
641
+
642
+ interface Float64Array {
643
+ toLocaleString(
644
+ locales: string | readonly string[],
645
+ options?: Intl.NumberFormatOptions,
646
+ ): string;
647
+ }
@@ -0,0 +1,65 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2015.iterable" />
4
+
5
+ interface Generator<
6
+ T = unknown,
7
+ TReturn = any,
8
+ TNext = unknown,
9
+ > extends Iterator<T, TReturn, TNext> {
10
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
11
+ next(...args: readonly [] | readonly [TNext]): IteratorResult<T, TReturn>;
12
+ return(value: TReturn): IteratorResult<T, TReturn>;
13
+ throw(e: unknown): IteratorResult<T, TReturn>;
14
+ [Symbol.iterator](): Generator<T, TReturn, TNext>;
15
+ }
16
+
17
+ interface GeneratorFunction {
18
+ /**
19
+ * Creates a new Generator object.
20
+ * @param args A list of arguments the function accepts.
21
+ */
22
+ new (...args: readonly unknown[]): Generator;
23
+ /**
24
+ * Creates a new Generator object.
25
+ * @param args A list of arguments the function accepts.
26
+ */
27
+ (...args: readonly unknown[]): Generator;
28
+ /**
29
+ * The length of the arguments.
30
+ */
31
+ readonly length: number;
32
+ /**
33
+ * Returns the name of the function.
34
+ */
35
+ readonly name: string;
36
+ /**
37
+ * A reference to the prototype.
38
+ */
39
+ readonly prototype: Generator;
40
+ }
41
+
42
+ interface GeneratorFunctionConstructor {
43
+ /**
44
+ * Creates a new Generator function.
45
+ * @param args A list of arguments the function accepts.
46
+ */
47
+ new (...args: readonly string[]): GeneratorFunction;
48
+ /**
49
+ * Creates a new Generator function.
50
+ * @param args A list of arguments the function accepts.
51
+ */
52
+ (...args: readonly string[]): GeneratorFunction;
53
+ /**
54
+ * The length of the arguments.
55
+ */
56
+ readonly length: number;
57
+ /**
58
+ * Returns the name of the function.
59
+ */
60
+ readonly name: string;
61
+ /**
62
+ * A reference to the prototype.
63
+ */
64
+ readonly prototype: GeneratorFunction;
65
+ }