diff --git a/docs/diff/es5.d.ts.md b/docs/diff/es5.d.ts.md index d149910..3ed6956 100644 --- a/docs/diff/es5.d.ts.md +++ b/docs/diff/es5.d.ts.md @@ -871,7 +871,19 @@ Index: es5.d.ts /** * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`. -@@ -2138,20 +2235,24 @@ +@@ -1837,8 +1934,11 @@ + type Extract = T extends U ? T : never; + + /** + * Construct a type with the properties of T except for those in type K. ++ * ++ * @deprecated Omit is known to have an undesired behavior. It is recommended to bring your own implementation or use a library. ++ * @see {@link https://github.com/microsoft/TypeScript/issues/54451} + */ + type Omit = Pick>; + + /** +@@ -2138,20 +2238,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -900,7 +912,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2161,21 +2262,24 @@ +@@ -2161,21 +2265,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -931,7 +943,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2183,13 +2287,12 @@ +@@ -2183,13 +2290,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -948,7 +960,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2197,23 +2300,22 @@ +@@ -2197,23 +2303,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -978,7 +990,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2241,50 +2343,40 @@ +@@ -2241,50 +2346,40 @@ /** * The length of the array. */ @@ -1042,7 +1054,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -2293,46 +2385,32 @@ +@@ -2293,46 +2388,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1094,7 +1106,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -2341,9 +2419,9 @@ +@@ -2341,9 +2422,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1105,7 +1117,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -2369,20 +2447,24 @@ +@@ -2369,20 +2450,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -1134,7 +1146,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -2438,25 +2520,23 @@ +@@ -2438,25 +2523,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1163,7 +1175,7 @@ Index: es5.d.ts } declare var Int8Array: Int8ArrayConstructor; -@@ -2494,20 +2574,24 @@ +@@ -2494,20 +2577,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1192,7 +1204,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2517,21 +2601,24 @@ +@@ -2517,21 +2604,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1223,7 +1235,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2539,13 +2626,12 @@ +@@ -2539,13 +2629,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1240,7 +1252,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2553,23 +2639,22 @@ +@@ -2553,23 +2642,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1270,7 +1282,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2597,50 +2682,40 @@ +@@ -2597,50 +2685,40 @@ /** * The length of the array. */ @@ -1334,7 +1346,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -2649,46 +2724,32 @@ +@@ -2649,46 +2727,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1386,7 +1398,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -2697,9 +2758,9 @@ +@@ -2697,9 +2761,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1397,7 +1409,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -2725,20 +2786,24 @@ +@@ -2725,20 +2789,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -1426,7 +1438,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -2794,25 +2859,23 @@ +@@ -2794,25 +2862,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1455,7 +1467,7 @@ Index: es5.d.ts } declare var Uint8Array: Uint8ArrayConstructor; -@@ -2852,20 +2915,24 @@ +@@ -2852,20 +2918,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1484,7 +1496,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2875,21 +2942,24 @@ +@@ -2875,21 +2945,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1515,7 +1527,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2897,13 +2967,12 @@ +@@ -2897,13 +2970,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1532,7 +1544,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2911,23 +2980,22 @@ +@@ -2911,23 +2983,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1562,7 +1574,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2955,50 +3023,40 @@ +@@ -2955,50 +3026,40 @@ /** * The length of the array. */ @@ -1626,7 +1638,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -3007,46 +3065,32 @@ +@@ -3007,46 +3068,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1678,7 +1690,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -3055,9 +3099,9 @@ +@@ -3055,9 +3102,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1689,7 +1701,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -3083,20 +3127,24 @@ +@@ -3083,20 +3130,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -1718,7 +1730,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3152,25 +3200,23 @@ +@@ -3152,25 +3203,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1747,7 +1759,7 @@ Index: es5.d.ts } declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; -@@ -3208,20 +3254,24 @@ +@@ -3208,20 +3257,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1776,7 +1788,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3231,21 +3281,24 @@ +@@ -3231,21 +3284,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1807,7 +1819,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3253,13 +3306,12 @@ +@@ -3253,13 +3309,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1824,7 +1836,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3267,23 +3319,22 @@ +@@ -3267,23 +3322,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1854,7 +1866,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. -@@ -3310,50 +3361,40 @@ +@@ -3310,50 +3364,40 @@ /** * The length of the array. */ @@ -1918,7 +1930,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -3362,46 +3403,32 @@ +@@ -3362,46 +3406,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1970,7 +1982,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -3410,9 +3437,9 @@ +@@ -3410,9 +3440,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1981,7 +1993,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -3438,20 +3465,24 @@ +@@ -3438,20 +3468,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2010,7 +2022,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3507,25 +3538,23 @@ +@@ -3507,25 +3541,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2039,7 +2051,7 @@ Index: es5.d.ts } declare var Int16Array: Int16ArrayConstructor; -@@ -3563,20 +3592,24 @@ +@@ -3563,20 +3595,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2068,7 +2080,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3586,21 +3619,24 @@ +@@ -3586,21 +3622,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2099,7 +2111,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3608,13 +3644,12 @@ +@@ -3608,13 +3647,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2116,7 +2128,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3622,23 +3657,22 @@ +@@ -3622,23 +3660,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2146,7 +2158,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -3666,50 +3700,40 @@ +@@ -3666,50 +3703,40 @@ /** * The length of the array. */ @@ -2210,7 +2222,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -3718,46 +3742,32 @@ +@@ -3718,46 +3745,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2262,7 +2274,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -3766,9 +3776,9 @@ +@@ -3766,9 +3779,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2273,7 +2285,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -3794,20 +3804,24 @@ +@@ -3794,20 +3807,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2302,7 +2314,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3863,25 +3877,23 @@ +@@ -3863,25 +3880,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2331,7 +2343,7 @@ Index: es5.d.ts } declare var Uint16Array: Uint16ArrayConstructor; /** -@@ -3918,20 +3930,24 @@ +@@ -3918,20 +3933,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2360,7 +2372,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3941,21 +3957,24 @@ +@@ -3941,21 +3960,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2391,7 +2403,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3963,13 +3982,12 @@ +@@ -3963,13 +3985,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2408,7 +2420,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3977,23 +3995,22 @@ +@@ -3977,23 +3998,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2438,7 +2450,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -4021,50 +4038,40 @@ +@@ -4021,50 +4041,40 @@ /** * The length of the array. */ @@ -2502,7 +2514,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -4073,46 +4080,32 @@ +@@ -4073,46 +4083,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2554,7 +2566,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -4121,9 +4114,9 @@ +@@ -4121,9 +4117,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2565,7 +2577,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -4149,20 +4142,24 @@ +@@ -4149,20 +4145,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2594,7 +2606,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4218,25 +4215,23 @@ +@@ -4218,25 +4218,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2623,7 +2635,7 @@ Index: es5.d.ts } declare var Int32Array: Int32ArrayConstructor; -@@ -4274,20 +4269,24 @@ +@@ -4274,20 +4272,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2652,7 +2664,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -4297,21 +4296,24 @@ +@@ -4297,21 +4299,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2683,7 +2695,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4319,13 +4321,12 @@ +@@ -4319,13 +4324,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2700,7 +2712,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4333,23 +4334,22 @@ +@@ -4333,23 +4337,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2730,7 +2742,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. -@@ -4376,50 +4376,40 @@ +@@ -4376,50 +4379,40 @@ /** * The length of the array. */ @@ -2794,7 +2806,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -4428,46 +4418,32 @@ +@@ -4428,46 +4421,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2846,7 +2858,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -4476,9 +4452,9 @@ +@@ -4476,9 +4455,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2857,7 +2869,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -4504,20 +4480,24 @@ +@@ -4504,20 +4483,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2886,7 +2898,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4573,25 +4553,23 @@ +@@ -4573,25 +4556,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2915,7 +2927,7 @@ Index: es5.d.ts } declare var Uint32Array: Uint32ArrayConstructor; -@@ -4629,20 +4607,24 @@ +@@ -4629,20 +4610,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2944,7 +2956,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -4652,21 +4634,24 @@ +@@ -4652,21 +4637,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2975,7 +2987,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4674,13 +4659,12 @@ +@@ -4674,13 +4662,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2992,7 +3004,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4688,23 +4672,22 @@ +@@ -4688,23 +4675,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -3022,7 +3034,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -4732,50 +4715,40 @@ +@@ -4732,50 +4718,40 @@ /** * The length of the array. */ @@ -3086,7 +3098,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -4784,46 +4757,32 @@ +@@ -4784,46 +4760,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3138,7 +3150,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -4832,9 +4791,9 @@ +@@ -4832,9 +4794,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3149,7 +3161,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -4860,20 +4819,24 @@ +@@ -4860,20 +4822,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -3178,7 +3190,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4929,25 +4892,23 @@ +@@ -4929,25 +4895,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -3207,7 +3219,7 @@ Index: es5.d.ts } declare var Float32Array: Float32ArrayConstructor; -@@ -4985,20 +4946,24 @@ +@@ -4985,20 +4949,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -3236,7 +3248,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -5008,21 +4973,24 @@ +@@ -5008,21 +4976,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -3267,7 +3279,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -5030,13 +4998,12 @@ +@@ -5030,13 +5001,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -3284,7 +3296,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -5044,23 +5011,22 @@ +@@ -5044,23 +5014,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -3314,7 +3326,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -5088,50 +5054,40 @@ +@@ -5088,50 +5057,40 @@ /** * The length of the array. */ @@ -3378,7 +3390,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -5140,46 +5096,32 @@ +@@ -5140,46 +5099,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3430,7 +3442,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -5188,9 +5130,9 @@ +@@ -5188,9 +5133,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3441,7 +3453,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -5216,20 +5158,24 @@ +@@ -5216,20 +5161,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -3470,7 +3482,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -5285,25 +5231,23 @@ +@@ -5285,25 +5234,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -3499,7 +3511,7 @@ Index: es5.d.ts } declare var Float64Array: Float64ArrayConstructor; -@@ -5564,4 +5508,33 @@ +@@ -5564,4 +5511,33 @@ locales?: string | string[], options?: Intl.DateTimeFormatOptions, ): string; diff --git a/generated/lib.es5.d.ts b/generated/lib.es5.d.ts index 5ce722f..9fc6187 100644 --- a/generated/lib.es5.d.ts +++ b/generated/lib.es5.d.ts @@ -2239,8 +2239,15 @@ type Extract = T extends U ? T : never; /** * Construct a type with the properties of T except for those in type K. + * + * @deprecated Omit is known to have an undesired behavior. It is recommended to bring your own implementation or use a library. + * @see {@link https://github.com/microsoft/TypeScript/issues/54451} */ type Omit = Pick>; +// /** +// * Construct a type with the properties of T except for those in type K. +// */ +// type Omit = Pick>; /** * Exclude null and undefined from T diff --git a/lib/lib.es5.d.ts b/lib/lib.es5.d.ts index 4eea17d..21a5540 100644 --- a/lib/lib.es5.d.ts +++ b/lib/lib.es5.d.ts @@ -284,11 +284,14 @@ interface JSON { */ stringify( value: A, - replacer: (( - this: JSONComposite, - key: string, - value: ToJSON, - ) => JSONValueF) | null | undefined, + replacer: + | (( + this: JSONComposite, + key: string, + value: ToJSON, + ) => JSONValueF) + | null + | undefined, space?: string | number | null | undefined, ): string; /** @@ -299,11 +302,14 @@ interface JSON { */ stringify( value: A, - replacer: (( - this: JSONComposite, - key: string, - value: ToJSON, - ) => JSONValueF | undefined) | null | undefined, + replacer: + | (( + this: JSONComposite, + key: string, + value: ToJSON, + ) => JSONValueF | undefined) + | null + | undefined, space?: string | number | null | undefined, ): string | undefined; } @@ -832,3 +838,11 @@ interface TypedNumberArrayConstructor { thisArg?: This, ): TypedNumberArray; } + +/** + * Construct a type with the properties of T except for those in type K. + * + * @deprecated Omit is known to have an undesired behavior. It is recommended to bring your own implementation or use a library. + * @see {@link https://github.com/microsoft/TypeScript/issues/54451} + */ +type Omit = Pick>;