Files
DefinitelyTyped/types/ramda
Ryan McCuaig da84c5c66d Adds Date to Ord type constraint
Review of function implementations like [`maxBy`][1], the [type
constraints][2] section of Ramda's wiki, and this [SO answer][3] imply
that Javascript's Date object has at least a de-facto `Ord` through
behaving correctly with `<`, `>`, `===`, etc.

This commit extends `Ord` (and therefore all of Ramda's
`Ord`-constrained function) to typecheck properly with `Date` values.

[1]:https://github.com/ramda/ramda/blob/d6558dd2b8136af1ffcda4c9b4c54f14f27324f4/source/maxBy.js#L29
[2]:https://github.com/ramda/ramda/wiki/Type-Signatures#type-constraints
[3]:https://stackoverflow.com/a/38620327
2018-08-29 07:51:46 -07:00
..