platanus / ng2-rut

Angular 2 library with several components to handle Chilean RUT validation, cleaning and formatting.
MIT License
29 stars 26 forks source link

Problemas al Usar rutValidator en Reactive Forms #9

Closed hherraz closed 6 years ago

hherraz commented 6 years ago
 of type '(RutValidator | ((control: AbstractControl) => ValidationErrors))[]' is not assignable to parameter of type 'ValidatorFn | ValidatorFn[]'.
  Type '(RutValidator | ((control: AbstractControl) => ValidationErrors))[]' is not assignable to type 'ValidatorFn[]'.
    Type 'RutValidator | ((control: AbstractControl) => ValidationErrors)' is not assignable to type 'ValidatorFn'.
      Type 'RutValidator' is not assignable to type 'ValidatorFn'.
        Type 'RutValidator' provides no match for the signature '(c: AbstractControl): ValidationErrors'.

Me esta arrojando ese error a que se debe?

llekn commented 6 years ago

hola @hherraz ! Podrias compartirnos algo de código y/o contexto para poder tratar de reproducir el problema? Un plunkr sería ideal! 👍

llekn commented 6 years ago

Ya que no pudimos reproducir el problema cerraré el issue. Feliz de reabrirlo si llega nueva información