Skip to content

Commit 3e5f235

Browse files
committed
Fix CalendarDate.local() not returning a CalendarDate
1 parent b205a72 commit 3e5f235

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/common/temporal/calendar-date.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class CalendarDate
105105
second: number,
106106
millisecond: number,
107107
opts?: DateTimeJSOptions,
108-
): DateTime;
108+
): CalendarDate;
109109
static local(
110110
year: number,
111111
month: number,
@@ -114,31 +114,35 @@ export class CalendarDate
114114
minute: number,
115115
second: number,
116116
opts?: DateTimeJSOptions,
117-
): DateTime;
117+
): CalendarDate;
118118
static local(
119119
year: number,
120120
month: number,
121121
day: number,
122122
hour: number,
123123
minute: number,
124124
opts?: DateTimeJSOptions,
125-
): DateTime;
125+
): CalendarDate;
126126
static local(
127127
year: number,
128128
month: number,
129129
day: number,
130130
hour: number,
131131
opts?: DateTimeJSOptions,
132-
): DateTime;
132+
): CalendarDate;
133133
static local(
134134
year: number,
135135
month: number,
136136
day: number,
137137
opts?: DateTimeJSOptions,
138-
): DateTime;
139-
static local(year: number, month: number, opts?: DateTimeJSOptions): DateTime;
140-
static local(year: number, opts?: DateTimeJSOptions): DateTime;
141-
static local(opts?: DateTimeJSOptions): DateTime;
138+
): CalendarDate;
139+
static local(
140+
year: number,
141+
month: number,
142+
opts?: DateTimeJSOptions,
143+
): CalendarDate;
144+
static local(year: number, opts?: DateTimeJSOptions): CalendarDate;
145+
static local(opts?: DateTimeJSOptions): CalendarDate;
142146
static local(...args: any) {
143147
const dt = super.local(...args);
144148
return CalendarDate.fromDateTime(dt);

0 commit comments

Comments
 (0)