File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -258,15 +258,15 @@ export namespace Temporal {
258
258
* `smallestUnit` property value is that string.
259
259
*/
260
260
export type RoundTo < T extends DateTimeUnit > =
261
- | T
261
+ | SmallestUnit < T >
262
262
| {
263
263
/**
264
264
* The unit to round to. For example, to round to the nearest minute,
265
265
* use `smallestUnit: 'minute'`. This option is required. Note that the
266
266
* same-named property is optional when passed to `until` or `since`
267
267
* methods, because those methods do no rounding by default.
268
268
*/
269
- smallestUnit : T ;
269
+ smallestUnit : SmallestUnit < T > ;
270
270
271
271
/**
272
272
* Allows rounding to an integer number of units. For example, to round to
@@ -301,7 +301,7 @@ export namespace Temporal {
301
301
* object whose `smallestUnit` property value is that string.
302
302
*/
303
303
export type DurationRoundTo =
304
- | DateTimeUnit
304
+ | SmallestUnit < DateTimeUnit >
305
305
| ( (
306
306
| {
307
307
/**
@@ -421,7 +421,7 @@ export namespace Temporal {
421
421
* Options to control behavior of `Duration.prototype.total()`
422
422
*/
423
423
export type DurationTotalOf =
424
- | DateTimeUnit
424
+ | TotalUnit < DateTimeUnit >
425
425
| {
426
426
/**
427
427
* The unit to convert the duration to. This option is required.
You can’t perform that action at this time.
0 commit comments