71 Commits
Author SHA1 Message Date
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
Basarat Syed 22e4f4f542 momentjs : fix external module definition + added tests 2014-03-26 16:20:28 +11:00
Basarat Ali Syed 626cdd625f momentjs update
* fixed indentation
* added property "version"
* using MomentStatic to be consistent with other definitions
2014-03-22 13:07:10 +11:00
SomaticIT b875f439c4 Add moment amd definition (require shim) 2014-02-21 01:04:46 +01:00
Bartvds 5d95684e19 added/fixed headers k-n
https://github.com/borisyankov/DefinitelyTyped/issues/1570
2014-01-24 01:19:01 +01:00
mattbrooks2010 65f91dff3e Added missing moment and moment.utc overloads.
- Added moment(string, string?, boolean?) overload for specifying date,
format and strict parsing flag.

- Added moment(string, string?, string?, boolean?) overload for
specifying date, format, language and strict parsing flag.

- Added moment(string, string[], boolean?) overload for specifying date,
multiple formats and strict parsing flag.

- Added moment(string, string[], string?, boolean?) overload for
specifying date, multiple formats, language and strict parsing flag.

- Modified parameter names for moment.utc(...) methods to match those
for the similar moment(...) method overloads.

- Ensured all moment(...) methods have a moment.utc(...) equivalent.

- Added tests for all newly added overloads.

- Added missing tests for some existing overloads.
2014-01-21 17:05:25 +00:00
Horiuchi_H 09776db7ff add get quater method 2014-01-16 12:37:59 +09:00
Igor Oleinikov 32797d6a56 moment: fixed test again 2013-12-19 00:37:19 +04:00
Igor Oleinikov c50db1735b moment: fixed test 2013-12-18 21:27:57 +04:00
Michal Kutil 10227c6540 Moment: Added definitions for Week 2013-12-06 16:41:59 +01:00
Natan Vivo c85243194d Fixes 'Generic type references must include all type arguments.' for moment.d.ts. 2013-11-20 08:31:37 -02:00
basarat 38a87ca4d2 momentjs: fix tests 2013-11-14 20:03:16 +11:00
Aaron King 0f4f5d607d Expanded static methods for 2.4.0 2013-11-14 02:07:20 -05:00
Aaron King 0ebffd7f25 Added any return type to static methods that were implictly any. 2013-11-13 23:19:58 -05:00
Aaron King 5bbd4398c4 moment: added min 2013-11-13 21:49:56 -05:00
Aaron King ef5c990573 Updated file header 2013-11-13 20:41:40 -05:00
Aaron King 20184cf64a moment: Added support for 2.4.0 features 2013-11-13 20:37:16 -05:00