Commit Graph
59 Commits
Author SHA1 Message Date
Charles-Philippe Clermont 2037b3b9ba propEq with one argument returns a curried function (#22923) 2018-01-17 09:51:52 -08:00
Nikita Moshensky 39b90ab686 [ramda] fix path() return type according to documentation (#22963)
* [ramda] fix path() return type

* add tests
2018-01-17 09:37:58 -08:00
Oliver Joseph Ash 8e80f13320 Ramda: anyPass: use generic instead of any (#21870)
* Ramda: `anyPass`: use generic instead of any

* Lint
2018-01-02 16:28:22 -08:00
Paul van Brenk 696158d8eb Merge pull request #22220 from googol/ramda/signature-fixes
Ramda: Fix signatures for nth, splitAt and splitEvery
2017-12-29 10:55:38 -08:00
Paul van Brenk 542acf24c3 Merge pull request #22332 from raynerd/fix-ramda-invoker-function
fix ramdajs invoker function signature
2017-12-28 11:54:45 -08:00
Miika Hänninen 134f9290a2 Ramda: add string overload for splitEvery
`splitEvery` works for either an array of any type or a string.

http://ramdajs.com/docs/#splitEvery
2017-12-28 10:53:31 +02:00
Miika Hänninen 4ab4a67990 Ramda: Fix splitAt signature
- `splitAt` accepts either arrays or strings, not any arbitrary T.
- the output will always be an array of two elements, so switched to
  using the tuple syntax there.
- ensures that the overloading after first partial application works

http://ramdajs.com/docs/#splitAt

fixup splitat
2017-12-28 10:52:30 +02:00
Nikita Moshensky 01899e7f31 [ramda] type one of eqProps definitions the same as prop and add groupWith definition 2017-12-23 10:13:25 +02:00
Rayner Pupo 18ebf4d5f8 update invoker function signature 2017-12-19 22:31:24 -05:00
Bowden Kelly 4b03b0bd04 Merge pull request #21949 from charlespwd/fix/index-by
Improve Ramda's indexBy type inference
2017-12-08 09:14:20 -08:00
Charles-P. Clermont 06313d255b Improve indexBy type inference 2017-12-04 12:13:45 -05:00
Miloslav Nenadal 3903644020 [ramda]: Fix prop type 2017-11-13 17:38:52 +01:00
Daniel Rosenwasser ced7ded999 Merge pull request #21260 from pelotom/ramda-mapped-types
[ramda] Use mapped types for pluck, prop and props
2017-11-11 15:47:35 -08:00
Daniel Rosenwasser 87d7955d6f Merge pull request #21138 from MazeChaZer/ramda-min-max-return-type-polymorphism
Ramda: Enable return type polymorphism for min/max
2017-11-10 20:46:07 -08:00
Angelo Ocana 483c1ab97d Ramda: Make partial and partialRight binary fns
Change Added to Ramda 0.18.0

Pull Request: https://github.com/ramda/ramda/pull/1433
Upgrade guide: https://github.com/ramda/ramda/issues/1436
2017-11-05 21:35:52 -05:00
Tom Crockett cb51b88dec [ramda] Use mapped types for pluck, prop and props (resolves #21238) 2017-11-05 15:47:06 -08:00
Ron Buckton 740f7f95a9 Merge pull request #19825 from MazeChaZer/patch-2
Ramda: Tighten type signature for `append`
2017-11-03 22:38:26 -07:00
Ron Buckton 3f46cf99db Merge pull request #20819 from cmaddalozzo/master
Add generics to memoize, partial, and once
2017-11-03 22:35:36 -07:00
Jonas Schürmann e26351b49f Ramda: Enable return type polymorphism for min/max 2017-10-31 13:19:46 +01:00
Samson Keung da80f707e2 add typing for endsWith 2017-10-28 14:17:43 -07:00
c4605 74be8a1d63 ramda: R.nAry support curry (#20707) 2017-10-23 14:52:59 -07:00
samsonkeung 2091df4cbf @type/ramda: Add type definition for startsWith (#20594)
* added type definition for startsWith in Ramda

* linting
2017-10-23 12:56:46 -07:00
Jonas Schürmann 7669a80182 Ramda: Tighten type signature for append
The Ramda documentation clearly states that the element to append an the elements in the list should have the same type.
The previous type definition unnecessarily weakened type safety. For example this error could not be detected by TypeScript:

interface A {
    id: number
}
const list: A[] = []
R.append({idd: 2}, list)

Which seems ridiculous. If one wanted an intersection type, one could explicity define it to be used for the list/element type. Additionally, the function `prepend` already is as strict as this proposal, that should probably be consistent.

I also deleted a redundant line.
2017-10-23 11:47:57 +02:00
Curtis Maddalozzo 0937f4ba44 Add generics to memoize, partial, and once 2017-10-22 15:58:22 +01:00
Andy 102bcc67fa ramda: Fix lint (#20367) 2017-10-06 10:22:09 -07:00
Nathan Shively-Sanders b8ea87c68e Strict function variance fixes round 1 2017-10-02 15:50:34 -07:00
Cort Spellman 1066f6fb82 [ramda]: Correct order of reducing-fn params in reduceRight (#18798)
The reducing function in Ramda's reduceRight has signature
(elem: T, acc: TResult) => TResult,
as per https://github.com/ramda/ramda/blob/v0.24.0/src/reduceRight.js.

The order of the parameters was switched at
https://github.com/ramda/ramda/commit/68d1dc19fb035b0fcafcc1857331f9d00986470f
2017-09-24 15:39:09 +09:00
Charles-P. Clermont 3e94ea9c63 Fix tslint for ramdajs 2017-09-07 10:09:15 -04:00
Charles-P. Clermont 82ffd79295 Add object flavoured filter and reject definitions to Ramda
Fixes #17403
2017-09-07 09:46:08 -04:00
Nathan Shively-Sanders 034ff8fbf4 Merge pull request #19227 from psachs21/master
Ramda: Values<T> should not resolve as {}[], instead it should resolve to T[]
2017-09-06 13:16:46 -07:00
Mine Starks c908aa1b06 Merge pull request #18538 from AJamesPhillips/ramda-curry-intersection
[Ramda] Curry intersection
2017-08-30 11:26:01 -07:00
Paul Sachs 0509fcf2a6 Unifying values declaration causes param to cast to any instead of proper generic type
Breaks linting but fixes typescript behavior.
2017-08-30 11:50:46 -04:00
Andy 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Andy 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Miika Hänninen 7f30cbcfe9 Fix unfold step function return type (#18692) 2017-08-08 14:46:39 -07:00
Alexander James Phillips 48b91777a1 Update ramda-tests.ts 2017-08-03 12:45:40 +01:00
Alexander James Phillips a200a48791 Update ramda-tests.ts 2017-08-03 08:57:06 +01:00
Simon Højberg 706ba7a529 Add ramda.traverse (#18424)
* Add ramda.traverse

* Use correct indention
2017-08-01 08:52:09 -07:00
Alexander James Phillips 8fa64b11d0 Ramda - Curry intersection 2017-08-01 15:29:26 +01:00
1M0reBug b703c20c09 Fix #17461: [ramda] added mergeDeep* functions (#18177)
* Changed the types of sub functions to be T3, T4 instead of any
2017-07-25 06:58:39 -07:00
Ryan Cavanaugh f8fb8286cc Merge pull request #17594 from teves-castro/improve-ramda-pick
Improve ramda pick types
2017-07-12 16:17:48 -07:00
Miloslav Nenadal e9ecb63b33 [ramda]: Improve map definition 2017-07-07 14:42:36 +02:00
Vítor Castro d80cb8f1f5 Improve ramda pick types 2017-06-29 00:24:13 +01:00
Nathan Shively-Sanders b17086bce7 Fix Ramda for 2.4: evolve and functor map
1. Evolve now uses mapped type to more accurately reflect the
resulting type.
2. 2.4's contravariance checking of callbacks caught some incorrect
code. I fixed one instance that was nearly-correct and deleted one
instance that was non-sensical. It created an infinite functor by
returning itself.
2017-06-27 16:24:09 -07:00
Alejandro Haro 33d52686cc jslint compliance 2017-06-16 09:46:49 +01:00
Alejandro Haro 5425a3443d Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped 2017-06-16 09:43:55 +01:00
Mine Starks cf55a4cce1 Merge pull request #17095 from xiongemi/update-ramda-to-024
update ramda to include ascend, descend, sortWith functions
2017-06-15 13:17:50 -07:00
Alejandro Haro e747f3f61a tslint compliance 2017-06-13 17:34:37 +01:00
Alejandro Haro 18960ebc18 ramda: Add R.pathSatisfies 2017-06-13 11:30:53 +01:00
Stephen King 26d632b5f4 ramda: Allow currying of type guards 2017-06-09 17:59:07 -06:00