import { FormControl , ValidatorFn } from "@angular/forms" ; export class Validators { static match ( c1 , c2 ) { return ( ) : { [ key ] : any ; } => { if ( c1 . value !== c2 . value ) return { unmatched : true } ; return { } ; } ; } }