UNPKG

uk-modulus-check

Version:

TypeScript class that validates UK bank account details using the modulus checking algorithm.

15 lines (12 loc) 273 B
import { CheckType } from './enums'; export interface ModulusWeight { start: number | null; end: number | null; check_type?: CheckType; exception: number | null; weights: number[]; } export interface BankAccount { accountNumber: string; sortCode: string; }