diff --git a/types/utils.d.ts b/types/utils.d.ts index 42b903ea3d..33b9f4d4ad 100644 --- a/types/utils.d.ts +++ b/types/utils.d.ts @@ -3,13 +3,13 @@ import { RangeModifier, Modifier } from "./common"; export interface LocaleUtils { - formatDay(day: Date, locale: string): string; - formatMonthTitle(month: Date, locale: string): string; - formatWeekdayLong(weekday: number, locale: string): string; - formatWeekdayShort(weekday: number, locale: string): string; - getFirstDayOfWeek(locale: string): number; + formatDay(day: Date, locale?: string): string; + formatMonthTitle(month: Date, locale?: string): string; + formatWeekdayLong(weekday: number, locale?: string): string; + formatWeekdayShort(weekday: number, locale?: string): string; + getFirstDayOfWeek(locale?: string): number; getMonths( - locale: string + locale?: string ): [ string, string,