After upgrade of @types/underscore from v1.8.20 to v1.9.0 all usages of _.chain in my angular project were broken. For example
const arr1: string[] = ['z', 'x', 'y'], query = 'z';
let arr2: string[] = ['a', 'b', 'c'];
...
arr2 = _.chain(arr1)
.union(arr2)
.without(query)
.value()
has returned
error TS2322: Type 'string' is not assignable to type 'string[]'
It seems it was caused by changes done in this commit.
@regevbr, @DanielRosenwasser was this expected? If yes, what is upgrade path?
After upgrade of
@types/underscorefrom v1.8.20 to v1.9.0 all usages of_.chainin my angular project were broken. For examplehas returned
It seems it was caused by changes done in this commit.
@regevbr, @DanielRosenwasser was this expected? If yes, what is upgrade path?