Skip to content

Commit

Permalink
Update d.ts file with new rounding modes.
Browse files Browse the repository at this point in the history
This was implemented in d450be1, but
the types were not updated to reflect the newly acceptable rounding
modes.
  • Loading branch information
12wrigja authored and ptomato committed Jan 25, 2023
1 parent 6fb1052 commit d05a18b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion polyfill/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
export namespace Temporal {
export type ComparisonResult = -1 | 0 | 1;
export type RoundingMode = 'halfExpand' | 'ceil' | 'trunc' | 'floor';
export type RoundingMode =
| 'ceil'
| 'floor'
| 'expand'
| 'trunc'
| 'halfCeil'
| 'halfFloor'
| 'halfExpand'
| 'halfTrunc'
| 'halfEven';

/**
* Options for assigning fields using `with()` or entire objects with
Expand Down

0 comments on commit d05a18b

Please sign in to comment.