import { ValidationComposite } from '@/main/composites' ; import { ValidationBuilder as Builder } from '@/main/builders' ; export const makeSignUpValidation = ( ) : ValidationComposite => ValidationComposite . build ( [ ... Builder . field ( 'name' ) . required ( ) . min ( 5 ) . build ( ) , ... Builder . field ( 'email' ) . required ( ) . email ( ) . build ( ) , ... Builder . field ( 'password' ) . required ( ) . min ( 5 ) . build ( ) , ... Builder . field ( 'passwordConfirmation' ) . required ( ) . sameAs ( 'password' ) . build ( ) ] ) ;