Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion dist/ibantools.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ export declare function isValidIBAN(iban: string): boolean;
* @return {boolean} valid
*/
export declare function isValidBBAN(bban: string, countryCode: string): boolean;
/**
* Validate if country code is from a SEPA country
* @example
* // returns true
* ibantools.isSEPACountry("NL");
* @example
* // returns false
* ibantools.isSEPACountry("PK");
* @alias module:ibantools.isSEPACountry
* @param {string} countryCode Country code
* @return {boolean} valid
*/
export declare function isSEPACountry(countryCode: string): boolean;
/**
* Interface for ComposeIBAN parameteres
*/
Expand Down Expand Up @@ -115,7 +128,7 @@ export declare function friendlyFormatIBAN(iban: string, separator?: string): st
* $("input#iban").attr("pattern", $(this).val() + "[0-9]{2}" + country.bban_regexp.slice(1).replace("$",""));
* });
* @alias module:ibantools.getCountrySpecifications
* @return {CountryMap} Object [countryCode: string]CountrySpec -> {chars: :number, bban_regexp: string, IBANRegistry: boolean}
* @return {CountryMap} Object [countryCode: string]CountrySpec -> {chars: :number, bban_regexp: string, IBANRegistry: boolean, SEPA: boolean}
*/
export declare function getCountrySpecifications(): CountryMap;
/**
Expand Down Expand Up @@ -165,6 +178,7 @@ export interface CountrySpec {
chars: number;
bban_regexp: string;
IBANRegistry: boolean;
SEPA: boolean;
}
/**
* Interface for Map of Country Specifications
Expand Down
Loading