Repository URL to install this package:
|
Version:
3.7.2 ▾
|
"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