doy: number;
}
- type CalendarSpecVal = string | ((m?: Moment, now?: Moment) => string);
+ type CalendarSpecVal = string | ((m?: MomentInput, now?: Moment) => string);
interface CalendarSpec {
sameDay?: CalendarSpecVal;
nextDay?: CalendarSpecVal;
type LocaleSpecifier = string | Moment | Duration | string[] | boolean;
interface MomentCreationData {
- input: string;
- format: string;
+ input: MomentInput;
+ format?: MomentFormatSpecification;
locale: Locale;
isUTC: boolean;
- strict: boolean;
+ strict?: boolean;
}
interface Moment {
zone(b: number|string): Moment;
utcOffset(): number;
utcOffset(b: number|string, keepLocalTime?: boolean): Moment;
- isUTCOffset(): boolean;
+ isUtcOffset(): boolean;
daysInMonth(): number;
isDST(): boolean;