bczengel / DefinitelyTyped

The repository for high quality TypeScript type definitions.
Other
1 stars 0 forks source link

LoDashArrayWrapper.map is incorrect #5

Open bczengel opened 10 years ago

bczengel commented 10 years ago

It should be

    interface LoDashArrayWrapper<T> {
    /**
    * @see _.map
    **/
    map<T, TResult>(
        callback: ListIterator<T, TResult>,
        thisArg?: any): LoDashArrayWrapper<TResult>;

    /**
    * @see _.map
    * @param pluckValue _.pluck style callback
    **/
    map<T, TResult>(
        pluckValue: string): LoDashArrayWrapper<any>;

        /**
        * @see _.map
        **/
        collect<T, TResult>(
            callback: ListIterator<T, TResult>,
            thisArg?: any): LoDashArrayWrapper<TResult>;

        /**
        * @see _.map
        **/
        collect<T, TResult>(
            pluckValue: string): LoDashArrayWrapper<any>;
}