Skip to content

Commit

Permalink
Update with new toXxx method names
Browse files Browse the repository at this point in the history
- Convert all conversion methods to use new toXxx naming convention
- Fix Test262 tests broken by build changes in #715
  • Loading branch information
justingrant committed Jul 8, 2020
1 parent 0276d07 commit 5b55abc
Show file tree
Hide file tree
Showing 8 changed files with 440 additions and 148 deletions.
293 changes: 293 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions polyfill/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ export namespace Temporal {
other: Temporal.Absolute,
options?: DifferenceOptions<'days' | 'hours' | 'minutes' | 'seconds'>
): Temporal.Duration;
inTimeZone(tzLike: TimeZoneProtocol | string, calendar?: CalendarProtocol | string): Temporal.DateTime;
toLocalDateTime(tzLike: TimeZoneProtocol | string, calendar?: CalendarProtocol | string): Temporal.LocalDateTime;
toDateTime(tzLike: TimeZoneProtocol | string, calendar?: CalendarProtocol | string): Temporal.DateTime;
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
toJSON(): string;
toString(tzLike?: TimeZoneProtocol | string): string;
Expand Down Expand Up @@ -374,14 +374,14 @@ export namespace Temporal {
other: Temporal.Date,
options?: DifferenceOptions<'years' | 'months' | 'weeks' | 'days'>
): Temporal.Duration;
toDateTime(temporalTime: Temporal.Time): Temporal.DateTime;
toYearMonth(): Temporal.YearMonth;
toMonthDay(): Temporal.MonthDay;
toLocalDateTime(
tzLike: TimeZoneProtocol | string,
temporalTime: Temporal.Time,
options?: ToAbsoluteOptions
): Temporal.LocalDateTime;
toDateTime(temporalTime: Temporal.Time): Temporal.DateTime;
toYearMonth(): Temporal.YearMonth;
toMonthDay(): Temporal.MonthDay;
getFields(): DateFields;
getISOCalendarFields(): DateISOCalendarFields;
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
Expand Down
Loading

0 comments on commit 5b55abc

Please sign in to comment.