mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-08 02:00:21 +00:00
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