From 6d2d3d8e1dac4bc9416aa1d44c689e588e431de6 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Wed, 6 Mar 2024 08:23:34 +0100 Subject: [PATCH] DateTimeFormat: actually use dateTimePart, dateTimeRangePart (#200) --- 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"