From d05a18b025fdf0bfc857b2bcc4158edaf9bb910a Mon Sep 17 00:00:00 2001 From: James Wright Date: Wed, 25 Jan 2023 13:13:49 -0800 Subject: [PATCH] Update d.ts file with new rounding modes. This was implemented in d450be195a81228d284777969bedd9e0475400bd, but the types were not updated to reflect the newly acceptable rounding modes. --- polyfill/index.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/polyfill/index.d.ts b/polyfill/index.d.ts index efe47c10a..585c81f20 100644 --- a/polyfill/index.d.ts +++ b/polyfill/index.d.ts @@ -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