mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
moment: fixed test
This commit is contained in:
@@ -258,7 +258,7 @@ moment.lang('en', {
|
||||
});
|
||||
|
||||
moment.lang('en', {
|
||||
months : function (momentToFormat, format) {
|
||||
months : function (momentToFormat: Moment, format: string) {
|
||||
// momentToFormat is the moment currently being formatted
|
||||
// format is the formatting string
|
||||
if (/^MMMM/.test(format)) { // if the format starts with 'MMMM'
|
||||
@@ -277,7 +277,7 @@ moment.lang('en', {
|
||||
});
|
||||
|
||||
moment.lang('en', {
|
||||
monthsShort : function (momentToFormat, format) {
|
||||
monthsShort : function (momentToFormat: Moment, format: string) {
|
||||
if (/^MMMM/.test(format)) {
|
||||
return this.nominative[momentToFormat.month()];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user