UNPKG

foreach-prop

Version:
7 lines 954 B
import { Anything, Extra, ImmutableObject, Key, ReduceCallback } from './types'; declare function reduce<V, K extends Key, E extends Extra, R = Anything, TH = Anything>(this: TH, object: ImmutableObject<K, V>, callback: ReduceCallback<V, K, E, TH, R>, initial: R, ...extra: E): R; declare function reduce<V, K extends Key, R = Anything, TH = Anything>(this: TH, object: ImmutableObject<K, V>, callback: ReduceCallback<V, K, Extra, TH, R>, initial: R, ...extra: Extra): R; declare function reduce<V, K extends Key, E extends Extra, R = Anything, TH = Anything>(this: TH, object: ImmutableObject<K, V>, callback: ReduceCallback<V, K, E, TH, R>, initial?: R, ...extra: E): R | undefined; declare function reduce<V, K extends Key, R = Anything, TH = Anything>(this: TH, object: ImmutableObject<K, V>, callback: ReduceCallback<V, K, Extra, TH, R>, initial?: R, ...extra: Extra): R | undefined; export default reduce; //# sourceMappingURL=reduce.d.ts.map