mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
@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:
committed by
Ryan Cavanaugh
parent
822fafc157
commit
b883a3573a
Vendored
+4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user