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:
Tyler Jones
2018-07-12 00:49:11 -07:00
committed by Ryan Cavanaugh
parent fdaf4dada6
commit d9bf730cb2
+2 -1
View File
@@ -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