Commit Graph

87 Commits

Author SHA1 Message Date
Horiuchi_H
06b1fc9d8a Merge pull request #6268 from cprecioso/patch-2
[moment] Accept MomentInput for moment().set()
2015-10-14 10:47:08 +09:00
Carlos Precioso
a63be38549 [moment] Accept MomentInput for moment().set()
As per http://momentjs.com/docs/#/get-set/set/
2015-10-13 15:25:00 +02:00
Carlos Precioso
c8644a8b63 [moment] Min and max use rest arguments 2015-10-13 12:53:03 +02:00
Masahiro Wakame
03d1533e2f Merge pull request #6160 from optical/moment-weeks
Add missing weeks properties to momentInput interface #6044
2015-10-07 02:18:11 +09:00
Masahiro Wakame
f84e4df929 Merge pull request #6101 from deejross/issue-6062
Add toNow() definition to Moment to resolve issue #6062
2015-10-06 21:37:37 +09:00
unknown
fa8955719b Add missing weeks properties to momentInput interface #6044 2015-10-06 22:31:50 +13:00
Ross Peoples
257df550d0 Add toNow() definition to Moment to resolve issue #6062 2015-10-02 09:48:50 -05:00
Tom Hasner
5069bc651c Moment#calendar accepts a format argument of type Calendar
`Calendar` format strings are optional. They can also be functions.
2015-09-18 01:01:55 -04:00
zgmnkv
0871a4a597 Added 'defaultFormat' to Moment.js definition 2015-08-22 13:07:42 +04:00
Horiuchi_H
5f62ffae63 Merge pull request #5316 from slavomirvojacek/patch-3
Update moment-node.d.ts
2015-08-12 13:00:54 +09:00
Slavo Vojacek
18e75c5f19 Update moment-node.d.ts 2015-08-11 15:01:36 +01:00
Slavo Vojacek
a8310cd918 Update moment-node.d.ts
According to http://momentjs.com/docs/#/parsing/is-valid/, there is a invalidAt() method, which is missing in this definition file.

Source: https://github.com/moment/moment/blob/develop/src/lib/moment/valid.js#L13

Thanks,
2015-08-11 14:54:33 +01:00
Matt Brooks
b090bcf9ba Add prototype accessor moment.fn
The `Moment` prototype is exposed through `moment.fn`.
2015-08-10 15:00:21 +01:00
Daniel Rosenwasser
e3f6e0504a Prevent more people from going insane after forgetting that 'month' needs to be differentiated from 'minute'. 2015-08-03 23:12:38 -07:00
Daniel Rosenwasser
f07c2de56c Remove weeks from 'moment'. 2015-08-03 23:10:32 -07:00
Daniel Rosenwasser
902d293a34 Singulars for 'moment-node'. 2015-08-03 23:09:59 -07:00
Masahiro Wakame
aca3bbc63f Merge pull request #4474 from rvl/master
moment: Extra methods for 2.9.0
2015-07-19 22:43:39 +09:00
Rodney Lorrimar
6f0bcac0ca Revert "moment: Use type alias for moment-like parameters"
This reverts commit 8f9ff607f0 which fails
to compile on typescript@1.4.1 (however it compiles with
typescript@1.5.0-beta).
2015-06-23 13:00:22 +08:00
Matthias Bussonnier
4e5e52edca [moment]: relativeTimeThreshold can be a getter fix signature. 2015-06-10 10:16:16 -07:00
Rodney Lorrimar
8f9ff607f0 moment: Use type alias for moment-like parameters 2015-06-06 16:26:00 +08:00
Rodney Lorrimar
8064aa89b0 moment: Use type union for methods with moment-like parameters 2015-06-02 15:33:07 +08:00
Rodney Lorrimar
dbbc90296b moment: Tests for 2.9.0 methods 2015-06-02 15:33:07 +08:00
Rodney Lorrimar
ab71290650 moment: Include some methods which were added in 2.9.0 2015-06-02 12:12:52 +08:00
Dmitry Radkovskiy
a1575b96ec Modified moment.d.ts to use moment-node.d.ts 2015-05-28 00:46:21 +03:00
Dmitry Radkovskiy
0f894228df Moved declarations to moment-node.d.ts 2015-05-28 00:43:38 +03:00
Danyil Bohdan
ecc3f26f9c Add missing typing for utcOffset for Moment 2015-05-21 12:58:12 +03:00
Harel M
821768c1d9 Added comments for usage. 2015-05-09 02:53:35 +03:00
Harel M
3db27f0349 Update get language data 2015-05-08 17:18:30 +03:00
Harel M
36e3c3b7c9 Changed property of longDateFormat to function 2015-05-06 18:07:26 +03:00
Ben Duffield
bb81c937ca Add toArray to moment 2015-02-27 05:59:50 -08:00
laszlojakab
2fb1302479 toJSON() added 2015-02-24 09:24:16 +01:00
apathytomorrow
0019e204e8 Update moment.d.ts 2015-01-28 15:28:45 +00:00
apathytomorrow
3fdfa45029 Added IsDuration tests 2015-01-28 15:27:34 +00:00
apathytomorrow
b9318019f8 Addd isDuration tests 2015-01-28 15:26:47 +00:00
Jiawei Li
886497fa30 moment: expose interfaces
enables type annotations for files using moment definitions as an
external module
2015-01-09 18:21:45 -08:00
Malesh
f4f86328d1 add dayOfYear methods for moment.js 2014-12-15 09:26:46 +08:00
Nicolas Mehlei
f171dd3fcd added singular methods for Moment
methods: hour, minute, second and millisecond
2014-11-14 18:28:52 +01:00
Nicolas Mehlei
07933d7f8b added missing Duration methods 2014-11-14 18:22:12 +01:00
5angel
06e296bd63 local locale settings
added definitions for setting locale on a Moment instance
2014-10-15 13:14:26 +04:00
Tobias Bengfort
dde8ea1a3f Strip Whitespace 2014-09-24 12:22:32 +02:00
Tobias Bengfort
fa35d205ef fix locale/localeData definitions
I am not entirely sure about this. But this is how I understand the
docs.

See http://momentjs.com/docs/#/i18n/
2014-09-24 12:20:27 +02:00
Tobias Bengfort
b33c9ec8a7 add missing external test
these tests existed in moment-tests.ts but were missing in
moment-external-tests.ts
2014-09-24 12:19:31 +02:00
Adi Dahiya
29fdcb4a11 Update moment.js definitions for ISO-8601 format parsing in v2.7.0
Adds typings for functionality introduced here:
https://github.com/moment/moment/pull/1693
2014-09-15 16:08:26 -04:00
Adi Dahiya
1a821f7d19 Update moment.js definitions to 2.8.0
* Update methods for changes up to 2.8.0
* Clean up some whitespace
* Improve some documentation
2014-09-12 17:40:16 -04:00
Basarat Ali Syed
88285f8107 Merge pull request #2697 from kant2002/fix-moment-humanize
Updated definition for the Duration.humanize
2014-08-21 21:57:54 +10:00
Andrey Kurdyumov
d5bf84fdb8 Updated definition for the Duration.humanize
See the docs there http://momentjs.com/docs/#/durations/humanize/
2014-08-21 17:43:47 +06:00
Dick van den Brink
56bb95a532 MomentJs: Fixed some return values and made parameters optional 2014-08-04 10:48:11 +02:00
John Reilly
8ad485ea27 Add extra add overloads 2014-06-20 14:08:30 +01:00
Bart van der Schoor
1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
Diullei Gomes
11bc968399 issue #2033 - subtract method added to Duration type 2014-04-20 00:33:25 -03:00