Skip to content

Commit

Permalink
DateTimeFormat: actually use dateTimePart, dateTimeRangePart
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Mar 4, 2024
1 parent d664fe2 commit 7017f4f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/intl/Core__Intl__DateTimeFormat.res
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ external supportedLocalesOf: (array<string>, ~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<dateTimePart> = "formatToParts"

@send
external formatRange: (t, ~startDate: Core__Date.t, ~endDate: Core__Date.t) => string =
Expand All @@ -127,8 +126,4 @@ external formatRangeToParts: (
t,
~startDate: Core__Date.t,
~endDate: Core__Date.t,
) => array<{
"type": string,
"value": string,
"source": string,
}> = "formatRangeToParts"
) => array<dateTimeRangePart> = "formatRangeToParts"

0 comments on commit 7017f4f

Please sign in to comment.