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
Basarat Syed
2b8296e8c0
definition fix
2013-11-11 18:02:48 +11:00
gscshoyru
699f0b226b
Add definitions for new settable zone function
...
Moment.js version 2.1 added a new zone function which takes either a number or string and returns a Moment, see here: http://momentjs.com/docs/#/manipulating/timezone-offset/ . So the definitions for that function should be added to this file.
2013-10-16 13:32:46 -04:00
Derek Cicerone
690b190b09
Fix future bugs in moment.d.ts
...
The 'develop' version of the TypeScript compiler requires all generics to be fully specified. I believe these arrays should all be numbers: http://momentjs.com/docs/#/parsing/array/
2013-10-11 20:49:44 -04:00
Dick van den Brink
900b296299
Update moment.d.ts
...
Added isBefore/isAfter methods without parameters.
According to the documentation it will default to the current time.
see: http://momentjs.com/docs/#/query/is-before/
2013-08-21 21:09:42 +02:00
Ben Jackman
d262f719c0
moment: Fix for noImplicitAny errors.
...
Signed-off-by: Ben Jackman <ben@jackman.biz >
2013-08-16 00:54:14 -05:00
yutavsky
f9ceadde2a
fix some method type
2013-08-01 23:20:03 +09:00
benfo
0d28902919
Moment: Add a few more week related methods for version 2.1.0
2013-07-16 06:20:37 +02:00
benfo
93cd50d5bb
Moment: Add string overloads for month and day
2013-07-16 06:16:57 +02:00
benfo
917117d837
Moment: Update version number to 2.1.0
2013-07-16 05:32:17 +02:00
benfo
acbd1e812b
Moment: Add toISOString definition for version 2.1.0
2013-07-16 05:31:50 +02:00
benfo
875e949f45
Moment: Remove obsolete sod/eod function (Since 2.1.0)
2013-07-16 05:24:48 +02:00
Derek Cicerone
054918bf52
Update version number to 2.0.0
...
The isSame, isBefore, isAfter functions all appear to be new in 2.0.0.
2013-06-30 21:37:24 -04:00
Derek Cicerone
9f6176c717
Replace bool with boolean (for TypeScript 0.9.0+)
2013-06-29 17:32:44 -04:00
Aaron King
67f43af9b6
moment: added support for isBefore, isAfter, isSame
2013-06-25 16:52:24 -04:00
Sean Hill
04517266de
Add definitions for moment language customizations per issue #182 .
2013-02-15 15:27:12 -06:00
Sean Hill
dfb53f86ec
humanizeDuration is not in the definition file, so compilation fails.
...
Removing these since humanizeDuration has been deprecated/removed.
See https://github.com/timrwood/moment/pull/572
2013-02-15 14:49:12 -06:00
Tim McCall
ea17d0e626
Added more definitions for moment.js.
2013-01-18 13:22:52 -07:00
Boris Yankov
209d95071a
Update reference paths
2013-01-17 20:03:30 +02:00