|
1 | 1 | temporal.ts(25,13): error TS2339: Property 'year' does not exist on type 'Instant'. |
2 | | -temporal.ts(1502,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
3 | | -temporal.ts(1512,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
4 | | -temporal.ts(1518,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
| 2 | +temporal.ts(1504,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
| 3 | +temporal.ts(1514,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
| 4 | +temporal.ts(1520,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
5 | 5 |
|
6 | 6 |
|
7 | 7 | ==== temporal.ts (4 errors) ==== |
@@ -1503,6 +1503,8 @@ temporal.ts(1518,8): error TS2339: Property 'month' does not exist on type 'Plai |
1503 | 1503 | // => 1970-02-21[u-ca=hebrew] |
1504 | 1504 | md = Temporal.PlainMonthDay.from({ month: 6, day: 15, year: 5779, calendar: "hebrew" }); |
1505 | 1505 | // => 1970-02-21[u-ca=hebrew] |
| 1506 | + md = Temporal.PlainMonthDay.from({ month: 6, day: 15, era: "am", eraYear: 5779, calendar: "hebrew" }); |
| 1507 | + // => 1970-02-21[u-ca=hebrew] |
1506 | 1508 | /* WRONG */ md = Temporal.PlainMonthDay.from({ month: 6, day: 15, calendar: "hebrew" }); |
1507 | 1509 | // => throws (either year or monthCode is required) |
1508 | 1510 | md = Temporal.PlainMonthDay.from("2019-02-20[u-ca=hebrew]"); |
|
0 commit comments