diff --git a/datetime/week_of_year.ts b/datetime/week_of_year.ts index 3700e47aef32..731b26abb344 100644 --- a/datetime/week_of_year.ts +++ b/datetime/week_of_year.ts @@ -5,15 +5,15 @@ import { DAY, WEEK } from "./constants.ts"; const DAYS_PER_WEEK = 7; -enum Day { - Sun, - Mon, - Tue, - Wed, - Thu, - Fri, - Sat, -} +const Day = { + Sun: 0, + Mon: 1, + Tue: 2, + Wed: 3, + Thu: 4, + Fri: 5, + Sat: 6, +} as const; /** * Returns the ISO week number of the provided date (1-53).