Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Added HTML5_FMT to moment.d.ts #4495

Merged
merged 2 commits into from Apr 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions moment.d.ts
Expand Up @@ -716,6 +716,19 @@ declare namespace moment {

export var defaultFormat: string;
export var defaultFormatUtc: string;

export var HTML5_FMT: {
DATETIME_LOCAL:string,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would guess that the styling here would need to be updated prior to it being approved for merging so that like the code above it, there should be a space after the colon and the type.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh good call. I have updated it.

DATETIME_LOCAL_SECONDS: string,
DATETIME_LOCAL_MS:string,
DATE:string,
TIME:string,
TIME_SECONDS:string,
TIME_MS:string,
WEEK:string,
MONTH:string
};

}

export = moment;