mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Updating HostedFields.on to take the event param
This commit is contained in:
6
braintree-web/index.d.ts
vendored
6
braintree-web/index.d.ts
vendored
@@ -97,7 +97,7 @@ declare namespace BraintreeWeb {
|
||||
// billingContact
|
||||
// Billing contact information for the user.
|
||||
// countryCode
|
||||
//Required.The merchant<EFBFBD>s two- letter ISO 3166 country code.
|
||||
//Required.The merchant’s two- letter ISO 3166 country code.
|
||||
// currencyCode
|
||||
// Required.The three- letter ISO 4217 currency code for the payment.
|
||||
// lineItems
|
||||
@@ -782,7 +782,7 @@ declare namespace BraintreeWeb {
|
||||
* });
|
||||
* @returns {void}
|
||||
*/
|
||||
on(event: string, handler: (() => any)): void;
|
||||
on(event: string, handler: ((event: any) => any)): void;
|
||||
|
||||
/**
|
||||
* Cleanly tear down anything set up by {@link module:braintree-web/hosted-fields.create|create}
|
||||
@@ -1740,4 +1740,4 @@ interface BraintreeStatic {
|
||||
VERSION: string;
|
||||
}
|
||||
|
||||
declare var braintree: BraintreeStatic;
|
||||
declare var braintree: BraintreeStatic;
|
||||
|
||||
Reference in New Issue
Block a user