Skip to content

Commit

Permalink
Update Types definition for locale (gpbl#828)
Browse files Browse the repository at this point in the history
Every `locale` has `en` as the default value so they're optional.
  • Loading branch information
lukyth authored and gpbl committed Feb 21, 2019
1 parent 0e75e49 commit f46decf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions types/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f46decf

Please sign in to comment.