import { IOptionalPromise } from '@promises/interfaces'; export interface ICurriedTimesSeries { (fn: (time: number) => IOptionalPromise, times: IOptionalPromise): Promise; (fn: (time: number) => IOptionalPromise): (times: IOptionalPromise) => Promise; } /** * @function * @example * * let times: number = 3; * * timesSeries((time: number) => { * let ms = (times-time) * 3; * return timeout((resolve) => { * console.log(time); * resolve(ms); * }, ms); * }, times).then((result: number[]) => { * console.log(result); * }); * * // => 0 * // => 1 * // => 2 * // => [9, 6, 3] */ declare let curriedTimesSeries: ICurriedTimesSeries; export { __ } from '@promises/_curry'; export default curriedTimesSeries;