Repository URL to install this package:
|
Version:
3.5.4-es ▾
|
import { InputState } from '../inputs';
import { FormState } from '../forms';
/**
* @todo here, we check if it is @deprecated
* ^ unless our `attributes` handles that...
* ^ but we want warnings
*/
export function toFormState(list) {
const inputList = list.map(InputState.from);
const form = new FormState();
form.setInputsList(inputList);
return form;
}
//# sourceMappingURL=toFormState.js.map