Skip to content

Commit 86bfb6a

Browse files
committed
Remove mutability
1 parent bd3a1ea commit 86bfb6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/datetime/weekday.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type WeekdayLong =
1818
| "friday"
1919
| "saturday";
2020

21-
export const WEEKDAYS_SHORT: WeekdayShort[] = [
21+
export const WEEKDAYS_SHORT = [
2222
"sun",
2323
"mon",
2424
"tue",
@@ -28,7 +28,7 @@ export const WEEKDAYS_SHORT: WeekdayShort[] = [
2828
"sat",
2929
] as const;
3030

31-
export const WEEKDAYS_LONG: WeekdayLong[] = [
31+
export const WEEKDAYS_LONG = [
3232
"sunday",
3333
"monday",
3434
"tuesday",
@@ -46,7 +46,7 @@ export const WEEKDAY_MAP: Record<WeekdayIndex, WeekdayShort> = {
4646
4: "thu",
4747
5: "fri",
4848
6: "sat",
49-
};
49+
} as const;
5050

5151
export const WEEKDAY_SHORT_TO_LONG: Record<WeekdayShort, WeekdayLong> = {
5252
sun: "sunday",
@@ -56,4 +56,4 @@ export const WEEKDAY_SHORT_TO_LONG: Record<WeekdayShort, WeekdayLong> = {
5656
thu: "thursday",
5757
fri: "friday",
5858
sat: "saturday",
59-
};
59+
} as const;

0 commit comments

Comments
 (0)