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
Curtis Maddalozzo
6ba640f40f
Use default value for generic to remove redundant type signature
2017-11-01 09:57:23 +00:00
Ron Buckton
337b048a5b
Merge pull request #21096 from LiamGoodacre/update/ramda-contributors
...
Remove myself from ramda contributors
2017-10-30 17:02:30 -07:00
Liam Goodacre
ba33e49fa7
Remove myself from ramda contributors
2017-10-28 22:31:24 +01:00
Samson Keung
b0d60e347d
up version
2017-10-28 14:22:59 -07: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
Jakub Korzeniowski
15dda2c9c9
[ramda] Improved definitions of type, head and last functions ( #20332 )
...
* Improved definitions of type, head and last functions
* Version bump
* Oops
* Linting
* no-unnecessary-type-assertion
* Removed version bump
2017-10-12 13:52:50 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07: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
Honza Břečka
49f1f3aeeb
ramda: fix prop function definition ( #20099 )
2017-10-02 10:39:01 -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
guillaumep
da9afa6cdb
More verbose definition for pathOr
2017-09-19 14:53:38 -04:00
Andy
4fd03a732e
Ramda: disable no-unnecessary-generics ( #19785 )
2017-09-19 09:12:20 -07:00
Arthur Ozga
1ca74e8e7c
Merge pull request #19607 from charlespwd/master
...
Add object flavoured filter and reject definitions to Ramda
2017-09-14 14:28:46 -07:00
Nathan Shively-Sanders
ccf14e0598
Merge pull request #18873 from kujon/ramda_improvements
...
[ramda] Updated definitions for better type inference + narrower types
2017-09-07 10:06:44 -07: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
kujon
b7d6093839
Required update to tslint rules
2017-09-07 13:52:39 +01: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
kujon
17a517a138
Reverted the test changes
2017-09-06 14:22:53 +01:00
kujon
2ab3885f98
Reverted the changes to keys, values and toPairs
2017-09-06 14:21:55 +01: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
e9fd4f5669
ramda: Fix compile errors ( #19209 )
...
* ramda: Fix compile errors
* Update TypeScript version
2017-08-28 07:20:42 -07: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
kujon
bc930b1b85
Improved typings for the following functions: countBy, keys, sortBy, toPairs, values
2017-08-11 15:18:58 +01:00
Miika Hänninen
7f30cbcfe9
Fix unfold step function return type ( #18692 )
2017-08-08 14:46:39 -07:00
Alexander James Phillips
b4456e08cd
[Ramda] Correct pipe with 8 steps, add pipe with 9 and 10 ( #18700 )
...
* Correct pipe with 8 steps, add pipe with 9 and 10
* Ramda - Add single and double argument versions of 9 and 10 pipe
2017-08-08 11:41:42 -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
Miloslav Nenadal
acc192069e
[ramda]: Add startsWith definition
2017-07-04 14:06:50 +02:00
Miloslav Nenadal
cab8d0e70e
[ramda]: Add forEachObjIndexed definition
2017-07-04 10:10:09 +02:00
Miloslav Nenadal
9d17546a00
[ramda]: More detailed isNil definition
2017-07-03 13:54:03 +02:00
Vítor Castro
d80cb8f1f5
Improve ramda pick types
2017-06-29 00:24:13 +01:00
Nathan Shively-Sanders
9558b1699a
Fix lint
2017-06-27 16:27:37 -07: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