[@types/lodash] functions which take properties aren't type safe #69363
Replies: 2 comments
-
Thanks for the discussion about "lodash", some useful links for everyone: Pinging the DT module owners: @bczengel, @chrootsu, @aj-r, @e-cloud, @thorn0, @jtmthf, @DomiR, @WilliamChelman. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is the same as #67502, just found it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using the lodash array functions which support property passing (ie, keyBy, some) aren't type safe. This recently resulted in me breaking code in a refactor. Her is an example of code that works when running the function, but not when providing a parameter string:
Here is a stackblitz with the code above so you can see it properly: https://stackblitz.com/edit/typescript-x5knvm?file=index.ts
Beta Was this translation helpful? Give feedback.
All reactions