@typescript/native-preview-darwin-x64 7.0.0-dev.20260629.1 → 7.0.0-dev.20260701.1
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.es2015.collection.d.ts +10 -1
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.symbol.d.ts +1 -1
- package/lib/lib.es2017.string.d.ts +20 -16
- package/lib/lib.es2020.intl.d.ts +5 -5
- package/lib/lib.es5.d.ts +5 -5
- package/lib/tsgo +0 -0
- package/package.json +2 -2
|
@@ -110,7 +110,7 @@ interface Set<T> {
|
|
|
110
110
|
*/
|
|
111
111
|
has(value: T): boolean;
|
|
112
112
|
/**
|
|
113
|
-
* @returns the number of (unique) elements in Set.
|
|
113
|
+
* @returns the number of (unique) elements in the Set.
|
|
114
114
|
*/
|
|
115
115
|
readonly size: number;
|
|
116
116
|
}
|
|
@@ -122,8 +122,17 @@ interface SetConstructor {
|
|
|
122
122
|
declare var Set: SetConstructor;
|
|
123
123
|
|
|
124
124
|
interface ReadonlySet<T> {
|
|
125
|
+
/**
|
|
126
|
+
* Executes a provided function once per each value in the ReadonlySet object, in insertion order.
|
|
127
|
+
*/
|
|
125
128
|
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
|
|
129
|
+
/**
|
|
130
|
+
* @returns a boolean indicating whether an element with the specified value exists in the Set or not.
|
|
131
|
+
*/
|
|
126
132
|
has(value: T): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* @returns the number of (unique) elements in the Set.
|
|
135
|
+
*/
|
|
127
136
|
readonly size: number;
|
|
128
137
|
}
|
|
129
138
|
|
package/lib/lib.es2015.core.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ interface Math {
|
|
|
110
110
|
imul(x: number, y: number): number;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Returns the sign of
|
|
113
|
+
* Returns the sign of x, indicating whether x is positive, negative, or zero.
|
|
114
114
|
* @param x The numeric expression to test
|
|
115
115
|
*/
|
|
116
116
|
sign(x: number): number;
|
|
@@ -35,7 +35,7 @@ interface SymbolConstructor {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Returns a key from the global symbol registry matching the given Symbol if found.
|
|
38
|
-
* Otherwise, returns
|
|
38
|
+
* Otherwise, returns undefined.
|
|
39
39
|
* @param sym Symbol to find the key for.
|
|
40
40
|
*/
|
|
41
41
|
keyFor(sym: symbol): string | undefined;
|
|
@@ -16,28 +16,32 @@ and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
interface String {
|
|
18
18
|
/**
|
|
19
|
-
* Pads the current string with a given string (
|
|
20
|
-
* The padding is applied from the start
|
|
19
|
+
* Pads the current string with a given string (repeated and/or truncated, if needed) so that the resulting string has a given length.
|
|
20
|
+
* The padding is applied from the start of the current string.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
|
|
22
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart)
|
|
24
23
|
*
|
|
25
|
-
* @param
|
|
26
|
-
* If
|
|
27
|
-
*
|
|
24
|
+
* @param targetLength The length of the resulting string once the current `str` has been padded.
|
|
25
|
+
* If the value is less than or equal to `str.length`, then `str` is returned as-is.
|
|
26
|
+
*
|
|
27
|
+
* @param padString The string to pad the current `str` with.
|
|
28
|
+
* If `padString` is too long to stay within `targetLength`, it will be truncated from the end.
|
|
29
|
+
* The default value is the space character (U+0020).
|
|
28
30
|
*/
|
|
29
|
-
padStart(
|
|
31
|
+
padStart(targetLength: number, padString?: string): string;
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
|
-
* Pads the current string with a given string (
|
|
33
|
-
* The padding is applied from the end
|
|
34
|
+
* Pads the current string with a given string (repeated and/or truncated, if needed) so that the resulting string has a given length.
|
|
35
|
+
* The padding is applied from the end of the current string.
|
|
36
|
+
*
|
|
37
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd)
|
|
34
38
|
*
|
|
35
|
-
* @param
|
|
36
|
-
* If
|
|
39
|
+
* @param targetLength The length of the resulting string once the current `str` has been padded.
|
|
40
|
+
* If the value is less than or equal to `str.length`, then `str` is returned as-is.
|
|
37
41
|
*
|
|
38
|
-
* @param
|
|
39
|
-
* If
|
|
40
|
-
* The default value
|
|
42
|
+
* @param padString The string to pad the current `str` with.
|
|
43
|
+
* If `padString` is too long to stay within `targetLength`, it will be truncated from the end.
|
|
44
|
+
* The default value is the space character (U+0020).
|
|
41
45
|
*/
|
|
42
|
-
padEnd(
|
|
46
|
+
padEnd(targetLength: number, padString?: string): string;
|
|
43
47
|
}
|
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -169,15 +169,15 @@ declare namespace Intl {
|
|
|
169
169
|
format(value: number, unit: RelativeTimeFormatUnit): string;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
|
|
173
173
|
*
|
|
174
|
-
*
|
|
174
|
+
* @param value - Numeric value to use in the internationalized relative time message
|
|
175
175
|
*
|
|
176
|
-
*
|
|
176
|
+
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
|
|
177
177
|
*
|
|
178
|
-
*
|
|
178
|
+
* @throws `RangeError` if `unit` was given something other than `unit` possible values
|
|
179
179
|
*
|
|
180
|
-
*
|
|
180
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
|
|
181
181
|
*/
|
|
182
182
|
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
|
|
183
183
|
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -416,8 +416,8 @@ interface String {
|
|
|
416
416
|
charAt(pos: number): string;
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
|
-
* Returns the Unicode value of the character at the specified location.
|
|
420
|
-
* @param index The zero-based index of the desired character.
|
|
419
|
+
* Returns the Unicode value of the character at the specified location, or NaN if the index is out of bounds.
|
|
420
|
+
* @param index The zero-based index of the desired character.
|
|
421
421
|
*/
|
|
422
422
|
charCodeAt(index: number): number;
|
|
423
423
|
|
|
@@ -563,19 +563,19 @@ interface Number {
|
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
565
|
* Returns a string representing a number in fixed-point notation.
|
|
566
|
-
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 -
|
|
566
|
+
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 100, inclusive.
|
|
567
567
|
*/
|
|
568
568
|
toFixed(fractionDigits?: number): string;
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* Returns a string containing a number represented in exponential notation.
|
|
572
|
-
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 -
|
|
572
|
+
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 100, inclusive.
|
|
573
573
|
*/
|
|
574
574
|
toExponential(fractionDigits?: number): string;
|
|
575
575
|
|
|
576
576
|
/**
|
|
577
577
|
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
|
|
578
|
-
* @param precision Number of significant digits. Must be in the range 1 -
|
|
578
|
+
* @param precision Number of significant digits. Must be in the range 1 - 100, inclusive.
|
|
579
579
|
*/
|
|
580
580
|
toPrecision(precision?: number): string;
|
|
581
581
|
|
package/lib/tsgo
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript/native-preview-darwin-x64",
|
|
3
|
-
"version": "7.0.0-dev.
|
|
3
|
+
"version": "7.0.0-dev.20260701.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Microsoft Corp.",
|
|
6
6
|
"homepage": "https://www.typescriptlang.org/",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"tinybench": "^6.0.2",
|
|
53
53
|
"vscode-jsonrpc": "^9.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "f6efaa9b3a52b261d03afdd498baf20c808eeb1e",
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public",
|
|
58
58
|
"tag": "latest"
|