mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Update stripe Card's object to be typed with 'card' string literal (#27199)
This allows differentiating between a BankAccount and Card payment method when using type unions, which are leveraged by the stripe typings. See https://stripe.com/docs/api#card_object-object
This commit is contained in:
committed by
Ryan Cavanaugh
parent
fdaf4dada6
commit
d9bf730cb2
Vendored
+2
-1
@@ -10,6 +10,7 @@
|
||||
// Thomas Bruun <https://github.com/bruun>
|
||||
// Gal Talmor <https://github.com/galtalmor>
|
||||
// Hunter Tunnicliff <https://github.com/htunnicliff>
|
||||
// Tyler Jones <https://github.com/squirly>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@@ -4338,7 +4339,7 @@ declare namespace Stripe {
|
||||
/**
|
||||
* Value is 'card'
|
||||
*/
|
||||
object: string;
|
||||
object: 'card';
|
||||
|
||||
/**
|
||||
* The card number
|
||||
|
||||
Reference in New Issue
Block a user