import _ = require("../index"); declare module "../index" { interface LoDashStatic { /** * Creates an array of values by running each element in collection through iteratee. The iteratee is bound to * thisArg and invoked with three arguments: (value, index|key, collection). * * If a property name is provided for iteratee the created _.property style callback returns the property value * of the given element. * * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for * elements that have a matching property value, else false. * * If an object is provided for iteratee the created _.matches style callback returns true for elements that * have the properties of the given object, else false. * * Many lodash methods are guarded to work as iteratees for methods like _.every, _.filter, _.map, _.mapValues, * _.reject, and _.some. * * The guarded methods are: * ary, callback, chunk, clone, create, curry, curryRight, drop, dropRight, every, fill, flatten, invert, max, * min, parseInt, slice, sortBy, take, takeRight, template, trim, trimLeft, trimRight, trunc, random, range, * sample, some, sum, uniq, and words * * @param collection The collection to iterate over. * @param iteratee The function invoked per iteration. * @param thisArg The this binding of iteratee. * @return Returns the new mapped array. */ map( collection: List | null | undefined, iteratee: ListIterator ): TResult[]; /** * @see _.map */ map(collection: List | Dictionary | null | undefined): T[]; /** * @see _.map */ map( collection: Dictionary | null | undefined, iteratee: DictionaryIterator ): TResult[]; /** @see _.map */ map( collection: List | Dictionary | null | undefined, iteratee: K ): Array; /** @see _.map */ map( collection: NumericDictionary | null | undefined, iteratee?: NumericDictionaryIterator ): TResult[]; /** * @see _.map */ map( collection: List|Dictionary|NumericDictionary | null | undefined, iteratee?: string ): TResult[]; /** * @see _.map */ map( collection: List|Dictionary|NumericDictionary | null | undefined, iteratee?: object ): boolean[]; } interface LoDashImplicitWrapper { /** * @see _.map */ map( this: LoDashImplicitWrapper | null | undefined>, iteratee: ListIterator ): LoDashImplicitWrapper; /** * @see _.map */ map(this: LoDashImplicitWrapper | Dictionary | null | undefined>): LoDashImplicitWrapper; /** * @see _.map */ map( this: LoDashImplicitWrapper | null | undefined>, iteratee: DictionaryIterator ): LoDashImplicitWrapper; /** @see _.map */ map( this: LoDashImplicitWrapper | Dictionary | null | undefined>, iteratee: K ): LoDashImplicitWrapper>; /** @see _.map */ map( this: LoDashImplicitWrapper | null | undefined>, iteratee?: NumericDictionaryIterator ): LoDashImplicitWrapper; /** * @see _.map */ map( this: LoDashImplicitWrapper | Dictionary | NumericDictionary | null | undefined>, iteratee?: string ): LoDashImplicitWrapper; /** * @see _.map */ map( this: LoDashImplicitWrapper | Dictionary | NumericDictionary | null | undefined>, iteratee?: object ): LoDashImplicitWrapper; } interface LoDashExplicitWrapper { /** * @see _.map */ map( this: LoDashExplicitWrapper | null | undefined>, iteratee: ListIterator ): LoDashExplicitWrapper; /** * @see _.map */ map(this: LoDashExplicitWrapper | Dictionary | null | undefined>): LoDashExplicitWrapper; /** * @see _.map */ map( this: LoDashExplicitWrapper | null | undefined>, iteratee: DictionaryIterator ): LoDashExplicitWrapper; /** @see _.map */ map( this: LoDashExplicitWrapper | Dictionary | null | undefined>, iteratee: K ): LoDashExplicitWrapper>; /** * @see _.map */ map( this: LoDashExplicitWrapper | null | undefined>, iteratee?: NumericDictionaryIterator ): LoDashExplicitWrapper; /** * @see _.map */ map( this: LoDashExplicitWrapper | Dictionary | NumericDictionary | null | undefined>, iteratee?: string ): LoDashExplicitWrapper; /** * @see _.map */ map( this: LoDashExplicitWrapper | Dictionary | NumericDictionary | null | undefined>, iteratee?: object ): LoDashExplicitWrapper; } }