Commit Graph
56 Commits
Author SHA1 Message Date
Georgii Dolzhykov 07e8b3b014 lodash: property names and paths can include symbols (#20999) 2017-10-25 11:34:35 -07:00
Andy 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Georgii Dolzhykov d756fdf1a3 lodash: replace StringRepresentable with more specific types (#20717) 2017-10-23 14:54:35 -07:00
Scott a65d75a7cd Types/lodash-es auto-gen typings (#18725)
* chore(generation): add script to generate typings automatically

* docs: add a readme.md to state unfinished types

* fix: improve generation and tsconfig files

* chore(generate): add prettier to format generated code

* feat(lodash-es): generate files and remove codes

1. noconflict and runincontext aren't inside lodash-es
2. seq-like function are removed temporarily. see readme.md

* feat(lodash): add a bash script to generate all modules

and remove lodash-es related code in lodash/scripts

* fix(lodash-es): apply the new approach to declare types

for default export constraints in typescript v2.6
see
https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts
2017-10-23 12:57:17 -07:00
Andy 3e595b7982 lodash: Fix lint (#20828) 2017-10-23 07:34:55 -07:00
AJ Richardson 77eac54847 [lodash] Better chaining wrappers, overload clean-up (#19356)
* [lodash] improved iterateee parameters, simplified forEach overloads

* Changed ListIterator to StringIterator, cleaned up more issues with flatMap

* Even more flatMap cleanup

* Making wrapper types simpler and more accurate (not done)

* Fixed type inference for forEach callback arguments

* Converted explicit wrapper types, implemented differenceWith

* Updated more functions to use new-style wrappers

* Finished updating the remaining methods

* Fixed lint errors

* Fixed parameter type inference when using `any` (#19228)

* Fixed test errors

* Fixed issues with _.get

* Fixed issues with _.get

* consider this

* removed duplicate type, added TODO

* More _.get fixes

* Fixed issues with mapValues with a single parameter

* Modified lodash-tests to have minimal diff with upstream

* Improved backwards compatibility
2017-10-19 08:09:17 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy 2ce173a725 lodash: Fix lint failure (#20365) 2017-10-06 12:51:56 -07:00
Nathan Shively-Sanders b8ea87c68e Strict function variance fixes round 1 2017-10-02 15:50:34 -07:00
Scott a96d185882 Types/lodash -- update with new functions (#18738)
* feat(lodash): update types and list of lodash functions

* fix: add missing typings for flatMapDepth

* test(lodash): update test with newly added function

Note: pullAllWith is not included

* fix: add missing entries in tsconfig.json

* feat: add and generate new modules

* fix(lodash): improve typings

* fix: update with latest flatMap types

* fix(lodash): remove redundant types for updateWith method

* fix(lodash): improve types of flatMapDeep and flatMapDepth and tests

replace Many with ListOfRecursiveArraysOrValues
2017-09-25 13:55:37 -07:00
Jonathan Sheely 5d6648e218 mapValues can accept a single param and output entire object (#19786) 2017-09-25 12:20:55 -07:00
Nathan Shively-Sanders 9b6db41060 Merge pull request #19349 from eggers/mapValues-v3
Adding LoDashExplicitObjectWrapperBase.mapValues to v3
2017-09-07 09:23:17 -07:00
Andy cb2dbfbb50 Add ignores for new lint rules (#19504) 2017-09-01 07:47:52 -07:00
Jacob Eggers 60ecc1bb40 Adding _.mapValues to v3 2017-08-25 09:13:04 -07:00
Andy f89e38ca85 lodash: Fix test (#19191) 2017-08-21 10:08:26 -07:00
Andy 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
AJ Richardson be8fece482 [lodash] improved iteratee parameters, simplified forEach and flatMap overloads (#18663)
* [lodash] improved iterateee parameters, simplified forEach overloads

* Changed ListIterator to StringIterator, cleaned up more issues with flatMap

* Even more flatMap cleanup

* Fixed type inference for forEach callback arguments
2017-08-18 06:55:13 -07:00
Andy 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Oleg Vaskevich cc070e767f Add missing MapCache#clear method (for _.memoize) (#18943)
* Add missing MapCache#clear method (for _.memoize)

* fix tests

* fix tests (2)
2017-08-14 13:43:54 -07:00
Andy 49a86971ef Use lodash/scripts/generate-modules.ts to generate lodash-es too (#18751) 2017-08-08 14:06:51 -07:00
AJ Richardson cad18fc7ad lodash: fix issues with null/undefined parameters (#18120) 2017-07-21 19:00:07 -07:00
Ailrun c7c8a5ec56 fix lodash type for orderBy 2017-07-17 02:19:45 -04:00
Ryan Cavanaugh 6ec2a092cc Merge pull request #17922 from bcherny/master
[lodash] clean up _.sample typings
2017-07-13 16:47:20 -07:00
Boris Cherny debc05f547 [lodash] Alias builtin ArrayLike to List 2017-07-11 16:29:26 -07:00
Boris Cherny 61b5651f24 clean up _.sample typings 2017-07-11 16:23:10 -07:00
Paul van Brenk d3d79d772d Merge pull request #17503 from rzymek/lodash.toFinite
lodash - Add _.toFinite
2017-06-29 13:40:02 -07:00
Paul van Brenk 941cceb015 Merge pull request #17456 from aj-r/lodash-type-guard-issues
Lodash type guard issues
2017-06-29 13:31:10 -07:00
rzymek 4b999a376f lodash - Add _.toFinite 2017-06-27 09:54:21 +02:00
Paul van Brenk 36c917167b Merge pull request #17502 from rzymek/lodash.multiply
lodash - Add _.multiply
2017-06-26 16:25:25 -07:00
Paul van Brenk efcf7ac377 Merge pull request #17501 from rzymek/lodash.flow
lodash - Enabled _.flow & _.flowRight to accept an array of functions
2017-06-26 16:25:03 -07:00
Paul van Brenk fff2f75981 Merge pull request #17500 from rzymek/lodash.divide
lodash - Add _.divide
2017-06-26 16:23:54 -07:00
rzymek e57c630919 lodash - Enabled _.flow & _.flowRight to accept an array of functions 2017-06-26 18:36:18 +02:00
rzymek 2160e7b86f lodash - Add _.divide 2017-06-26 18:22:30 +02:00
rzymek f78f1e3523 lodash - Add _.multiply 2017-06-26 18:22:03 +02:00
AJ Richardson e9a5643e4d lodash: _.compact should remove more types (#17416) 2017-06-24 10:12:46 -04:00
AJ Richardson 4e5add2f77 Fixed isArray type guards (#16077) 2017-06-23 23:16:05 -04:00
Yui d191d80731 Merge pull request #16891 from evestraw/master
curry right fixed  #16867
2017-06-12 08:03:18 -07:00
Eric Roos ca4f0e634b fixed curryRight tests to not be the same as a mirrod curry 2017-06-07 15:38:33 +02:00
AJ Richardson 519b3e46da lodash: allow null and undefined parameters (#16364)
* lodash: allow null and undefined parameters (#15883)

* lodash: fix requested changes (#15883)

* Better way of handling array wrappers

* lodash: allow more null or undefined inputs
2017-06-01 08:27:33 -07:00
Eric 644f9e560d Update index.d.ts
fixed curry right
2017-06-01 14:42:15 +02:00
AJ Richardson c4a2a2a976 lodash: callback parameters should not be optional (#11516) (#15895) 2017-05-05 08:55:48 -07:00
Alex Lockwood ca53e5699a Add support for ReadonlyArray<T> to chain() method (#15892)
* Add support for ReadonlyArray<T> to chain() method

* Update index.d.ts

* Made plant method ReadonlyArray-aware as well

* Update index.d.ts
2017-04-20 14:50:09 -07:00
Dan Vanderkam 8595416269 Use dtslint for Lodash map and add pluck variant (#15574) 2017-04-20 11:34:52 -07:00
Andy fa2480ba61 Remove more namespaces from tests (#16029) 2017-04-20 09:06:00 -07:00
Andy bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Jason Killian 5e1049bce1 Fix typo in method name 2017-04-07 14:15:13 -04:00
Andy f2b6506ba5 Fix various lint errors (#15530) 2017-03-30 17:42:07 -07:00
Nathan Shively-Sanders b6dc00bc4f Merge pull request #15363 from tamird/lodash-topairs
lodash: fix toPairs, toPairsIn definitions
2017-03-30 15:39:09 -07:00
Nathan Shively-Sanders 6477d32c55 Merge pull request #15382 from rzymek/lodash.zipObjectDeep
lodash - Add _.zipObjectDeep
2017-03-30 15:37:49 -07:00
Andy efecc1d637 lodash: Apply new lint rules (#15491) 2017-03-29 15:41:22 -07:00