Skip to content

Commit c748876

Browse files
fix: improve types so it is required to be defined but can be undefined
1 parent 97694ba commit c748876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Date/dateUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export function useInputFormat({
221221
locale,
222222
}: {
223223
formatter: Intl.DateTimeFormat
224-
locale?: string
224+
locale: string | undefined
225225
}) {
226226
return React.useMemo(() => {
227227
// TODO: something cleaner and more universal?

0 commit comments

Comments
 (0)