import { createFormValidation , ValidationConstraints , Validators , } from 'lc-form-validation' ; const loginFormValidationConstraints = { fields : { login : [ { validator : Validators . required } , ] , password : [ { validator : Validators . required } , ] , } , } ; export const loginFormValidation = createFormValidation ( loginFormValidationConstraints ) ;