Sean Kelley
1a0e25dcdd
Generically-typed overload for _.fromPairs that allows better inferences in some situations. ( #9572 )
2016-06-14 00:22:03 +09:00
Sean Kelley
92046fb39a
Add more-specific overloads to _.values to gete better type-checking in some scenarios. ( #9556 )
2016-06-14 00:21:55 +09:00
Artur Eshenbrener
3b32b57713
[RFC] Lodash flow better arguments ( #9492 )
...
* Add a lot of generic variants of _.flow
* lodash: write test for `_.flow` overloads
2016-06-08 19:16:02 +09:00
Sean Kelley
d456e7ccb0
Inferrable _.assign*, _.extend*, _.defaults ( #9388 )
...
* Change the signatures of the _.assign* functions to use intersection types, following 4e4ffc7e .
* Redefine _.extend and _.extendWith from scratch by copy-paste-renaming _.assignIn and _.assignInWith (respectively).
* Uncomment lodash/extendWith module since it exists now.
* Redefine _.defaults using 6ff5a95d0 as a template.
* Flip the order of _.defaults intersected types so earlier arguments take precedence when a field is mentioned multiple times.
Also fix an extraneous type parameter on an _.assign overload.
* Rewrite most of the tests to remove the TResult parameter where appropriate. Add extendWith tests separate from extend tests.
* Fix bug with _.defaults where the explicit wrapper variant would return an implicit wrapper.
* Update lodash tests to remove a bunch of now-unnecessary type specification.
2016-05-24 22:56:08 +09:00
Stepan Mikhaylyuk
672afd8f7b
added definitions for named expored lodash functions ( #9052 )
...
* added definitions for named expored function
* minor fix
* fix for lodash/fp
2016-05-01 22:07:39 +09:00
Sean Kelley
fc4a666145
Lodash: Remove thisArg from everything except _.bind. ( #8781 )
...
* Remove thisArg from everything except _.bind.
* Fix most of the tests: in most cases, deletethe thisArg version, in a few, just delete the thisArg parameter and leave the rest.
* Fix last _.reduce test.
This one was probably actually wrong: `{}` was failing to match `TResult` so it
was instead matching the `any` from the `thisArgs` signature and compiling, even
though that was not the intent of the test. Casting the accumulator to `ABC` selects
the correct overload.
2016-04-23 16:17:43 +09:00
Sean Kelley
7c32a54894
Lodash: update mapvalues, frompairs, pickby ( #8783 )
...
* Make the predicate parameter to _.pickBy optional.
* Add explicit typings for _.mapValues.
* Repair dummy typings for _.fromPairs to be more correct and add implicit/explicit versions.
* Remove non-existent 2-iteratee versions of _.mapValues.
* Preemtively remove thisArg from ONLY the added _.mapValues so the merge with #8781 goes well.
2016-04-23 16:09:20 +09:00
Masahiro Wakame
e12c8e3bcd
Merge pull request #8757 from chrootsu/lodash-memoize
...
lodash: changed _.memoize
2016-03-31 00:47:26 +09:00
Masahiro Wakame
4052af9156
Merge pull request #8755 from chrootsu/lodash-sample
...
lodash: changed _.sample
2016-03-31 00:25:23 +09:00
Ilya Mochalov
bd2fc2e672
lodash: changed _.memoize
2016-03-29 05:34:44 +05:00
Ilya Mochalov
28900a5be9
lodash: changed _.sample
2016-03-29 01:41:28 +05:00
Ilya Mochalov
e49f2982f0
lodash: changed _.noConflict
2016-03-28 23:49:06 +05:00
Masahiro Wakame
299b5caa22
Merge pull request #8731 from chrootsu/lodash-result
...
lodash: changed _.result
2016-03-27 09:49:37 +09:00
Masahiro Wakame
8ff687952b
Merge pull request #8730 from chrootsu/lodash-get
...
lodash: changed _.get
2016-03-27 09:49:28 +09:00
Ilya Mochalov
94c04275d2
lodash: changed _.get
2016-03-27 01:58:24 +05:00
Ilya Mochalov
7c924f2efe
lodash: changed _.result
2016-03-27 01:50:58 +05:00
Ilya Mochalov
3e85fd1365
lodash: changed _.identity
2016-03-27 00:11:09 +05:00
Masahiro Wakame
11218736a8
Merge pull request #8717 from chrootsu/lodash-flatMap
...
lodash: changed _.flatMap
2016-03-27 01:24:58 +09:00
Masahiro Wakame
61c2015a74
Merge pull request #8672 from benblank/lodash-invoke
...
add _.invoke to existing lodash definition
2016-03-26 22:32:43 +09:00
Masahiro Wakame
ea310a91cf
Merge pull request #8662 from chrootsu/lodash-head
...
lodash: changed _.head
2016-03-26 20:52:44 +09:00
Ilya Mochalov
61608b7a18
lodash: changed _.flatMap
2016-03-25 06:09:14 +05:00
Ilya Mochalov
74129cffcf
lodash: changed _.invoke
2016-03-23 00:25:01 +05:00
Ben Blank
f950bbe164
add tests for _.invoke
2016-03-21 09:59:18 -07:00
Ben Blank
b352f98ef9
add _.invoke
2016-03-21 09:58:26 -07:00
Ilya Mochalov
4cc6a6f7c9
lodash: changed _.head
2016-03-21 03:48:28 +05:00
Ilya Mochalov
7c0b2a1852
lodash: changed _.some
2016-03-20 02:43:15 +05:00
Masahiro Wakame
c75063a891
Merge pull request #8613 from chrootsu/lodash-update
...
lodash: added _.update
2016-03-19 14:37:33 +09:00
Masahiro Wakame
790ebd33d8
Merge pull request #8597 from chrootsu/lodash-last
...
lodash: changed _.last
2016-03-19 14:03:23 +09:00
vvakame
7de6c3dd94
Merge branch 'master' into rename-repo-url
2016-03-17 21:06:54 +09:00
Masahiro Wakame
89f1449d19
Merge pull request #8605 from DefinitelyTyped/replace-module2namespace
...
replace internal module to namespace
2016-03-17 20:47:43 +09:00
Ilya Mochalov
9a87ce6688
lodash: changed _.last
2016-03-16 23:09:30 +05:00
vvakame
14fe4313f4
replace internal module to namespace
2016-03-17 02:18:10 +09:00
vvakame
56295f5058
replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped
2016-03-17 00:55:26 +09:00
Ilya Mochalov
eedec57cba
lodash: added _.isWeakSet
2016-03-15 23:45:56 +05:00
Masahiro Wakame
67f416af28
Merge pull request #8480 from DefinitelyTyped/rename-lodash-tests
...
rename lodash-tests-3.10.ts -> lodash-3.10-tests.ts
2016-03-16 00:36:29 +09:00
Ilya Mochalov
920c4717cb
lodash: fixed tests of 3.10 version
2016-03-14 08:37:37 +05:00
vvakame
a0e7554a6d
rename lodash-tests-3.10.ts -> lodash-3.10-tests.ts
2016-03-13 10:05:33 +09:00
Ilya Mochalov
36bfd4fd3b
lodash: added _.isWeakMap
2016-03-12 20:46:28 +05:00
Masahiro Wakame
0352d985a0
Merge pull request #8458 from chrootsu/lodash-isSet
...
lodash: added _.isSet
2016-03-11 00:57:22 +09:00
Ilya Mochalov
a6ff12718c
lodash: added _.isSet
2016-03-09 10:28:54 +05:00
Ilya Mochalov
3d572e1ee3
lodash: changed signatures of _.clone family methods
2016-03-08 20:13:59 +05:00
Ilya Mochalov
0d69060029
lodash: added _.update
2016-03-03 21:27:59 +05:00
Ilya Mochalov
f1a7ab74ea
lodash: fixed _.isMap
2016-02-28 07:27:28 +05:00
Masahiro Wakame
f696b8c0c2
Merge pull request #8258 from chrootsu/lodash-invertBy
...
lodash: added _.invertBy
2016-02-26 20:58:21 +09:00
Masahiro Wakame
0824d92315
Merge pull request #8243 from chrootsu/lodash-isMap
...
lodash: added _.isMap
2016-02-26 20:38:52 +09:00
Ilya Mochalov
69744e568a
lodash: added _.invertBy
2016-02-26 06:49:06 +05:00
Ilya Mochalov
71f11573b8
lodash: added _.isMap
2016-02-24 23:18:37 +05:00
Ilya Mochalov
a734d7bd3c
lodash: added _.isBuffer
2016-02-22 23:29:15 +05:00
Masahiro Wakame
7b7aa2027a
Merge pull request #8186 from wrrnwng/master
...
Lodash: added NumericDictionary parameter to map and reduce
2016-02-21 02:33:30 +09:00
Masahiro Wakame
6ac6764c44
Merge pull request #8178 from chrootsu/lodash-isArrayBuffer
...
lodash: added _.isArrayBuffer
2016-02-21 02:26:42 +09:00