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:
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