ngx-iban
Version:
This Angular (7+) library consists of three parts:
29 lines (24 loc) • 1.43 kB
TypeScript
import { ValidatorFn, Validator, AbstractControl, ValidationErrors } 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>;
}
declare class NgxIbanModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIbanModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxIbanModule, never, [typeof IbanDirective, typeof IbanPipe], [typeof IbanDirective, typeof IbanPipe]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NgxIbanModule>;
}
export { IbanDirective, IbanPipe, NgxIbanModule, ibanValidator };