UNPKG

template-tango

Version:

Tool for merging HTML templates between front and back end, making use of Beyond Compare folder comparison.

1,793 lines (1,593 loc) 554 kB
// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/lodash/lodash.d.ts declare var _: _.LoDashStatic; declare module _ { interface LoDashStatic { /** * Creates a lodash object which wraps the given value to enable intuitive method chaining. * * In addition to Lo-Dash methods, wrappers also have the following Array methods: * concat, join, pop, push, reverse, shift, slice, sort, splice, and unshift * * Chaining is supported in custom builds as long as the value method is implicitly or * explicitly included in the build. * * The chainable wrapper functions are: * after, assign, bind, bindAll, bindKey, chain, chunk, compact, compose, concat, countBy, * createCallback, curry, debounce, defaults, defer, delay, difference, filter, flatten, * forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, functions, groupBy, * keyBy, initial, intersection, invert, invoke, keys, map, max, memoize, merge, min, * object, omit, once, pairs, partial, partialRight, pick, pluck, pull, push, range, reject, * remove, rest, reverse, sample, shuffle, slice, sort, sortBy, splice, tap, throttle, times, * toArray, transform, union, uniq, unset, unshift, unzip, values, where, without, wrap, and zip * * The non-chainable wrapper functions are: * clone, cloneDeep, contains, escape, every, find, findIndex, findKey, findLast, * findLastIndex, findLastKey, has, identity, indexOf, isArguments, isArray, isBoolean, * isDate, isElement, isEmpty, isEqual, isFinite, isFunction, isNaN, isNull, isNumber, * isObject, isPlainObject, isRegExp, isString, isUndefined, join, lastIndexOf, mixin, * noConflict, parseInt, pop, random, reduce, reduceRight, result, shift, size, some, * sortedIndex, runInContext, template, unescape, uniqueId, and value * * The wrapper functions first and last return wrapped values when n is provided, otherwise * they return unwrapped values. * * Explicit chaining can be enabled by using the _.chain method. **/ (value: number): LoDashImplicitWrapper<number>; (value: string): LoDashImplicitStringWrapper; (value: boolean): LoDashImplicitWrapper<boolean>; (value: Array<number>): LoDashImplicitNumberArrayWrapper; <T>(value: Array<T>): LoDashImplicitArrayWrapper<T>; <T extends {}>(value: T): LoDashImplicitObjectWrapper<T>; (value: any): LoDashImplicitWrapper<any>; /** * The semantic version number. **/ VERSION: string; /** * By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby * (ERB). Change the following template settings to use alternative delimiters. **/ templateSettings: TemplateSettings; } /** * By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby * (ERB). Change the following template settings to use alternative delimiters. **/ interface TemplateSettings { /** * The "escape" delimiter. **/ escape?: RegExp; /** * The "evaluate" delimiter. **/ evaluate?: RegExp; /** * An object to import into the template as local variables. **/ imports?: Dictionary<any>; /** * The "interpolate" delimiter. **/ interpolate?: RegExp; /** * Used to reference the data object in the template text. **/ variable?: string; } /** * Creates a cache object to store key/value pairs. */ interface MapCache { /** * Removes `key` and its value from the cache. * @param key The key of the value to remove. * @return Returns `true` if the entry was removed successfully, else `false`. */ delete(key: string): boolean; /** * Gets the cached value for `key`. * @param key The key of the value to get. * @return Returns the cached value. */ get(key: string): any; /** * Checks if a cached value for `key` exists. * @param key The key of the entry to check. * @return Returns `true` if an entry for `key` exists, else `false`. */ has(key: string): boolean; /** * Sets `value` to `key` of the cache. * @param key The key of the value to cache. * @param value The value to cache. * @return Returns the cache object. */ set(key: string, value: any): _.Dictionary<any>; } interface LoDashWrapperBase<T, TWrapper> { } interface LoDashImplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { } interface LoDashExplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { } interface LoDashImplicitWrapper<T> extends LoDashImplicitWrapperBase<T, LoDashImplicitWrapper<T>> { } interface LoDashExplicitWrapper<T> extends LoDashExplicitWrapperBase<T, LoDashExplicitWrapper<T>> { } interface LoDashImplicitStringWrapper extends LoDashImplicitWrapper<string> { } interface LoDashExplicitStringWrapper extends LoDashExplicitWrapper<string> { } interface LoDashImplicitObjectWrapper<T> extends LoDashImplicitWrapperBase<T, LoDashImplicitObjectWrapper<T>> { } interface LoDashExplicitObjectWrapper<T> extends LoDashExplicitWrapperBase<T, LoDashExplicitObjectWrapper<T>> { } interface LoDashImplicitArrayWrapper<T> extends LoDashImplicitWrapperBase<T[], LoDashImplicitArrayWrapper<T>> { pop(): T; push(...items: T[]): LoDashImplicitArrayWrapper<T>; shift(): T; sort(compareFn?: (a: T, b: T) => number): LoDashImplicitArrayWrapper<T>; splice(start: number): LoDashImplicitArrayWrapper<T>; splice(start: number, deleteCount: number, ...items: any[]): LoDashImplicitArrayWrapper<T>; unshift(...items: T[]): LoDashImplicitArrayWrapper<T>; } interface LoDashExplicitArrayWrapper<T> extends LoDashExplicitWrapperBase<T[], LoDashExplicitArrayWrapper<T>> { } interface LoDashImplicitNumberArrayWrapper extends LoDashImplicitArrayWrapper<number> { } interface LoDashExplicitNumberArrayWrapper extends LoDashExplicitArrayWrapper<number> { } /********* * Array * *********/ //_.chunk interface LoDashStatic { /** * Creates an array of elements split into groups the length of size. If collection can’t be split evenly, the * final chunk will be the remaining elements. * * @param array The array to process. * @param size The length of each chunk. * @return Returns the new array containing chunks. */ chunk<T>( array: List<T>, size?: number ): T[][]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.chunk */ chunk(size?: number): LoDashImplicitArrayWrapper<T[]>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.chunk */ chunk<TResult>(size?: number): LoDashImplicitArrayWrapper<TResult[]>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.chunk */ chunk(size?: number): LoDashExplicitArrayWrapper<T[]>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.chunk */ chunk<TResult>(size?: number): LoDashExplicitArrayWrapper<TResult[]>; } //_.compact interface LoDashStatic { /** * Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are * falsey. * * @param array The array to compact. * @return (Array) Returns the new array of filtered values. */ compact<T>(array?: List<T>): T[]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.compact */ compact(): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.compact */ compact<TResult>(): LoDashImplicitArrayWrapper<TResult>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.compact */ compact(): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.compact */ compact<TResult>(): LoDashExplicitArrayWrapper<TResult>; } //_.concat DUMMY interface LoDashStatic { /** * Creates a new array concatenating `array` with any additional arrays * and/or values. * * @static * @memberOf _ * @category Array * @param {Array} array The array to concatenate. * @param {...*} [values] The values to concatenate. * @returns {Array} Returns the new concatenated array. * @example * * var array = [1]; * var other = _.concat(array, 2, [3], [[4]]); * * console.log(other); * // => [1, 2, 3, [4]] * * console.log(array); * // => [1] */ concat<T>(...values: (T[]|List<T>)[]) : T[]; } //_.difference interface LoDashStatic { /** * Creates an array of unique array values not included in the other provided arrays using SameValueZero for * equality comparisons. * * @param array The array to inspect. * @param values The arrays of values to exclude. * @return Returns the new array of filtered values. */ difference<T>( array: T[]|List<T>, ...values: Array<T[]|List<T>> ): T[]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.difference */ difference(...values: (T[]|List<T>)[]): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.difference */ difference<TValue>(...values: (TValue[]|List<TValue>)[]): LoDashImplicitArrayWrapper<TValue>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.difference */ difference(...values: (T[]|List<T>)[]): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.difference */ difference<TValue>(...values: (TValue[]|List<TValue>)[]): LoDashExplicitArrayWrapper<TValue>; } //_.differenceBy interface LoDashStatic { /** * This method is like _.difference except that it accepts iteratee which is invoked for each element of array * and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one * argument: (value). * * @param array The array to inspect. * @param values The values to exclude. * @param iteratee The iteratee invoked per element. * @returns Returns the new array of filtered values. */ differenceBy<T>( array: T[]|List<T>, values?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): T[]; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( array: T[]|List<T>, values?: T[]|List<T>, iteratee?: W ): T[]; /** * @see _.differenceBy */ differenceBy<T>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): T[]; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: W ): T[]; /** * @see _.differenceBy */ differenceBy<T>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): T[]; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: W ): T[]; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: W ): T[]; /** * @see _.differenceBy */ differenceBy<T>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): T[]; /** * @see _.differenceBy */ differenceBy<T>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): T[]; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( array: T[]|List<T>, values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: W ): T[]; /** * @see _.differenceBy */ differenceBy<T>( array: T[]|List<T>, ...values: any[] ): T[]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.differenceBy */ differenceBy<T>( values?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( ...values: any[] ): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.differenceBy */ differenceBy<T>( values?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: W ): LoDashImplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( ...values: any[] ): LoDashImplicitArrayWrapper<T>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.differenceBy */ differenceBy<T>( values?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( ...values: any[] ): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.differenceBy */ differenceBy<T>( values?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T, W extends Object>( values1?: T[]|List<T>, values2?: T[]|List<T>, values3?: T[]|List<T>, values4?: T[]|List<T>, values5?: T[]|List<T>, iteratee?: W ): LoDashExplicitArrayWrapper<T>; /** * @see _.differenceBy */ differenceBy<T>( ...values: any[] ): LoDashExplicitArrayWrapper<T>; } //_.differenceWith DUMMY interface LoDashStatic { /** * Creates an array of unique `array` values not included in the other * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) * for equality comparisons. * * @static * @memberOf _ * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. * @returns {Array} Returns the new array of filtered values. * @example * * _.difference([3, 2, 1], [4, 2]); * // => [3, 1] */ differenceWith( array: any[]|List<any>, ...values: any[] ): any[]; } //_.drop interface LoDashStatic { /** * Creates a slice of array with n elements dropped from the beginning. * * @param array The array to query. * @param n The number of elements to drop. * @return Returns the slice of array. */ drop<T>(array: T[]|List<T>, n?: number): T[]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.drop */ drop(n?: number): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.drop */ drop<T>(n?: number): LoDashImplicitArrayWrapper<T>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.drop */ drop(n?: number): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.drop */ drop<T>(n?: number): LoDashExplicitArrayWrapper<T>; } //_.dropRight interface LoDashStatic { /** * Creates a slice of array with n elements dropped from the end. * * @param array The array to query. * @param n The number of elements to drop. * @return Returns the slice of array. */ dropRight<T>( array: List<T>, n?: number ): T[]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.dropRight */ dropRight(n?: number): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.dropRight */ dropRight<TResult>(n?: number): LoDashImplicitArrayWrapper<TResult>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.dropRight */ dropRight(n?: number): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.dropRight */ dropRight<TResult>(n?: number): LoDashExplicitArrayWrapper<TResult>; } //_.dropRightWhile interface LoDashStatic { /** * Creates a slice of array excluding elements dropped from the end. Elements are dropped until predicate * returns falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array). * * If a property name is provided for predicate 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 predicate the created _.matches style callback returns true for elements that * match the properties of the given object, else false. * * @param array The array to query. * @param predicate The function invoked per iteration. * @param thisArg The this binding of predicate. * @return Returns the slice of array. */ dropRightWhile<TValue>( array: List<TValue>, predicate?: ListIterator<TValue, boolean> ): TValue[]; /** * @see _.dropRightWhile */ dropRightWhile<TValue>( array: List<TValue>, predicate?: string ): TValue[]; /** * @see _.dropRightWhile */ dropRightWhile<TWhere, TValue>( array: List<TValue>, predicate?: TWhere ): TValue[]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.dropRightWhile */ dropRightWhile( predicate?: ListIterator<T, boolean> ): LoDashImplicitArrayWrapper<T>; /** * @see _.dropRightWhile */ dropRightWhile( predicate?: string ): LoDashImplicitArrayWrapper<T>; /** * @see _.dropRightWhile */ dropRightWhile<TWhere>( predicate?: TWhere ): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.dropRightWhile */ dropRightWhile<TValue>( predicate?: ListIterator<TValue, boolean> ): LoDashImplicitArrayWrapper<TValue>; /** * @see _.dropRightWhile */ dropRightWhile<TValue>( predicate?: string ): LoDashImplicitArrayWrapper<TValue>; /** * @see _.dropRightWhile */ dropRightWhile<TWhere, TValue>( predicate?: TWhere ): LoDashImplicitArrayWrapper<TValue>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.dropRightWhile */ dropRightWhile( predicate?: ListIterator<T, boolean> ): LoDashExplicitArrayWrapper<T>; /** * @see _.dropRightWhile */ dropRightWhile( predicate?: string ): LoDashExplicitArrayWrapper<T>; /** * @see _.dropRightWhile */ dropRightWhile<TWhere>( predicate?: TWhere ): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.dropRightWhile */ dropRightWhile<TValue>( predicate?: ListIterator<TValue, boolean> ): LoDashExplicitArrayWrapper<TValue>; /** * @see _.dropRightWhile */ dropRightWhile<TValue>( predicate?: string ): LoDashExplicitArrayWrapper<TValue>; /** * @see _.dropRightWhile */ dropRightWhile<TWhere, TValue>( predicate?: TWhere ): LoDashExplicitArrayWrapper<TValue>; } //_.dropWhile interface LoDashStatic { /** * Creates a slice of array excluding elements dropped from the beginning. Elements are dropped until predicate * returns falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array). * * If a property name is provided for predicate 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 predicate the created _.matches style callback returns true for elements that * have the properties of the given object, else false. * * @param array The array to query. * @param predicate The function invoked per iteration. * @param thisArg The this binding of predicate. * @return Returns the slice of array. */ dropWhile<TValue>( array: List<TValue>, predicate?: ListIterator<TValue, boolean> ): TValue[]; /** * @see _.dropWhile */ dropWhile<TValue>( array: List<TValue>, predicate?: string ): TValue[]; /** * @see _.dropWhile */ dropWhile<TWhere, TValue>( array: List<TValue>, predicate?: TWhere ): TValue[]; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.dropWhile */ dropWhile( predicate?: ListIterator<T, boolean> ): LoDashImplicitArrayWrapper<T>; /** * @see _.dropWhile */ dropWhile( predicate?: string ): LoDashImplicitArrayWrapper<T>; /** * @see _.dropWhile */ dropWhile<TWhere>( predicate?: TWhere ): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.dropWhile */ dropWhile<TValue>( predicate?: ListIterator<TValue, boolean> ): LoDashImplicitArrayWrapper<TValue>; /** * @see _.dropWhile */ dropWhile<TValue>( predicate?: string ): LoDashImplicitArrayWrapper<TValue>; /** * @see _.dropWhile */ dropWhile<TWhere, TValue>( predicate?: TWhere ): LoDashImplicitArrayWrapper<TValue>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.dropWhile */ dropWhile( predicate?: ListIterator<T, boolean> ): LoDashExplicitArrayWrapper<T>; /** * @see _.dropWhile */ dropWhile( predicate?: string ): LoDashExplicitArrayWrapper<T>; /** * @see _.dropWhile */ dropWhile<TWhere>( predicate?: TWhere ): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.dropWhile */ dropWhile<TValue>( predicate?: ListIterator<TValue, boolean> ): LoDashExplicitArrayWrapper<TValue>; /** * @see _.dropWhile */ dropWhile<TValue>( predicate?: string ): LoDashExplicitArrayWrapper<TValue>; /** * @see _.dropWhile */ dropWhile<TWhere, TValue>( predicate?: TWhere ): LoDashExplicitArrayWrapper<TValue>; } //_.fill interface LoDashStatic { /** * Fills elements of array with value from start up to, but not including, end. * * Note: This method mutates array. * * @param array The array to fill. * @param value The value to fill array with. * @param start The start position. * @param end The end position. * @return Returns array. */ fill<T>( array: any[], value: T, start?: number, end?: number ): T[]; /** * @see _.fill */ fill<T>( array: List<any>, value: T, start?: number, end?: number ): List<T>; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.fill */ fill<T>( value: T, start?: number, end?: number ): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.fill */ fill<T>( value: T, start?: number, end?: number ): LoDashImplicitObjectWrapper<List<T>>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.fill */ fill<T>( value: T, start?: number, end?: number ): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.fill */ fill<T>( value: T, start?: number, end?: number ): LoDashExplicitObjectWrapper<List<T>>; } //_.findIndex interface LoDashStatic { /** * This method is like _.find except that it returns the index of the first element predicate returns truthy * for instead of the element itself. * * If a property name is provided for predicate 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 predicate the created _.matches style callback returns true for elements that * have the properties of the given object, else false. * * @param array The array to search. * @param predicate The function invoked per iteration. * @param thisArg The this binding of predicate. * @return Returns the index of the found element, else -1. */ findIndex<T>( array: List<T>, predicate?: ListIterator<T, boolean> ): number; /** * @see _.findIndex */ findIndex<T>( array: List<T>, predicate?: string ): number; /** * @see _.findIndex */ findIndex<W, T>( array: List<T>, predicate?: W ): number; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.findIndex */ findIndex( predicate?: ListIterator<T, boolean> ): number; /** * @see _.findIndex */ findIndex( predicate?: string ): number; /** * @see _.findIndex */ findIndex<W>( predicate?: W ): number; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.findIndex */ findIndex<TResult>( predicate?: ListIterator<TResult, boolean> ): number; /** * @see _.findIndex */ findIndex( predicate?: string ): number; /** * @see _.findIndex */ findIndex<W>( predicate?: W ): number; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.findIndex */ findIndex( predicate?: ListIterator<T, boolean> ): LoDashExplicitWrapper<number>; /** * @see _.findIndex */ findIndex( predicate?: string ): LoDashExplicitWrapper<number>; /** * @see _.findIndex */ findIndex<W>( predicate?: W ): LoDashExplicitWrapper<number>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.findIndex */ findIndex<TResult>( predicate?: ListIterator<TResult, boolean> ): LoDashExplicitWrapper<number>; /** * @see _.findIndex */ findIndex( predicate?: string ): LoDashExplicitWrapper<number>; /** * @see _.findIndex */ findIndex<W>( predicate?: W ): LoDashExplicitWrapper<number>; } //_.findLastIndex interface LoDashStatic { /** * This method is like _.findIndex except that it iterates over elements of collection from right to left. * * If a property name is provided for predicate 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 predicate the created _.matches style callback returns true for elements that * have the properties of the given object, else false. * * @param array The array to search. * @param predicate The function invoked per iteration. * @param thisArg The function invoked per iteration. * @return Returns the index of the found element, else -1. */ findLastIndex<T>( array: List<T>, predicate?: ListIterator<T, boolean> ): number; /** * @see _.findLastIndex */ findLastIndex<T>( array: List<T>, predicate?: string ): number; /** * @see _.findLastIndex */ findLastIndex<W, T>( array: List<T>, predicate?: W ): number; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.findLastIndex */ findLastIndex( predicate?: ListIterator<T, boolean> ): number; /** * @see _.findLastIndex */ findLastIndex( predicate?: string ): number; /** * @see _.findLastIndex */ findLastIndex<W>( predicate?: W ): number; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.findLastIndex */ findLastIndex<TResult>( predicate?: ListIterator<TResult, boolean> ): number; /** * @see _.findLastIndex */ findLastIndex( predicate?: string ): number; /** * @see _.findLastIndex */ findLastIndex<W>( predicate?: W ): number; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.findLastIndex */ findLastIndex( predicate?: ListIterator<T, boolean> ): LoDashExplicitWrapper<number>; /** * @see _.findLastIndex */ findLastIndex( predicate?: string ): LoDashExplicitWrapper<number>; /** * @see _.findLastIndex */ findLastIndex<W>( predicate?: W ): LoDashExplicitWrapper<number>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.findLastIndex */ findLastIndex<TResult>( predicate?: ListIterator<TResult, boolean> ): LoDashExplicitWrapper<number>; /** * @see _.findLastIndex */ findLastIndex( predicate?: string ): LoDashExplicitWrapper<number>; /** * @see _.findLastIndex */ findLastIndex<W>( predicate?: W ): LoDashExplicitWrapper<number>; } //_.first interface LoDashStatic { /** * @see _.head */ first<T>(array: List<T>): T; } interface LoDashImplicitWrapper<T> { /** * @see _.head */ first(): string; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.head */ first(): T; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.head */ first<T>(): T; } interface LoDashExplicitWrapper<T> { /** * @see _.head */ first(): LoDashExplicitWrapper<string>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.head */ first<T>(): T; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.head */ first<T>(): T; } interface RecursiveArray<T> extends Array<T|RecursiveArray<T>> {} interface ListOfRecursiveArraysOrValues<T> extends List<T|RecursiveArray<T>> {} //_.flatten interface LoDashStatic { /** * Flattens a nested array. If isDeep is true the array is recursively flattened, otherwise it’s only * flattened a single level. * * @param array The array to flatten. * @param isDeep Specify a deep flatten. * @return Returns the new flattened array. */ flatten<T>(array: ListOfRecursiveArraysOrValues<T>, isDeep: boolean): T[]; /** * @see _.flatten */ flatten<T>(array: List<T|T[]>): T[]; /** * @see _.flatten */ flatten<T>(array: ListOfRecursiveArraysOrValues<T>): RecursiveArray<T>; } interface LoDashImplicitWrapper<T> { /** * @see _.flatten */ flatten(): LoDashImplicitArrayWrapper<string>; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.flatten */ flatten<TResult>(isDeep?: boolean): LoDashImplicitArrayWrapper<TResult>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.flatten */ flatten<TResult>(isDeep?: boolean): LoDashImplicitArrayWrapper<TResult>; } interface LoDashExplicitWrapper<T> { /** * @see _.flatten */ flatten(): LoDashExplicitArrayWrapper<string>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.flatten */ flatten<TResult>(isDeep?: boolean): LoDashExplicitArrayWrapper<TResult>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.flatten */ flatten<TResult>(isDeep?: boolean): LoDashExplicitArrayWrapper<TResult>; } //_.flattenDeep interface LoDashStatic { /** * Recursively flattens a nested array. * * @param array The array to recursively flatten. * @return Returns the new flattened array. */ flattenDeep<T>(array: ListOfRecursiveArraysOrValues<T>): T[]; } interface LoDashImplicitWrapper<T> { /** * @see _.flattenDeep */ flattenDeep(): LoDashImplicitArrayWrapper<string>; } interface LoDashImplicitArrayWrapper<T> { /** * @see _.flattenDeep */ flattenDeep<T>(): LoDashImplicitArrayWrapper<T>; } interface LoDashImplicitObjectWrapper<T> { /** * @see _.flattenDeep */ flattenDeep<T>(): LoDashImplicitArrayWrapper<T>; } interface LoDashExplicitWrapper<T> { /** * @see _.flattenDeep */ flattenDeep(): LoDashExplicitArrayWrapper<string>; } interface LoDashExplicitArrayWrapper<T> { /** * @see _.flattenDeep */ flattenDeep<T>(): LoDashExplicitArrayWrapper<T>; } interface LoDashExplicitObjectWrapper<T> { /** * @see _.flattenDeep */ flattenDeep<T>(): LoDashExplicitArrayWrapper<T>; } // _.flattenDepth interface LoDashStatic { /** * Recursively flatten array up to depth times. * * @param array The array to recursively flatten. * @param number The maximum recursion depth. * @return Returns the new flattened array. */ flattenDepth<T>(array: ListOfRecursiveArraysOrValues<T>, depth?: number): T[]; } //_.fromPairs interface LoDashStatic { /** * The inverse of `_.toPairs`; this method returns an object composed * from key-value `pairs`. * * @static * @memberOf _ * @category Array * @param {Array} pairs The key-value pairs. * @returns {Object} Returns the new object. * @example * * _.fromPairs([['fred', 30], ['barney', 40]]); *