Skip to content

Commit d05a18b

Browse files
12wrigjaptomato
authored andcommitted
Update d.ts file with new rounding modes.
This was implemented in d450be1, but the types were not updated to reflect the newly acceptable rounding modes.
1 parent 6fb1052 commit d05a18b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

polyfill/index.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
export namespace Temporal {
22
export type ComparisonResult = -1 | 0 | 1;
3-
export type RoundingMode = 'halfExpand' | 'ceil' | 'trunc' | 'floor';
3+
export type RoundingMode =
4+
| 'ceil'
5+
| 'floor'
6+
| 'expand'
7+
| 'trunc'
8+
| 'halfCeil'
9+
| 'halfFloor'
10+
| 'halfExpand'
11+
| 'halfTrunc'
12+
| 'halfEven';
413

514
/**
615
* Options for assigning fields using `with()` or entire objects with

0 commit comments

Comments
 (0)