Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/forms / build / dist / new-forms / OneForm / toFormState.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const inputs_1 = require("../inputs");
const forms_1 = require("../forms");
/**
 * @todo here, we check if it is @deprecated
 * ^ unless our `attributes` handles that...
 * ^ but we want warnings
 */
function toFormState(list) {
    const inputList = list.map(inputs_1.InputState.from);
    const form = new forms_1.FormState();
    form.setInputsList(inputList);
    return form;
}
exports.toFormState = toFormState;
//# sourceMappingURL=toFormState.js.map