UNPKG

ngx-iban

Version:

This Angular (7+) library consists of three parts:

23 lines (19 loc) 1.1 kB
import { Validator, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms'; import * as i0 from '@angular/core'; import { OnChanges, SimpleChanges, PipeTransform } from '@angular/core'; declare const ibanValidator: (countryCode?: string) => ValidatorFn; declare class IbanDirective implements Validator, OnChanges { countryCode?: string; private _onChange?; validate(control: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration<IbanDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<IbanDirective, "[ngxIban]", never, { "countryCode": { "alias": "ngxIban"; "required": false; }; }, {}, never, never, true, never>; } declare class IbanPipe implements PipeTransform { transform(value?: string | null, separator?: string): string | null; static ɵfac: i0.ɵɵFactoryDeclaration<IbanPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<IbanPipe, "iban", true>; } export { IbanDirective, IbanPipe, ibanValidator };