@types/payment Add formatCardNumber in the types (#28669)

I wanna use the `formatCardNumber` function standalone but it is not defined in the types yet, so there we go.
This commit is contained in:
Florian Barbare
2018-09-11 08:27:22 -07:00
committed by Ryan Cavanaugh
parent 822fafc157
commit b883a3573a
+4
View File
@@ -11,6 +11,10 @@ interface Fns {
* * Validates length
*/
validateCardNumber(cardNumber: string): boolean;
/**
* Formats a card number
*/
formatCardNumber(cardNumber: string): string;
/**
* Validates a card expiry:
* * Validates numbers