mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
This is needed because there is no way to cast the output in the middle of the chain.
This is not be done on _.pluck() methods because T cannot be inferred. In other words, this:
<number>_.pluck(objectArray, 'id');
or this:
var id: number = _.pluck(objectArray, 'id');
is cleaner than this:
_.pluck<IMyObjectInterface, number>(objectArray, 'id');