@alauda-fe/common
Version:
Alauda frontend team common codes.
13 lines (12 loc) • 770 B
TypeScript
import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
import * as i0 from "@angular/core";
export type NotBeValue = string | RegExp;
export declare class NotBeValidatorDirective implements Validator {
aclNotBe: NotBeValue | NotBeValue[];
notBeValues: NotBeValue[];
onValidatorChange: () => void;
validate(control: AbstractControl): ValidationErrors;
registerOnValidatorChange(fn: () => void): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NotBeValidatorDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NotBeValidatorDirective, "[aclNotBe][ngModel],[aclNotBe][formControl],[aclNotBe][formControlName]", never, { "aclNotBe": { "alias": "aclNotBe"; "required": false; }; }, {}, never, never, true, never>;
}