mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-21 15:58:24 -05:00
Add missing source property to Intl formatRangeToParts methods (#48754)
This commit is contained in:
6
src/lib/es2021.intl.d.ts
vendored
6
src/lib/es2021.intl.d.ts
vendored
@@ -8,9 +8,13 @@ declare namespace Intl {
|
||||
fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined;
|
||||
}
|
||||
|
||||
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
|
||||
source: "startRange" | "endRange" | "shared"
|
||||
}
|
||||
|
||||
interface DateTimeFormat {
|
||||
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
|
||||
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeFormatPart[];
|
||||
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
|
||||
}
|
||||
|
||||
interface ResolvedDateTimeFormatOptions {
|
||||
|
||||
6
src/lib/esnext.intl.d.ts
vendored
6
src/lib/esnext.intl.d.ts
vendored
@@ -1,6 +1,10 @@
|
||||
declare namespace Intl {
|
||||
interface NumberRangeFormatPart extends NumberFormatPart {
|
||||
source: "startRange" | "endRange" | "shared"
|
||||
}
|
||||
|
||||
interface NumberFormat {
|
||||
formatRange(start: number | bigint, end: number | bigint): string;
|
||||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberFormatPart[];
|
||||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user