From 7017f4fd32ecd107189410da23a3f2bf5b02c774 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Mon, 4 Mar 2024 09:38:26 +0100 Subject: [PATCH] DateTimeFormat: actually use dateTimePart, dateTimeRangePart --- src/intl/Core__Intl__DateTimeFormat.res | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/intl/Core__Intl__DateTimeFormat.res b/src/intl/Core__Intl__DateTimeFormat.res index 1ec24b29..1b9cec98 100644 --- a/src/intl/Core__Intl__DateTimeFormat.res +++ b/src/intl/Core__Intl__DateTimeFormat.res @@ -115,8 +115,7 @@ external supportedLocalesOf: (array, ~options: supportedLocalesOptions=? @send external format: (t, Core__Date.t) => string = "format" @send -external formatToParts: (t, Core__Date.t) => array<{"type": string, "value": string}> = - "formatToParts" +external formatToParts: (t, Core__Date.t) => array = "formatToParts" @send external formatRange: (t, ~startDate: Core__Date.t, ~endDate: Core__Date.t) => string = @@ -127,8 +126,4 @@ external formatRangeToParts: ( t, ~startDate: Core__Date.t, ~endDate: Core__Date.t, -) => array<{ - "type": string, - "value": string, - "source": string, -}> = "formatRangeToParts" +) => array = "formatRangeToParts"