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
Was attempting to do something like the following: let eventName = _.chain("X.Y:Z").split(":").first().split(".").last().value();
and receiving an error on "first".
Adding the following: interface LoDashExplicitArrayWrapper<T> { first(): LoDashExplicitWrapper<T>; }
fixed it. This seems like a valid addition because there is a near similar definition for "last" which looks like: interface LoDashExplicitArrayWrapper<T> { last(): T; }
The difference between the two being LoDashExplicitWrapper vs T.
So I changed last to also return LoDashExplicitWrapper and now the above works.
The text was updated successfully, but these errors were encountered:
Was attempting to do something like the following:
let eventName = _.chain("X.Y:Z").split(":").first().split(".").last().value();
and receiving an error on "first".
Adding the following:
interface LoDashExplicitArrayWrapper<T> { first(): LoDashExplicitWrapper<T>; }
fixed it. This seems like a valid addition because there is a near similar definition for "last" which looks like:
interface LoDashExplicitArrayWrapper<T> { last(): T; }
The difference between the two being LoDashExplicitWrapper vs T.
So I changed last to also return LoDashExplicitWrapper and now the above works.
The text was updated successfully, but these errors were encountered: