From 65cca47c83c44a776dd2daa3ac741bc897c3dbf3 Mon Sep 17 00:00:00 2001 From: KyleMcNutt Date: Mon, 14 Nov 2016 17:06:58 -0800 Subject: [PATCH] Updating HostedFields.on to take the event param --- braintree-web/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/braintree-web/index.d.ts b/braintree-web/index.d.ts index e58cf7455b..d62ec01fd1 100644 --- a/braintree-web/index.d.ts +++ b/braintree-web/index.d.ts @@ -97,7 +97,7 @@ declare namespace BraintreeWeb { // billingContact // Billing contact information for the user. // countryCode -//Required.The merchant’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; \ No newline at end of file +declare var braintree: BraintreeStatic;