Skip to content

Commit 5e98feb

Browse files
committed
Refactor out variable declarations from shadowing
1 parent e9119b0 commit 5e98feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/datepickers/src/elements/Datepicker/utils/datepicker-reducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function parseInputValue({
2727
customParseDate
2828
}: {
2929
inputValue: string;
30-
customParseDate?: (inputValue: string) => Date;
30+
customParseDate?: (value: string) => Date;
3131
}): Date {
3232
if (customParseDate) {
3333
return customParseDate(inputValue);
@@ -65,7 +65,7 @@ function formatInputValue({
6565
}: {
6666
date?: Date;
6767
locale: string;
68-
formatDate?: (date: Date) => string;
68+
formatDate?: (d: Date) => string;
6969
}) {
7070
if (!date) {
7171
return '';

0 commit comments

Comments
 (0)