Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Remove Client keyword from Braintree definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Martinez committed Jan 18, 2017
1 parent ecb7241 commit a4bfde4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions flow-typed/npm/braintree-web_v3.x.x.js
Expand Up @@ -12,8 +12,7 @@
* https://github.com/flowtype/flow-typed
*/

type Client = any;
declare type BraintreeClient = Client;
declare type BraintreeClient = any;
declare type BraintreeError = any;

declare module 'braintree-web' {
Expand All @@ -23,7 +22,7 @@ declare module 'braintree-web' {
declare module 'braintree-web/client' {
declare function create(
options: { authorization: string },
callback: (error: BraintreeError, data: Client) => void
callback: (error: BraintreeError, data: BraintreeClient) => void
): void;
}

Expand Down Expand Up @@ -99,7 +98,7 @@ declare module 'braintree-web/paypal' {
};

declare function create(
options: { client: Client },
options: { client: BraintreeClient },
callback: (error: ?BraintreeError, data: PayPalInstance) => void
): void;
}
Expand Down Expand Up @@ -127,7 +126,7 @@ declare module 'braintree-web/hosted-fields' {

declare function create(
options: {
client: Client;
client: BraintreeClient;
fields: Object;
styles: Object;
},
Expand Down

0 comments on commit a4bfde4

Please sign in to comment.