'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setupProgress = setupProgress;
exports.onProgress = onProgress;
exports.resetProgress = resetProgress;
var SETUP_PROGRESS = exports.SETUP_PROGRESS = 'SETUP_PROGRESS';
var ON_SOME_PROGRESS = exports.ON_SOME_PROGRESS = 'ON_PROGRESS';
var RESET_PROGRESS = exports.RESET_PROGRESS = 'RESET_PROGRESS';
function setupProgress(total) {
return { type: SETUP_PROGRESS, total: total };
}
function onProgress(current) {
return { type: ON_SOME_PROGRESS, current: current };
}
function resetProgress(val) {
return { type: RESET_PROGRESS, val: val };
}
|