Commit Graph

1033 Commits

Author SHA1 Message Date
pafflique
bb5916e645 Concat second+ parameter can be plain value. 2016-09-19 17:51:12 +03:00
Nathan Ainslie
d01120d564 Updates for lodash (#10889)
add support for chained .reduce, relates to #10074
2016-08-30 23:54:22 +09:00
Alejandro Sánchez
a50f64c12c Add fromIndex parameter to find (#10789) 2016-08-29 23:38:36 +09:00
recuedav
fdddacc2e8 6586 FIX lodash chain split 2016-08-19 13:54:14 +02:00
Luke Street
896f317298 lodash: Added flush method to debounced & throttled functions 2016-08-17 11:56:21 -04:00
Isman Usoh
25b78b03bc add lodash version (#10308)
* add lodash version

* Update lodash-3.10.d.ts
2016-08-03 00:07:49 +09:00
Tim Perry
83f954972e Fix signature for _.sum/sumBy when summing properties from object arrays in Lodash (#10101)
* Fix lodash _.sumBy signature

Main fix here is to ensure that summing plucked keys from objects
is allowed.

* Fix lodash 3.10 _.sumBy signature to allow summing plucked keys too
2016-07-19 17:13:09 -07:00
Ryan Casperson
ead4d214f7 lodash: Add flattenDepth() for LoDashStatic (#10013)
* lodash: Add flattenDepth() for LoDashStatic

* lodash(flattenDepth): Add optional tag to depth & declare module
2016-07-09 15:28:53 +09:00
Viktor Zozuliak
49164be32a lodash-3.10: Add _.reduce for LoDashExplicitObjectWrapper (#9128) 2016-06-19 12:36:23 +09:00
Viktor Zozuliak
68187beb94 lodash: Add _.reduce for LoDashExplicitObjectWrapper (#9129) 2016-06-19 12:36:07 +09:00
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