Commit 3a5e6c6
committed
Make TS happier with year/eraYear
This was originally part of tc39/proposal-temporal#1977
but I removed it because it wasn't high-priority for JS.
But it's still needed in this repo so I'm adding it back.
Why? TS complains when you assign a maybe-undefined
value to a must-not-be-undefined variable. This small
runtime change is cleaner than adding a lotta type casts.1 parent b4420ed commit 3a5e6c6
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | | - | |
1309 | | - | |
| 1308 | + | |
| 1309 | + | |
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
| |||
0 commit comments