"second" | "seconds" | "s" |
"millisecond" | "milliseconds" | "ms");
+ interface MomentCreationData {
+ input?: string;
+ format?: string;
+ locale?: MomentLocale;
+ isUTC: boolean;
+ strict: boolean;
+ }
+
+ interface MomentLocale {
+ // Details about the locale structure are not in the documentation so they are omitted here.
+ }
+
interface Moment {
format(format: string): string;
format(): string;
isValid(): boolean;
invalidAt(): number;
+ creationData(): MomentCreationData;
parsingFlags(): MomentParsingFlags;
year(y: number): Moment;