I have to add custom validator for reactive forms. I will do that in form of
export class CustomValidators {
  isMemberOf(allowedValues: any[]) {
    return (ctrl: AbstractControl) => {
      //whatever
    };
  }
}
How can I declare such method so it would appear as part of existing Validators class that is provided with forms module so it will be accessible like Validators.isMemberOf(...) just like Validators.required