Skip to content

Commit

Permalink
Update for latest temporal changes (might be reverted)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored and bartlomieju committed Jun 24, 2024
1 parent eb74ff7 commit 225496c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/es2020.intl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 269,7 @@ declare namespace Intl {
}

interface DateTimeFormatOptions {
calendar?: string | undefined;
calendar?: string | (typeof globalThis extends { Temporal: { CalendarProtocol: infer T; }; } ? T : undefined) | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
numberingSystem?: string | undefined;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4490,7 4490,7 @@ declare namespace Intl {
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
timeZone?: string | undefined;
timeZone?: string | (typeof globalThis extends { Temporal: { TimeZoneProtocol: infer T; }; } ? T : undefined) | undefined;
}

interface ResolvedDateTimeFormatOptions {
Expand Down

0 comments on commit 225496c

Please sign in to comment.