Outils pour utilisateurs

Outils du site


lang:typescript:classe

Interface

Fonctions

Implémenter une fonction qui respecte une interface

Exemple avec ValidatorFn.

export declare interface ValidatorFn {
    (control: AbstractControl): ValidationErrors | null;
}
validNumber(): ValidatorFn {
  return (control: AbstractControl): ValidationErrors | null => {
    return ...;
  };
}

The best way to implement custom validators Archive du 03/09/2020 le 24/09/2021

lang/typescript/classe.txt · Dernière modification : 2021/09/24 05:12 de root