From d9bf730cb2d0400a72583a0a43f09715d8a1e1c9 Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Thu, 12 Jul 2018 00:49:11 -0700 Subject: [PATCH] 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 --- types/stripe/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 7507c1a13a..420869592d 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -10,6 +10,7 @@ // Thomas Bruun // Gal Talmor // Hunter Tunnicliff +// Tyler Jones // 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