Outils pour utilisateurs

Outils du site


lang:typescript:classe

Ceci est une ancienne révision du document !


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 ...;
  };
}
lang/typescript/classe.1632452958.txt.gz · Dernière modification : 2021/09/24 05:09 de root