mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 22:40:03 +08: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
4
types/payment/index.d.ts
vendored
4
types/payment/index.d.ts
vendored
@@ -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