@typescript-deploys/pr-build 5.4.0-pr-56902-8 → 5.4.0-pr-56907-6

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.
@@ -55,22 +55,10 @@ declare namespace Intl {
55
55
 
56
56
  const PluralRules: PluralRulesConstructor;
57
57
 
58
- interface NumberFormatPartTypeRegistry {
59
- literal: any;
60
- nan: any;
61
- infinity: any;
62
- percent: any;
63
- integer: any;
64
- group: any;
65
- decimal: any;
66
- fraction: any;
67
- plusSign: any;
68
- minusSign: any;
69
- percentSign: any;
70
- currency: any;
71
- }
72
-
73
- type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry;
58
+ // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
59
+ type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
60
+ type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
61
+ type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
74
62
 
75
63
  interface NumberFormatPart {
76
64
  type: NumberFormatPartTypes;
@@ -723,5 +723,6 @@ interface DataView {
723
723
  declare namespace Intl {
724
724
  interface NumberFormat {
725
725
  format(value: number | bigint): string;
726
+ resolvedOptions(): ResolvedNumberFormatOptions;
726
727
  }
727
728
  }
@@ -241,49 +241,24 @@ declare namespace Intl {
241
241
  ): UnicodeBCP47LocaleIdentifier[];
242
242
  };
243
243
 
244
- interface NumberFormatOptionsStyleRegistry {
245
- unit: any;
246
- }
247
-
248
- interface NumberFormatOptionsCurrencyDisplayRegistry {
249
- narrowSymbol: any;
250
- }
251
-
252
- interface NumberFormatOptionsSignDisplayRegistry {
253
- auto: any;
254
- never: any;
255
- always: any;
256
- exceptZero: any;
257
- }
258
-
259
- type NumberFormatOptionsSignDisplay = keyof NumberFormatOptionsSignDisplayRegistry;
260
-
261
244
  interface NumberFormatOptions {
262
- numberingSystem?: string | undefined;
263
245
  compactDisplay?: "short" | "long" | undefined;
264
246
  notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
265
- signDisplay?: NumberFormatOptionsSignDisplay | undefined;
247
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
266
248
  unit?: string | undefined;
267
249
  unitDisplay?: "short" | "long" | "narrow" | undefined;
268
- currencySign?: "standard" | "accounting" | undefined;
250
+ currencyDisplay?: string | undefined;
251
+ currencySign?: string | undefined;
269
252
  }
270
253
 
271
254
  interface ResolvedNumberFormatOptions {
272
255
  compactDisplay?: "short" | "long";
273
- notation: "standard" | "scientific" | "engineering" | "compact";
274
- signDisplay: NumberFormatOptionsSignDisplay;
256
+ notation?: "standard" | "scientific" | "engineering" | "compact";
257
+ signDisplay?: "auto" | "never" | "always" | "exceptZero";
275
258
  unit?: string;
276
259
  unitDisplay?: "short" | "long" | "narrow";
277
- currencySign?: "standard" | "accounting";
278
- }
279
-
280
- interface NumberFormatPartTypeRegistry {
281
- compact: any;
282
- exponentInteger: any;
283
- exponentMinusSign: any;
284
- exponentSeparator: any;
285
- unit: any;
286
- unknown: any;
260
+ currencyDisplay?: string;
261
+ currencySign?: string;
287
262
  }
288
263
 
289
264
  interface DateTimeFormatOptions {
@@ -19,4 +19,3 @@ and limitations under the License.
19
19
  /// <reference lib="es2022" />
20
20
  /// <reference lib="es2023.array" />
21
21
  /// <reference lib="es2023.collection" />
22
- /// <reference lib="es2023.intl" />
package/lib/lib.es5.d.ts CHANGED
@@ -4427,33 +4427,12 @@ declare namespace Intl {
4427
4427
 
4428
4428
  var Collator: CollatorConstructor;
4429
4429
 
4430
- interface NumberFormatOptionsStyleRegistry {
4431
- decimal: any;
4432
- percent: any;
4433
- currency: any;
4434
- }
4435
-
4436
- type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;
4437
-
4438
- interface NumberFormatOptionsCurrencyDisplayRegistry {
4439
- code: any;
4440
- symbol: any;
4441
- name: any;
4442
- }
4443
-
4444
- type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;
4445
-
4446
- interface NumberFormatOptionsUseGroupingRegistry {}
4447
-
4448
- type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;
4449
- type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;
4450
-
4451
4430
  interface NumberFormatOptions {
4452
- localeMatcher?: "lookup" | "best fit" | undefined;
4453
- style?: NumberFormatOptionsStyle | undefined;
4431
+ localeMatcher?: string | undefined;
4432
+ style?: string | undefined;
4454
4433
  currency?: string | undefined;
4455
- currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;
4456
- useGrouping?: NumberFormatOptionsUseGrouping | undefined;
4434
+ currencySign?: string | undefined;
4435
+ useGrouping?: boolean | undefined;
4457
4436
  minimumIntegerDigits?: number | undefined;
4458
4437
  minimumFractionDigits?: number | undefined;
4459
4438
  maximumFractionDigits?: number | undefined;
@@ -4464,15 +4443,14 @@ declare namespace Intl {
4464
4443
  interface ResolvedNumberFormatOptions {
4465
4444
  locale: string;
4466
4445
  numberingSystem: string;
4467
- style: NumberFormatOptionsStyle;
4446
+ style: string;
4468
4447
  currency?: string;
4469
- currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
4470
4448
  minimumIntegerDigits: number;
4471
4449
  minimumFractionDigits: number;
4472
4450
  maximumFractionDigits: number;
4473
4451
  minimumSignificantDigits?: number;
4474
4452
  maximumSignificantDigits?: number;
4475
- useGrouping: ResolvedNumberFormatOptionsUseGrouping;
4453
+ useGrouping: boolean;
4476
4454
  }
4477
4455
 
4478
4456
  interface NumberFormat {
@@ -17,5 +17,12 @@ and limitations under the License.
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
19
  declare namespace Intl {
20
- // Empty
20
+ interface NumberRangeFormatPart extends NumberFormatPart {
21
+ source: "startRange" | "endRange" | "shared";
22
+ }
23
+
24
+ interface NumberFormat {
25
+ formatRange(start: number | bigint, end: number | bigint): string;
26
+ formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
27
+ }
21
28
  }
package/lib/tsc.js CHANGED
@@ -34076,7 +34076,6 @@ var libEntries = [
34076
34076
  ["es2022.regexp", "lib.es2022.regexp.d.ts"],
34077
34077
  ["es2023.array", "lib.es2023.array.d.ts"],
34078
34078
  ["es2023.collection", "lib.es2023.collection.d.ts"],
34079
- ["es2023.intl", "lib.es2023.intl.d.ts"],
34080
34079
  ["esnext.array", "lib.es2023.array.d.ts"],
34081
34080
  ["esnext.collection", "lib.es2023.collection.d.ts"],
34082
34081
  ["esnext.symbol", "lib.es2019.symbol.d.ts"],
@@ -55653,7 +55652,7 @@ function createTypeChecker(host) {
55653
55652
  let hasThisParameter = false;
55654
55653
  const iife = getImmediatelyInvokedFunctionExpression(declaration);
55655
55654
  const isJSConstructSignature = isJSDocConstructSignature(declaration);
55656
- const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
55655
+ const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
55657
55656
  if (isUntypedSignatureInJSFile) {
55658
55657
  flags |= 32 /* IsUntypedSignatureInJSFile */;
55659
55658
  }
package/lib/tsserver.js CHANGED
@@ -38504,7 +38504,6 @@ var libEntries = [
38504
38504
  ["es2022.regexp", "lib.es2022.regexp.d.ts"],
38505
38505
  ["es2023.array", "lib.es2023.array.d.ts"],
38506
38506
  ["es2023.collection", "lib.es2023.collection.d.ts"],
38507
- ["es2023.intl", "lib.es2023.intl.d.ts"],
38508
38507
  ["esnext.array", "lib.es2023.array.d.ts"],
38509
38508
  ["esnext.collection", "lib.es2023.collection.d.ts"],
38510
38509
  ["esnext.symbol", "lib.es2019.symbol.d.ts"],
@@ -60381,7 +60380,7 @@ function createTypeChecker(host) {
60381
60380
  let hasThisParameter2 = false;
60382
60381
  const iife = getImmediatelyInvokedFunctionExpression(declaration);
60383
60382
  const isJSConstructSignature = isJSDocConstructSignature(declaration);
60384
- const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
60383
+ const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
60385
60384
  if (isUntypedSignatureInJSFile) {
60386
60385
  flags |= 32 /* IsUntypedSignatureInJSFile */;
60387
60386
  }
package/lib/typescript.js CHANGED
@@ -37998,7 +37998,6 @@ ${lanes.join("\n")}
37998
37998
  ["es2022.regexp", "lib.es2022.regexp.d.ts"],
37999
37999
  ["es2023.array", "lib.es2023.array.d.ts"],
38000
38000
  ["es2023.collection", "lib.es2023.collection.d.ts"],
38001
- ["es2023.intl", "lib.es2023.intl.d.ts"],
38002
38001
  ["esnext.array", "lib.es2023.array.d.ts"],
38003
38002
  ["esnext.collection", "lib.es2023.collection.d.ts"],
38004
38003
  ["esnext.symbol", "lib.es2019.symbol.d.ts"],
@@ -58135,7 +58134,7 @@ ${lanes.join("\n")}
58135
58134
  let hasThisParameter2 = false;
58136
58135
  const iife = getImmediatelyInvokedFunctionExpression(declaration);
58137
58136
  const isJSConstructSignature = isJSDocConstructSignature(declaration);
58138
- const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
58137
+ const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
58139
58138
  if (isUntypedSignatureInJSFile) {
58140
58139
  flags |= 32 /* IsUntypedSignatureInJSFile */;
58141
58140
  }
@@ -25932,7 +25932,6 @@ var libEntries = [
25932
25932
  ["es2022.regexp", "lib.es2022.regexp.d.ts"],
25933
25933
  ["es2023.array", "lib.es2023.array.d.ts"],
25934
25934
  ["es2023.collection", "lib.es2023.collection.d.ts"],
25935
- ["es2023.intl", "lib.es2023.intl.d.ts"],
25936
25935
  ["esnext.array", "lib.es2023.array.d.ts"],
25937
25936
  ["esnext.collection", "lib.es2023.collection.d.ts"],
25938
25937
  ["esnext.symbol", "lib.es2019.symbol.d.ts"],
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.4.0-pr-56902-8",
5
+ "version": "5.4.0-pr-56907-6",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "c379e13d533fa68cb366a822ad8455adfaf63ba7"
117
+ "gitHead": "7b4764f94bcf7c612b152c1231f62d5b2c8c983a"
118
118
  }
@@ -1,52 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- declare namespace Intl {
20
- interface NumberFormatOptionsUseGroupingRegistry {
21
- min2: any;
22
- auto: any;
23
- always: any;
24
- }
25
-
26
- interface NumberFormatOptionsSignDisplayRegistry {
27
- negative: any;
28
- }
29
-
30
- interface NumberFormatOptions {
31
- roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined;
32
- roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined;
33
- roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
34
- trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined;
35
- }
36
-
37
- interface ResolvedNumberFormatOptions {
38
- roundingPriority: "auto" | "morePrecision" | "lessPrecision";
39
- roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
40
- roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;
41
- trailingZeroDisplay: "auto" | "stripIfInteger";
42
- }
43
-
44
- interface NumberRangeFormatPart extends NumberFormatPart {
45
- source: "startRange" | "endRange" | "shared";
46
- }
47
-
48
- interface NumberFormat {
49
- formatRange(start: number | bigint, end: number | bigint): string;
50
- formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
51
- }
52
- }