Sean Kelley 1ec036686e Make moment's typings for parsing stricter and also allow them to accept union types.
These changes do two things.

1. Replace very lax typings like `any[]` with stricter, more-correct versions. In particular,
the ISO_8601 constant, while /technically/ a void function, is actually an opaque sentinel
that a consumer should not know anything about it. The function type was replaced with a
sentinel type using the principle of "brands" that can be seen in the Typescript compiler:
https://github.com/Microsoft/TypeScript/blob/413d9a639f933df7539070b236c1677de8302a93/src/compiler/types.ts#L9

2. Replace the many overloads of the parsing methods with a smaller representative set that
uses union types instead. Aside from succinctness, this allows callers to provide a union
type as the argument, as long as it matches, which was not possible before (Typescript does
not explode the union type to see if overloads cover all the possibilities).
2016-03-29 15:03:48 -07:00
…
2016-03-26 01:47:55 -07:00
2016-03-17 15:13:35 +00:00
2016-03-18 07:25:08 -07:00
2016-02-20 03:15:34 -05:00
2016-02-29 15:19:45 -08:00
2016-02-15 07:09:27 -03:00
2016-01-17 14:05:25 +01:00
2016-03-09 16:07:06 -08:00
…
2016-03-18 13:37:27 +05:30
2016-03-16 16:44:21 -07:00
2016-02-16 13:32:52 +10:30
2016-03-15 17:23:30 -04:00
2016-03-22 12:58:42 +09:00
2016-03-20 01:46:42 +09:00
2016-03-26 02:11:24 +01:00
2016-03-28 09:28:02 -05:00
2016-02-23 17:56:02 +01:00
2016-03-17 02:18:10 +09:00
2016-02-10 18:08:29 +09:00
2016-03-17 02:18:10 +09:00
2016-03-24 17:18:20 +07:00
2016-03-14 18:48:30 -07:00
2016-03-19 20:16:07 +09:00
2016-01-14 22:12:44 +01:00
…
2016-01-25 21:42:09 +02:00
2016-02-17 15:35:51 +00:00
2016-01-08 21:29:18 +00:00
2016-02-09 17:08:23 +01:00
2016-03-23 20:59:18 +01:00
2016-02-20 21:46:17 +10:00
2016-02-06 15:45:06 +01:00
2016-03-16 22:28:45 -07:00
2016-03-22 03:12:47 +02:00
2016-01-30 19:56:32 +01:00
2016-03-20 01:43:54 +09:00
2016-03-22 00:33:08 +01:00
2016-03-17 17:26:29 +08:00
2016-01-29 22:39:29 +09:00
2016-02-16 01:20:30 +09:00
2016-02-04 07:43:04 -08:00
2016-03-18 09:03:19 -05:00
2016-01-12 14:10:24 +01:00
2016-03-17 02:18:10 +09:00
2016-02-23 13:46:46 +01:00
2016-03-15 14:34:20 +08:00
2016-01-15 11:53:31 +08:00
…
2016-03-21 16:52:08 +09:00
2016-02-01 16:25:42 +08:00
2016-03-20 01:08:31 +09:00
2016-03-24 00:17:44 +09:00
2016-03-17 02:18:10 +09:00
2016-03-17 02:18:10 +09:00
2016-03-22 13:55:45 +01:00
2016-02-01 20:41:41 +00:00
2016-03-24 09:32:41 -07:00
2016-01-27 19:56:25 +09:00
2016-03-12 09:13:02 -08:00
2016-01-29 13:37:41 -05:00
2016-02-16 01:20:30 +09:00
2016-03-19 20:16:07 +09:00
2016-02-27 11:45:39 +09:00
…
2016-03-12 22:14:11 +09:00
2016-03-12 22:14:11 +09:00

DefinitelyTyped Build Status

Join the chat at https://gitter.im/borisyankov/DefinitelyTyped

The repository for high quality TypeScript type definitions.

For more information see the definitelytyped.org website.

Usage

Include a line like this:

/// <reference path="jquery.d.ts" />

Contributions

DefinitelyTyped only works because of contributions by users like you!

Please see the contribution guide on how to contribute to DefinitelyTyped.

How to get the definitions

List of definitions

Requested definitions

Here is are the currently requested definitions.

License

This project is licensed under the MIT license.

Copyrights on the definition files are respective of each contributor listed at the beginning of each definition file.

Analytics

S
Description
No description provided
Readme MIT
395 MiB
Languages
TypeScript 100%