Skip to content

Commit 2c5e16b

Browse files
Copilotjakebailey
andcommitted
Fix NumberRangeFormatPart to not extend NumberFormatPart
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
1 parent ad3bf4a commit 2c5e16b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/lib/es2023.intl.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ declare namespace Intl {
2929
trailingZeroDisplay: "auto" | "stripIfInteger";
3030
}
3131

32-
interface NumberRangeFormatPart extends NumberFormatPart {
32+
interface NumberRangeFormatPart {
3333
type: NumberFormatRangePartTypes;
34+
value: string;
3435
source: "startRange" | "endRange" | "shared";
3536
}
3637

tests/baselines/reference/intlNumberFormatES2023.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ const filtered = nf
169169
.map((part) => part.value)
170170
>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))
171171
>part : Symbol(part, Decl(intlNumberFormatES2023.ts, 41, 8))
172-
>part.value : Symbol(Intl.NumberFormatPart.value, Decl(lib.es2018.intl.d.ts, --, --))
172+
>part.value : Symbol(Intl.NumberRangeFormatPart.value, Decl(lib.es2023.intl.d.ts, --, --))
173173
>part : Symbol(part, Decl(intlNumberFormatES2023.ts, 41, 8))
174-
>value : Symbol(Intl.NumberFormatPart.value, Decl(lib.es2018.intl.d.ts, --, --))
174+
>value : Symbol(Intl.NumberRangeFormatPart.value, Decl(lib.es2023.intl.d.ts, --, --))
175175

176176
.join("");
177177
>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))

0 commit comments

Comments
 (0)