|
1 | 1 | temporal.ts(25,13): error TS2339: Property 'year' does not exist on type 'Instant'. |
2 | | -temporal.ts(72,54): error TS2345: Argument of type 'Date' is not assignable to parameter of type 'number'. |
3 | | -temporal.ts(1503,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
4 | | -temporal.ts(1513,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
5 | | -temporal.ts(1519,8): error TS2339: Property 'month' does not exist on type 'PlainMonthDay'. |
| 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'. |
6 | 5 |
|
7 | 6 |
|
8 | | -==== temporal.ts (5 errors) ==== |
| 7 | +==== temporal.ts (4 errors) ==== |
9 | 8 | /** |
10 | 9 | * Test cases derived from documentation at tc39/proposal-temporal, |
11 | 10 | * under the following license: |
@@ -79,9 +78,6 @@ temporal.ts(1519,8): error TS2339: Property 'month' does not exist on type 'Plai |
79 | 78 | const legacyDate = new Date("1995-12-17T03:24Z"); |
80 | 79 | let instant: Temporal.Instant; |
81 | 80 | instant = Temporal.Instant.fromEpochMilliseconds(legacyDate.getTime()); // => 1995-12-17T03:24:00Z |
82 | | - instant = Temporal.Instant.fromEpochMilliseconds(legacyDate); // valueOf() called implicitly |
83 | | - ~~~~~~~~~~ |
84 | | -!!! error TS2345: Argument of type 'Date' is not assignable to parameter of type 'number'. |
85 | 81 | instant = legacyDate.toTemporalInstant(); // recommended |
86 | 82 | } |
87 | 83 |
|
|
0 commit comments