moh-common-lib
Version:
A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).
10 lines (9 loc) • 382 B
TypeScript
import { ValidatorFn, AbstractControl, Validator } from '@angular/forms';
export declare function commonValidatePostalcode(hasMask: boolean, bcOnly: boolean): ValidatorFn;
export declare class ValidatePostalcodeDirective implements Validator {
hasMask: boolean;
bcOnly: boolean;
validate(control: AbstractControl): {
[key: string]: any;
} | null;
}