-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hi @blakeembrey. :D
I started checking out the lodash typings looking for inspiration to improve the ramda ones. Definitely learned there! Can't say I envy all the extra lodash wrappers though, and here I thought we had it bad with currying!
So one point I'd still had trouble getting to type correctly there was flatten
, for which I tried out if the lodash
definition (deep case) might be of help.
I tried to test like what'd be as follows in the lodash case:
let numbers: number[] = _.flatten([1, 2, [3, 4], 5, [6, [7, 8, [9, [10, 11], 12]]]], true);
For me (nightly TS 2.2) this wasn't quite type-checking normally yet; curious if it was functional on your side or if we're in the same boat here for now.
Just figured since we're largely typing similar functions having linked issues up might be of use. That said, there might still be some existing typings in our ramda one that might be of use in further typing lodash as well.