iso-7064
Version:
Implementation of ISO 7064 used in validation of format like IBAN, LEI, ...
26 lines (24 loc) • 711 B
TypeScript
/**
* Check requirements.
* Returns result of modulo 97 applied to the String input rawValue.
*
* Requirements:
* - rawValue must be not `Null`
* - rawValue must be of type `String`
* - rawValue must respect format `^[0-9A-Z]{1,}$`
*
* @param {*} rawValue
*/
export declare function compute(rawValue: string): number;
/**
* Does NOT check requirements.
* Returns result of modulo 97 applied to the String input rawValue.
*
* Requirements:
* - rawValue must be not `Null`
* - rawValue must be of type `String`
* - rawValue must respect format `^[0-9A-Z]{1,}$`
*
* @param {*} rawValue
*/
export declare function computeWithoutCheck(rawValue: string): number;