mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Made key and token optional
The parameters key and token must be optional if using the same options interface for both configure and open. You will only want to set the key and token in configure, no need to set it again in open.
This commit is contained in:
parent
480772811f
commit
1204530cb6
4
stripe-checkout/stripe-checkout.d.ts
vendored
4
stripe-checkout/stripe-checkout.d.ts
vendored
@ -15,8 +15,8 @@ interface StripeCheckoutHandler {
|
||||
}
|
||||
|
||||
interface StripeCheckoutOptions {
|
||||
key: string;
|
||||
token: (token: StripeTokenResponse) => void;
|
||||
key?: string;
|
||||
token?: (token: StripeTokenResponse) => void;
|
||||
image?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user