YuriGor / deepdash

eachDeep, filterDeep, findDeep, someDeep, omitDeep, pickDeep, keysDeep etc.. Tree traversal library written in Underscore/Lodash fashion
https://deepdash.io/
MIT License
272 stars 12 forks source link

fix: remove [] in Path #117

Open standbyoneself opened 2 years ago

standbyoneself commented 2 years ago

This PR fixes type mismatch when using with TypeScript. Type Path already contains an Array<string | number>, so there is no need to add square brackets when annotate Path.

Also in documentation, for example, childrenPath is specified as string, which is impossible with current types.