You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mergeOverwriteArray function found in src > core > helpers > mergeOverwriteArray.ts is like lodash's _.merge but overwrites array values instead of merging them like _.merge.
mergeOverwriteArray uses the same type as _.merge, and has its own TSDoc defined in the file mergeOverwriteArray.ts.
However, (at least in VSCode) the TSDoc of it when its used outside of the mergeOverwriteArray.ts file is that of _.merge instead of its own defined TSDoc:
Help wanted
Any ideas on how to make mergeOverwriteArray have to same generic typing as _.merge but without inheriting its TSDoc?
The text was updated successfully, but these errors were encountered:
Context
The
mergeOverwriteArray
function found insrc > core > helpers > mergeOverwriteArray.ts
is like lodash's_.merge
but overwrites array values instead of merging them like_.merge
.The problem
mergeOverwriteArray
uses the same type as_.merge
, and has its own TSDoc defined in the filemergeOverwriteArray.ts
.However, (at least in VSCode) the TSDoc of it when its used outside of the
mergeOverwriteArray.ts
file is that of_.merge
instead of its own defined TSDoc:Help wanted
Any ideas on how to make
mergeOverwriteArray
have to same generic typing as_.merge
but without inheriting its TSDoc?The text was updated successfully, but these errors were encountered: