Merge pull request #24260 from coyotte508/patch-2

iban - Fix incorrect function signatures, regarding the separator of printed formats
This commit is contained in:
Arthur Ozga
2018-03-15 12:23:58 -07:00
committed by GitHub
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ function testIsValidBBAN() {
*/
function testPrintFormat() {
var iban: string = 'BE68539007547034';
var separator: string[] = ['fr'];
var separator: string = ' ';
var format: string = IBAN.printFormat(iban, separator);
}
@@ -48,6 +48,6 @@ function testPrintFormat() {
*/
function testToBBAN() {
var iban: string = 'BE68539007547034';
var separator: string[] = ['-'];
var separator: string = '-';
var bban: string = IBAN.toBBAN(iban, separator);
}
}
+4 -4
View File
@@ -42,17 +42,17 @@ interface IBANStatic {
/**
* @summary Returns the IBAN in a print format.
* @param {string} iban The IBAN to convert.
* @param {string} The IBAN in print format.
* @param {string} separator The separator to use between IBAN blocks, defaults to ' '.
*/
printFormat(iban: string, separator: string[]): string;
printFormat(iban: string, separator?: string): string;
/**
* @summary Convert the passed IBAN to a country-specific BBAN.
* @param {string} iban The IBAN to convert.
* @param {string[]} Separator the separator to use between BBAN blocks.
* @param {string} separator The separator to use between BBAN blocks, defaults to ' '.
* @returns {string} The BBAN
*/
toBBAN(iban: string, separator: string[]): string;
toBBAN(iban: string, separator?: string): string;
}
declare var IBAN: IBANStatic;