Closed colinrotherham closed 1 month ago
11.0.4
The type declarations for merge() have mergeArrays: false incorrectly set by default:
merge()
mergeArrays: false
https://github.com/hapijs/hoek/blob/7309947c64ae444854a35a5202809f265437a708/lib/index.d.ts#L116-L121
But the source code (and documentation) shows mergeArrays: true as the default:
mergeArrays: true
https://github.com/hapijs/hoek/blob/7309947c64ae444854a35a5202809f265437a708/lib/merge.js#L20
This caught me out recently, I'll open a PR if that's alright
Thanks for the report! A PR would be welcome.
No problem @kanongil, fixed in https://github.com/hapijs/hoek/pull/396
Module version
11.0.4
What documentation problem did you notice?
The type declarations for
merge()
havemergeArrays: false
incorrectly set by default:https://github.com/hapijs/hoek/blob/7309947c64ae444854a35a5202809f265437a708/lib/index.d.ts#L116-L121
But the source code (and documentation) shows
mergeArrays: true
as the default:https://github.com/hapijs/hoek/blob/7309947c64ae444854a35a5202809f265437a708/lib/merge.js#L20
This caught me out recently, I'll open a PR if that's alright