@typescript-deploys/pr-build 5.4.0-pr-55600-40 → 5.4.0-pr-56281-22
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.
- package/lib/lib.es5.d.ts +12 -0
- package/lib/tsc.js +132 -1010
- package/lib/tsserver.js +133 -1021
- package/lib/typescript.d.ts +0 -2
- package/lib/typescript.js +135 -1020
- package/lib/typingsInstaller.js +71 -996
- package/package.json +2 -2
package/lib/lib.es5.d.ts
CHANGED
|
@@ -1275,6 +1275,12 @@ interface ReadonlyArray<T> {
|
|
|
1275
1275
|
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
1276
1276
|
*/
|
|
1277
1277
|
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
|
|
1278
|
+
/**
|
|
1279
|
+
* Returns the non-Falsy elements of an array
|
|
1280
|
+
* @param predicate Must be exactly "Boolean"
|
|
1281
|
+
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
1282
|
+
*/
|
|
1283
|
+
filter(predicate: BooleanConstructor, thisArg?: any): (T extends false | 0 | "" | null | undefined | 0n ? never : T)[];
|
|
1278
1284
|
/**
|
|
1279
1285
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
1280
1286
|
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
|
|
@@ -1466,6 +1472,12 @@ interface Array<T> {
|
|
|
1466
1472
|
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
1467
1473
|
*/
|
|
1468
1474
|
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
|
|
1475
|
+
/**
|
|
1476
|
+
* Returns the non-Falsy elements of an array
|
|
1477
|
+
* @param predicate Must be exactly "Boolean"
|
|
1478
|
+
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
1479
|
+
*/
|
|
1480
|
+
filter(predicate: BooleanConstructor, thisArg?: any): (T extends false | 0 | "" | null | undefined | 0n ? never : T)[];
|
|
1469
1481
|
/**
|
|
1470
1482
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
1471
1483
|
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
|