import _ = require("../index"); declare module "../index" { interface LoDashStatic { /** * Computes the sum of the values in `array`. * * @category Math * @param array The array to iterate over. * @returns Returns the sum. * @example * * _.sum([4, 2, 8, 6]); * // => 20 */ sum(collection: List | null | undefined): number; } interface LoDashImplicitWrapper { /** * @see _.sum */ sum(): number; } interface LoDashExplicitWrapper { /** * @see _.sum */ sum(): LoDashExplicitWrapper; } }